// 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 _GeomLib_MakeCurvefromApprox_HeaderFile #define _GeomLib_MakeCurvefromApprox_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _AdvApprox_ApproxAFunction_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Handle_Geom2d_BSplineCurve_HeaderFile #include #endif #ifndef _Handle_Geom_BSplineCurve_HeaderFile #include #endif class StdFail_NotDone; class Standard_OutOfRange; class AdvApprox_ApproxAFunction; class Geom2d_BSplineCurve; class Geom_BSplineCurve; //! this class is used to construct the BSpline curve
//! from an Approximation ( ApproxAFunction from AdvApprox).
class GeomLib_MakeCurvefromApprox { 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 GeomLib_MakeCurvefromApprox(const AdvApprox_ApproxAFunction& Approx); Standard_Boolean IsDone() const; //! returns the number of 1D spaces of the Approx
Standard_EXPORT Standard_Integer Nb1DSpaces() const; //! returns the number of 3D spaces of the Approx
Standard_EXPORT Standard_Integer Nb2DSpaces() const; //! returns the number of 3D spaces of the Approx
Standard_EXPORT Standard_Integer Nb3DSpaces() const; //! returns a polynomial curve whose poles correspond to
//! the Index2d 2D space
//! if Index2d not in the Range [1,Nb2dSpaces]
//! if the Approx is not Done
Standard_EXPORT Handle_Geom2d_BSplineCurve Curve2d(const Standard_Integer Index2d) const; //! returns a 2D curve building it from the 1D curve
//! in x at Index1d and y at Index2d amongst the
//! 1D curves
//! if Index1d not in the Range [1,Nb1dSpaces]
//! if Index2d not in the Range [1,Nb1dSpaces]
//! if the Approx is not Done
Standard_EXPORT Handle_Geom2d_BSplineCurve Curve2dFromTwo1d(const Standard_Integer Index1d,const Standard_Integer Index2d) const; //! returns a rational curve whose poles correspond to
//! the index2d of the 2D space and whose weights correspond
//! to one dimensional space of index 1d
//! if Index1d not in the Range [1,Nb1dSpaces]
//! if Index2d not in the Range [1,Nb2dSpaces]
//! if the Approx is not Done
Standard_EXPORT Handle_Geom2d_BSplineCurve Curve2d(const Standard_Integer Index1d,const Standard_Integer Index2d) const; //! returns a polynomial curve whose poles correspond to
//! the Index3D 3D space
//! if Index3D not in the Range [1,Nb3dSpaces]
//! if the Approx is not Done
Standard_EXPORT Handle_Geom_BSplineCurve Curve(const Standard_Integer Index3d) const; //! returns a rational curve whose poles correspond to
//! the index3D of the 3D space and whose weights correspond
//! to the index1d 1D space.
//! if Index1D not in the Range [1,Nb1dSpaces]
//! if Index3D not in the Range [1,Nb3dSpaces]
//! if the Approx is not Done
Standard_EXPORT Handle_Geom_BSplineCurve Curve(const Standard_Integer Index1D,const Standard_Integer Index3D) const; protected: private: AdvApprox_ApproxAFunction myApprox; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif