// 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 _ShapeAnalysis_TransferParameters_HeaderFile #define _ShapeAnalysis_TransferParameters_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_ShapeAnalysis_TransferParameters_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _TopoDS_Edge_HeaderFile #include #endif #ifndef _TopoDS_Face_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif #ifndef _Handle_TColStd_HSequenceOfReal_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif class TopoDS_Edge; class TopoDS_Face; class TColStd_HSequenceOfReal; //! This tool is used for transferring parameters
//! from 3d curve of the edge to pcurve and vice versa.
class ShapeAnalysis_TransferParameters : public MMgt_TShared { public: //! Creates empty tool with myShift = 0 and myScale = 1
Standard_EXPORT ShapeAnalysis_TransferParameters(); //! Creates a tool and initializes it with edge and face
Standard_EXPORT ShapeAnalysis_TransferParameters(const TopoDS_Edge& E,const TopoDS_Face& F); //! Initialize a tool with edge and face
Standard_EXPORT virtual void Init(const TopoDS_Edge& E,const TopoDS_Face& F) ; //! Sets maximal tolerance to use linear recomputation of
//! parameters.
Standard_EXPORT void SetMaxTolerance(const Standard_Real maxtol) ; //! Transfers parameters given by sequence Params from 3d curve
//! to pcurve (if To2d is True) or back (if To2d is False)
Standard_EXPORT virtual Handle_TColStd_HSequenceOfReal Perform(const Handle(TColStd_HSequenceOfReal)& Params,const Standard_Boolean To2d) ; //! Transfers parameter given by sequence Params from 3d curve
//! to pcurve (if To2d is True) or back (if To2d is False)
Standard_EXPORT virtual Standard_Real Perform(const Standard_Real Param,const Standard_Boolean To2d) ; //!Recomputes range of curves from NewEdge.
//! If Is2d equals True parameters are recomputed by curve2d else by curve3d.
Standard_EXPORT virtual void TransferRange(TopoDS_Edge& newEdge,const Standard_Real prevPar,const Standard_Real currPar,const Standard_Boolean To2d) ; //! Returns True if 3d curve of edge and pcurve are SameRange
//! (in default implementation, if myScale == 1 and myShift == 0)
Standard_EXPORT virtual Standard_Boolean IsSameRange() const; DEFINE_STANDARD_RTTI(ShapeAnalysis_TransferParameters) protected: Standard_Real myFirst; Standard_Real myLast; TopoDS_Edge myEdge; Standard_Real myMaxTolerance; private: Standard_Real myShift; Standard_Real myScale; Standard_Real myFirst2d; Standard_Real myLast2d; TopoDS_Face myFace; }; // other Inline functions and methods (like "C++: function call" methods) #endif