// 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_AbscissaPoint_HeaderFile #define _GCPnts_AbscissaPoint_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _CPnts_AbscissaPoint_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif class StdFail_NotDone; class Standard_ConstructionError; class Adaptor3d_Curve; class Adaptor2d_Curve2d; //! Provides an algorithm to compute a point on a curve
//! situated at a given distance from another point on the
//! curve, the distance being measured along the curve
//! (curvilinear abscissa on the curve).
//! This algorithm is also used to compute the length of a curve.
//! An AbscissaPoint object provides a framework for:
//! - defining the point to compute
//! - implementing the construction algorithm
//! - consulting the result.
class GCPnts_AbscissaPoint { 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); } //! Computes the length of the Curve .
Standard_EXPORT static Standard_Real Length(Adaptor3d_Curve& C) ; //! Computes the length of the Curve .
Standard_EXPORT static Standard_Real Length(Adaptor2d_Curve2d& C) ; //! Computes the length of the Curve with the given tolerance.
Standard_EXPORT static Standard_Real Length(Adaptor3d_Curve& C,const Standard_Real Tol) ; //! Computes the length of the Curve with the given tolerance.
Standard_EXPORT static Standard_Real Length(Adaptor2d_Curve2d& C,const Standard_Real Tol) ; //! Computes the length of the Curve .
Standard_EXPORT static Standard_Real Length(Adaptor3d_Curve& C,const Standard_Real U1,const Standard_Real U2) ; //! Computes the length of the Curve .
Standard_EXPORT static Standard_Real Length(Adaptor2d_Curve2d& C,const Standard_Real U1,const Standard_Real U2) ; //! Computes the length of the Curve with the given tolerance.
Standard_EXPORT static Standard_Real Length(Adaptor3d_Curve& C,const Standard_Real U1,const Standard_Real U2,const Standard_Real Tol) ; //! Computes the length of the Curve with the given tolerance.
//! Constructs an empty algorithm. This function is used
//! only for initializing a framework to compute the length
//! of a curve (or a series of curves).
//! Warning
//! The function IsDone will return the value false after the use of this function.
Standard_EXPORT static Standard_Real Length(Adaptor2d_Curve2d& C,const Standard_Real U1,const Standard_Real U2,const Standard_Real Tol) ; Standard_EXPORT GCPnts_AbscissaPoint(); //! the algorithm computes a point on a curve at the
//! distance from the point of parameter .
Standard_EXPORT GCPnts_AbscissaPoint(Adaptor3d_Curve& C,const Standard_Real Abscissa,const Standard_Real U0); //! the algorithm computes a point on a curve at
//! the distance from the point of parameter
//! with the given tolerance.
Standard_EXPORT GCPnts_AbscissaPoint(const Standard_Real Tol,Adaptor3d_Curve& C,const Standard_Real Abscissa,const Standard_Real U0); //! the algorithm computes a point on a curve at
//! the distance from the point of parameter
//! with the given tolerance.
Standard_EXPORT GCPnts_AbscissaPoint(const Standard_Real Tol,Adaptor2d_Curve2d& C,const Standard_Real Abscissa,const Standard_Real U0); //! the algorithm computes a point on a curve at the
//! distance from the point of parameter .
Standard_EXPORT GCPnts_AbscissaPoint(Adaptor2d_Curve2d& C,const Standard_Real Abscissa,const Standard_Real U0); //! the algorithm computes a point on a curve at the
//! distance from the point of parameter .
//! is the starting value used in the iterative process
//! which find the solution, it must be close to the final
//! solution
Standard_EXPORT GCPnts_AbscissaPoint(Adaptor3d_Curve& C,const Standard_Real Abscissa,const Standard_Real U0,const Standard_Real Ui); //! the algorithm computes a point on a curve at the
//! distance from the point of parameter .
//! is the starting value used in the iterative process
//! which find the solution, it must be closed to the final
//! solution
Standard_EXPORT GCPnts_AbscissaPoint(Adaptor2d_Curve2d& C,const Standard_Real Abscissa,const Standard_Real U0,const Standard_Real Ui); //! the algorithm computes a point on a curve at the
//! distance from the point of parameter .
//! is the starting value used in the iterative process
//! which find the solution, it must be close to the final
//! solution
Standard_EXPORT GCPnts_AbscissaPoint(Adaptor3d_Curve& C,const Standard_Real Abscissa,const Standard_Real U0,const Standard_Real Ui,const Standard_Real Tol); //! the algorithm computes a point on a curve at the
//! distance from the point of parameter .
//! is the starting value used in the iterative process
//! which find the solution, it must be close to the final
//! solution
Standard_EXPORT GCPnts_AbscissaPoint(Adaptor2d_Curve2d& C,const Standard_Real Abscissa,const Standard_Real U0,const Standard_Real Ui,const Standard_Real Tol); //! True if the computation was successful, False otherwise.
//! IsDone is a protection against:
//! - non-convergence of the algorithm
//! - querying the results before computation.
Standard_Boolean IsDone() const; //! Returns the parameter on the curve of the point
//! solution of this algorithm.
//! Exceptions
//! StdFail_NotDone if the computation was not
//! successful, or was not done.
Standard_Real Parameter() const; protected: private: CPnts_AbscissaPoint myComputer; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif