// 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 _GCPnts_TangentialDeflection_HeaderFile #define _GCPnts_TangentialDeflection_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _TColgp_SequenceOfPnt_HeaderFile #include #endif #ifndef _TColStd_SequenceOfReal_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _gp_Pnt_HeaderFile #include #endif class Standard_ConstructionError; class Standard_OutOfRange; class Adaptor3d_Curve; class Adaptor2d_Curve2d; class gp_Pnt; //! Computes a set of points on a curve from package
//! Adaptor3d such as between two successive points
//! P1(u1)and P2(u2) :
//!
//! . ||P1P3^P3P2||/||P1P3||*||P3P2|| //! . ||P1P2^P1P3||/||P1P2||*||P1P3|| class GCPnts_TangentialDeflection { 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 GCPnts_TangentialDeflection(); Standard_EXPORT GCPnts_TangentialDeflection(const Adaptor3d_Curve& C,const Standard_Real AngularDeflection,const Standard_Real CurvatureDeflection,const Standard_Integer MinimumOfPoints = 2,const Standard_Real UTol = 1.0e-9); Standard_EXPORT GCPnts_TangentialDeflection(const Adaptor3d_Curve& C,const Standard_Real FirstParameter,const Standard_Real LastParameter,const Standard_Real AngularDeflection,const Standard_Real CurvatureDeflection,const Standard_Integer MinimumOfPoints = 2,const Standard_Real UTol = 1.0e-9); Standard_EXPORT GCPnts_TangentialDeflection(const Adaptor2d_Curve2d& C,const Standard_Real AngularDeflection,const Standard_Real CurvatureDeflection,const Standard_Integer MinimumOfPoints = 2,const Standard_Real UTol = 1.0e-9); Standard_EXPORT GCPnts_TangentialDeflection(const Adaptor2d_Curve2d& C,const Standard_Real FirstParameter,const Standard_Real LastParameter,const Standard_Real AngularDeflection,const Standard_Real CurvatureDeflection,const Standard_Integer MinimumOfPoints = 2,const Standard_Real UTol = 1.0e-9); Standard_EXPORT void Initialize(const Adaptor3d_Curve& C,const Standard_Real AngularDeflection,const Standard_Real CurvatureDeflection,const Standard_Integer MinimumOfPoints = 2,const Standard_Real UTol = 1.0e-9) ; Standard_EXPORT void Initialize(const Adaptor3d_Curve& C,const Standard_Real FirstParameter,const Standard_Real LastParameter,const Standard_Real AngularDeflection,const Standard_Real CurvatureDeflection,const Standard_Integer MinimumOfPoints = 2,const Standard_Real UTol = 1.0e-9) ; Standard_EXPORT void Initialize(const Adaptor2d_Curve2d& C,const Standard_Real AngularDeflection,const Standard_Real CurvatureDeflection,const Standard_Integer MinimumOfPoints = 2,const Standard_Real UTol = 1.0e-9) ; Standard_EXPORT void Initialize(const Adaptor2d_Curve2d& C,const Standard_Real FirstParameter,const Standard_Real LastParameter,const Standard_Real AngularDeflection,const Standard_Real CurvatureDeflection,const Standard_Integer MinimumOfPoints = 2,const Standard_Real UTol = 1.0e-9) ; //! Add point to already calculated points (or replace existing)
//! Returns index of new added point
//! or founded with parametric tolerance (replaced if theIsReplace is true)
Standard_EXPORT Standard_Integer AddPoint(const gp_Pnt& thePnt,const Standard_Real theParam,const Standard_Boolean theIsReplace = Standard_True) ; Standard_Integer NbPoints() const; Standard_Real Parameter(const Standard_Integer I) const; gp_Pnt Value(const Standard_Integer I) const; protected: private: Standard_EXPORT void PerformLinear(const Adaptor3d_Curve& C) ; Standard_EXPORT void PerformLinear(const Adaptor2d_Curve2d& C) ; Standard_EXPORT void PerformCircular(const Adaptor3d_Curve& C) ; Standard_EXPORT void PerformCircular(const Adaptor2d_Curve2d& C) ; Standard_EXPORT void PerformCurve(const Adaptor3d_Curve& C) ; Standard_EXPORT void PerformCurve(const Adaptor2d_Curve2d& C) ; Standard_EXPORT void EvaluateDu(const Adaptor3d_Curve& C,const Standard_Real U,gp_Pnt& P,Standard_Real& Du,Standard_Boolean& NotDone) const; Standard_EXPORT void EvaluateDu(const Adaptor2d_Curve2d& C,const Standard_Real U,gp_Pnt& P,Standard_Real& Du,Standard_Boolean& NotDone) const; Standard_Real angularDeflection; Standard_Real curvatureDeflection; Standard_Real uTol; Standard_Integer minNbPnts; Standard_Real lastu; Standard_Real firstu; TColgp_SequenceOfPnt points; TColStd_SequenceOfReal parameters; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif