// 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 _IGESConvGeom_GeomBuilder_HeaderFile #define _IGESConvGeom_GeomBuilder_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Handle_TColgp_HSequenceOfXYZ_HeaderFile #include #endif #ifndef _gp_Trsf_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Handle_IGESGeom_CopiousData_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Handle_TColgp_HArray1OfXY_HeaderFile #include #endif #ifndef _Handle_TColgp_HArray1OfXYZ_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Handle_IGESGeom_TransformationMatrix_HeaderFile #include #endif class TColgp_HSequenceOfXYZ; class Standard_DomainError; class gp_XY; class gp_XYZ; class IGESGeom_CopiousData; class TColgp_HArray1OfXY; class TColgp_HArray1OfXYZ; class gp_Trsf; class gp_Ax3; class gp_Ax2; class gp_Ax1; class IGESGeom_TransformationMatrix; //! This class provides some useful basic tools to build IGESGeom
//! curves, especially :
//! define a curve in a plane in 3D space (ex. Circular or Conic
//! arc, or Copious Data defined in 2D)
//! make a CopiousData from a list of points/vectors
class IGESConvGeom_GeomBuilder { 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); } //! Creates a GeomBuilder at initial state.
Standard_EXPORT IGESConvGeom_GeomBuilder(); //! Clears list of Points/Vectors and data about Transformation
Standard_EXPORT void Clear() ; //! Adds a XY (Z=0) to the list of points
Standard_EXPORT void AddXY(const gp_XY& val) ; //! Adds a XYZ to the list of points
Standard_EXPORT void AddXYZ(const gp_XYZ& val) ; //! Adds a Vector part to the list of points. It will be used
//! for CopiousData, datatype=3, only.
//! AddXY and AddXYZ consider a null vector part (0,0,0)
//! AddVec adds to the last added XY or XYZ
Standard_EXPORT void AddVec(const gp_XYZ& val) ; //! Returns the count of already recorded points
Standard_EXPORT Standard_Integer NbPoints() const; //! Returns a point given its rank (if added as XY, Z will be 0)
Standard_EXPORT gp_XYZ Point(const Standard_Integer num) const; //! Makes a CopiousData with the list of recorded Points/Vectors
//! according to , which must be 1,2 or 3
//! If is given True, the CopiousData is coded as a
//! Polyline, but must not be 3
//! = 1 : Common Z is computed as average of all Z
//! = 1 or 2 : Vectors are ignored
Standard_EXPORT Handle_IGESGeom_CopiousData MakeCopiousData(const Standard_Integer datatype,const Standard_Boolean polyline = Standard_False) const; //! Returns the list of points as a HArray1OfXY. Z are ignored.
Standard_EXPORT Handle_TColgp_HArray1OfXY MakeXY() const; //! Returns the list of points as a HArray1OfXYZ
Standard_EXPORT Handle_TColgp_HArray1OfXYZ MakeXYZ() const; //! Returns the Position in which the method EvalXYZ will
//! evaluate a XYZ. It can be regarded as defining a local system.
//! It is initially set to Identity
Standard_EXPORT gp_Trsf Position() const; //! Sets final position from an already defined Trsf
Standard_EXPORT void SetPosition(const gp_Trsf& pos) ; //! Sets final position from an Ax3
Standard_EXPORT void SetPosition(const gp_Ax3& pos) ; //! Sets final position from an Ax2
Standard_EXPORT void SetPosition(const gp_Ax2& pos) ; //! Sets final position from an Ax1
//! (this means that origin point and Z-axis are defined, the
//! other axes are defined arbitrarily)
Standard_EXPORT void SetPosition(const gp_Ax1& pos) ; //! Returns True if the Position is Identity
Standard_EXPORT Standard_Boolean IsIdentity() const; //! Returns True if the Position is a Translation only
//! Remark : Identity and ZOnly will answer True
Standard_EXPORT Standard_Boolean IsTranslation() const; //! Returns True if the Position corresponds to a Z-Displacement,
//! i.e. is a Translation only, and only on Z
//! Remark : Identity will answer True
Standard_EXPORT Standard_Boolean IsZOnly() const; //! Evaluates a XYZ value in the Position already defined.
//! Returns the transformed coordinates.
//! For a 2D definition, X,Y will then be used to define a XY and
//! Z will be regarded as a Z Displacement (can be ignored)
Standard_EXPORT void EvalXYZ(const gp_XYZ& val,Standard_Real& X,Standard_Real& Y,Standard_Real& Z) const; //! Returns the IGES Transformation which corresponds to the
//! Position. Even if it is an Identity : IsIdentity should be
//! tested first.
//! is the unit value in which the model is created :
//! it is used to convert translation part
Standard_EXPORT Handle_IGESGeom_TransformationMatrix MakeTransformation(const Standard_Real unit = 1) const; protected: private: Handle_TColgp_HSequenceOfXYZ theXYZ; Handle_TColgp_HSequenceOfXYZ theVec; gp_Trsf thepos; }; // other Inline functions and methods (like "C++: function call" methods) #endif