// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _IntCurve_PConic_HeaderFile #define _IntCurve_PConic_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _gp_Ax22d_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _GeomAbs_CurveType_HeaderFile #include #endif class gp_Elips2d; class gp_Circ2d; class gp_Parab2d; class gp_Hypr2d; class gp_Lin2d; class gp_Ax22d; //! This class represents a conic from gp as a
//! parametric curve ( in order to be used by the
//! class PConicTool from IntCurve).
class IntCurve_PConic { public: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } Standard_EXPORT IntCurve_PConic(const IntCurve_PConic& PC); Standard_EXPORT IntCurve_PConic(const gp_Elips2d& E); Standard_EXPORT IntCurve_PConic(const gp_Circ2d& C); Standard_EXPORT IntCurve_PConic(const gp_Parab2d& P); Standard_EXPORT IntCurve_PConic(const gp_Hypr2d& H); Standard_EXPORT IntCurve_PConic(const gp_Lin2d& L); //! EpsX is a internal tolerance used in math
//! algorithms, usually about 1e-10
//! (See FunctionAllRoots for more details)
Standard_EXPORT void SetEpsX(const Standard_Real EpsDist) ; //! Accuracy is the number of samples used to
//! approximate the parametric curve on its domain.
Standard_EXPORT void SetAccuracy(const Standard_Integer Nb) ; Standard_Integer Accuracy() const; Standard_Real EpsX() const; //! The Conics are manipulated as objects which only
//! depend on three parameters : Axis and two Real from Standards.
//! Type Curve is used to select the correct Conic.
GeomAbs_CurveType TypeCurve() const; const gp_Ax22d& Axis2() const; Standard_Real Param1() const; Standard_Real Param2() const; protected: private: gp_Ax22d axe; Standard_Real prm1; Standard_Real prm2; Standard_Real TheEpsX; Standard_Integer TheAccuracy; GeomAbs_CurveType type; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif