////////////////////////////////////////////////////////////////////////////// // // Copyright 2026 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // agreement provided at the time of installation or download, or which // otherwise accompanies this software. // ////////////////////////////////////////////////////////////////////////////// #pragma once #include "SketchCurve.h" // THIS CLASS WILL BE VISIBLE TO AN API CLIENT. // THIS HEADER FILE WILL BE GENERATED FROM NIDL. #include "../../Core/OSMacros.h" #ifdef FUSIONXINTERFACE_EXPORTS # ifdef __COMPILING_ADSK_FUSION_SKETCHCONICCURVE_CPP__ # define ADSK_FUSION_SKETCHCONICCURVE_API XI_EXPORT # else # define ADSK_FUSION_SKETCHCONICCURVE_API # endif #else # define ADSK_FUSION_SKETCHCONICCURVE_API XI_IMPORT #endif namespace adsk { namespace core { class CurveEvaluator3D; class NurbsCurve3D; }} namespace adsk { namespace fusion { class Occurrence; class SketchPoint; }} namespace adsk { namespace fusion { /// The SketchConicCurve class represents conic curves in a sketch. class SketchConicCurve : public SketchCurve { public: /// The sketch point at the start of the curve. core::Ptr startSketchPoint() const; /// The sketch point at the end of the curve. core::Ptr endSketchPoint() const; /// The sketch point at the apex of the conic curve. core::Ptr apexSketchPoint() const; /// Returns the transient geometry of the curve which provides geometric /// information about the curve. The returned geometry is always in sketch space. /// /// Because the fixed spline can be analytically defined, for example it /// can be the precise intersection of a surface and the sketch plane, /// returning a NURBS curve that represents the spline may be an /// approximation of the actual curve. You can use the Evaluator /// property of the SketchFixedSpline object to perform evaluations /// on the precise curve. core::Ptr geometry() const; /// Returns a NurbsCurve3D object that is the equivalent of this sketch curve /// but is in the space of the parent component rather than in sketch space. core::Ptr worldGeometry() const; /// Returns an evaluator object that lets you perform evaluations /// on the precise geometry of the curve. core::Ptr evaluator() const; /// The NativeObject is the object outside the context of an assembly and /// in the context of its parent component. /// Returns null in the case where this object is not in the context of /// an assembly but is already the native object. core::Ptr nativeObject() const; /// Creates or returns a proxy for the native object /// - i.e. a new object that represents this object but adds the assembly context /// defined by the input occurrence. /// occurrence : The occurrence that defines the context to create the proxy in. /// Returns the proxy object or null if this isn't the NativeObject. core::Ptr createForAssemblyContext(const core::Ptr& occurrence) const; /// Get and sets the rho value for the curve. The value must be greater than /// zero and less than one. double rhoValue() const; bool rhoValue(double value); ADSK_FUSION_SKETCHCONICCURVE_API static const char* classType(); ADSK_FUSION_SKETCHCONICCURVE_API const char* objectType() const override; ADSK_FUSION_SKETCHCONICCURVE_API void* queryInterface(const char* id) const override; ADSK_FUSION_SKETCHCONICCURVE_API static const char* interfaceId() { return classType(); } private: // Raw interface virtual SketchPoint* startSketchPoint_raw() const = 0; virtual SketchPoint* endSketchPoint_raw() const = 0; virtual SketchPoint* apexSketchPoint_raw() const = 0; virtual core::NurbsCurve3D* geometry_raw() const = 0; virtual core::NurbsCurve3D* worldGeometry_raw() const = 0; virtual core::CurveEvaluator3D* evaluator_raw() const = 0; virtual SketchConicCurve* nativeObject_raw() const = 0; virtual SketchConicCurve* createForAssemblyContext_raw(Occurrence* occurrence) const = 0; virtual double rhoValue_raw() const = 0; virtual bool rhoValue_raw(double value) = 0; }; // Inline wrappers inline core::Ptr SketchConicCurve::startSketchPoint() const { core::Ptr res = startSketchPoint_raw(); return res; } inline core::Ptr SketchConicCurve::endSketchPoint() const { core::Ptr res = endSketchPoint_raw(); return res; } inline core::Ptr SketchConicCurve::apexSketchPoint() const { core::Ptr res = apexSketchPoint_raw(); return res; } inline core::Ptr SketchConicCurve::geometry() const { core::Ptr res = geometry_raw(); return res; } inline core::Ptr SketchConicCurve::worldGeometry() const { core::Ptr res = worldGeometry_raw(); return res; } inline core::Ptr SketchConicCurve::evaluator() const { core::Ptr res = evaluator_raw(); return res; } inline core::Ptr SketchConicCurve::nativeObject() const { core::Ptr res = nativeObject_raw(); return res; } inline core::Ptr SketchConicCurve::createForAssemblyContext(const core::Ptr& occurrence) const { core::Ptr res = createForAssemblyContext_raw(occurrence.get()); return res; } inline double SketchConicCurve::rhoValue() const { double res = rhoValue_raw(); return res; } inline bool SketchConicCurve::rhoValue(double value) { return rhoValue_raw(value); } }// namespace fusion }// namespace adsk #undef ADSK_FUSION_SKETCHCONICCURVE_API