// 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 _AdvApprox_PrefCutting_HeaderFile #define _AdvApprox_PrefCutting_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _TColStd_Array1OfReal_HeaderFile #include #endif #ifndef _AdvApprox_Cutting_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif class TColStd_Array1OfReal; //! inherits class Cutting; contains a list of preferential points (di)i
//! if Cutting is necessary in [a,b], we cut at the di nearest from (a+b)/2.
class AdvApprox_PrefCutting : public AdvApprox_Cutting { 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 AdvApprox_PrefCutting(const TColStd_Array1OfReal& CutPnts); Standard_EXPORT virtual Standard_Boolean Value(const Standard_Real a,const Standard_Real b,Standard_Real& cuttingvalue) const; protected: private: TColStd_Array1OfReal myPntOfCutting; }; // other Inline functions and methods (like "C++: function call" methods) #endif