// 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 _Geom2dLProp_CurAndInf2d_HeaderFile #define _Geom2dLProp_CurAndInf2d_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _LProp_CurAndInf_HeaderFile #include #endif #ifndef _Handle_Geom2d_Curve_HeaderFile #include #endif class Geom2d_Curve; //! An algorithm for computing local properties of a curve.
//! These properties include:
//! - the maximum and minimum curvatures
//! - the inflection points.
//! A CurAndInf2d object provides the framework for:
//! - defining the curve to be analyzed
//! - implementing the computation algorithms
//! - consulting the results.
class Geom2dLProp_CurAndInf2d : public LProp_CurAndInf { 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); } //! Initializes the framework.
//! Note: The curve on which the local properties are
//! computed is defined using one of the following
//! functions: Perform, PerformCurExt or PerformInf.
Standard_EXPORT Geom2dLProp_CurAndInf2d(); //! For the curve C, Computes both the
//! inflection points and the maximum and minimum curvatures.
Standard_EXPORT void Perform(const Handle(Geom2d_Curve)& C) ; //! For the curve C, Computes the locals extremas of curvature.
Standard_EXPORT void PerformCurExt(const Handle(Geom2d_Curve)& C) ; //! For the curve C, Computes the inflections.
//! After computation, the following functions can be used:
//! - IsDone to check if the computation was successful
//! - NbPoints to obtain the number of computed particular points
//! - Parameter to obtain the parameter on the curve for
//! each particular point
//! - Type to check if the point is an inflection point or an
//! extremum of curvature of the curve C.
//! Warning
//! These functions can be used to analyze a series of
//! curves, however it is necessary to clear the table of
//! results between each computation.
Standard_EXPORT void PerformInf(const Handle(Geom2d_Curve)& C) ; //! True if the solutions are found.
Standard_EXPORT Standard_Boolean IsDone() const; protected: private: Standard_Boolean isDone; }; // other Inline functions and methods (like "C++: function call" methods) #endif