Open CASCADE Technology 7.8.0
Public Member Functions | Protected Member Functions
IGESControl_IGESBoundary Class Reference

Translates IGES boundary entity (types 141, 142 and 508) in Advanced Data Exchange. Redefines translation and treatment methods from inherited open class IGESToBRep_IGESBoundary. More...

#include <IGESControl_IGESBoundary.hxx>

Inheritance diagram for IGESControl_IGESBoundary:
Inheritance graph
[legend]

Public Member Functions

 IGESControl_IGESBoundary ()
 Creates an object and calls inherited constructor.
 
 IGESControl_IGESBoundary (const IGESToBRep_CurveAndSurface &CS)
 Creates an object and calls inherited constructor.
 
virtual void Check (const Standard_Boolean result, const Standard_Boolean checkclosure, const Standard_Boolean okCurve3d, const Standard_Boolean okCurve2d) override
 Checks result of translation of IGES boundary entities (types 141, 142 or 508). Checks consistency of 2D and 3D representations and keeps only one if they are inconsistent. Checks the closure of resulting wire and if it is not closed, checks 2D and 3D representation and updates the resulting wire to contain only closed representation.
 
- Public Member Functions inherited from IGESToBRep_IGESBoundary
 IGESToBRep_IGESBoundary ()
 Empty constructor.
 
 IGESToBRep_IGESBoundary (const IGESToBRep_CurveAndSurface &CS)
 Empty constructor.
 
void Init (const IGESToBRep_CurveAndSurface &CS, const Handle< IGESData_IGESEntity > &entity, const TopoDS_Face &face, const gp_Trsf2d &trans, const Standard_Real uFact, const Standard_Integer filepreference)
 Inits the object with parameters common for all types of IGES boundaries. <CS>: object to be used for retrieving translation parameters and sending messages, <entity>: boundary entity to be processed, <face>, <trans>, <uFact>: as for IGESToBRep_TopoCurve <filepreference>: preferred representation (2 or 3) given in the IGES file.
 
Handle< ShapeExtend_WireDataWireData () const
 Returns the resulting wire.
 
Handle< ShapeExtend_WireDataWireData3d () const
 Returns the wire from 3D curves (edges contain 3D curves and may contain pcurves)
 
Handle< ShapeExtend_WireDataWireData2d () const
 Returns the wire from 2D curves (edges contain pcurves only)
 
Standard_Boolean Transfer (Standard_Boolean &okCurve, Standard_Boolean &okCurve3d, Standard_Boolean &okCurve2d, const Handle< IGESData_IGESEntity > &curve3d, const Standard_Boolean toreverse3d, const Handle< IGESData_HArray1OfIGESEntity > &curves2d, const Standard_Integer number)
 Translates 141 and 142 entities. Returns True if the curve has been successfully translated, otherwise returns False. <okCurve..>: flags that indicate whether corresponding representation has been successfully translated (must be set to True before first call), <curve3d>: model space curve for 142 and current model space curve for 141, <toreverse3d>: False for 142 and current orientation flag for 141, <curves2d>: 1 parameter space curve for 142 or list of them for current model space curves for 141, <number>: 1 for 142 and rank number of model space curve for 141.
 
Standard_Boolean Transfer (Standard_Boolean &okCurve, Standard_Boolean &okCurve3d, Standard_Boolean &okCurve2d, const Handle< ShapeExtend_WireData > &curve3d, const Handle< IGESData_HArray1OfIGESEntity > &curves2d, const Standard_Boolean toreverse2d, const Standard_Integer number, Handle< ShapeExtend_WireData > &lsewd)
 Translates 508 entity. Returns True if the curve has been successfully translated, otherwise returns False. Input object IGESBoundary must be created and initialized before. <okCurve..>: flags that indicate whether corresponding representation has been successfully translated (must be set to True before first call), <curve3d>: result of translation of current edge, <curves2d>: list of parameter space curves for edge, <toreverse2d>: orientation flag of current edge in respect to its model space curve, <number>: rank number of edge, <lsewd>: returns the result of translation of current edge.
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor.
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing.
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter.
 
virtual ~Standard_Transient ()
 Destructor must be virtual.
 
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object.
 
Standard_Boolean IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type.
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName.
 
Standard_Boolean IsKind (const opencascade::handle< Standard_Type > &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
 
Standard_Boolean IsKind (const Standard_CString theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
 
Standard_TransientThis () const
 Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
 
Standard_Integer GetRefCount () const noexcept
 Get the reference counter of this object.
 
void IncrementRefCounter () noexcept
 Increments the reference counter of this object.
 
Standard_Integer DecrementRefCounter () noexcept
 Decrements the reference counter of this object; returns the decremented value.
 
virtual void Delete () const
 Memory deallocator for transient classes.
 

Protected Member Functions

virtual Standard_Boolean Transfer (Standard_Boolean &okCurve, Standard_Boolean &okCurve3d, Standard_Boolean &okCurve2d, const Handle< IGESData_IGESEntity > &icurve3d, const Handle< ShapeExtend_WireData > &scurve3d, const Standard_Boolean usescurve, const Standard_Boolean toreverse3d, const Handle< IGESData_HArray1OfIGESEntity > &curves2d, const Standard_Boolean toreverse2d, const Standard_Integer number, Handle< ShapeExtend_WireData > &lsewd) override
 Methods called by both Transfer methods.
 

Additional Inherited Members

- Public Types inherited from Standard_Transient
typedef void base_type
 Returns a type descriptor about this object.
 
- Static Public Member Functions inherited from Standard_Transient
static constexpr const charget_type_name ()
 Returns a type descriptor about this object.
 
static const opencascade::handle< Standard_Type > & get_type_descriptor ()
 Returns type descriptor of Standard_Transient class.
 
- Static Protected Member Functions inherited from IGESToBRep_IGESBoundary
static void ReverseCurves3d (const Handle< ShapeExtend_WireData > &sewd)
 
static void ReverseCurves2d (const Handle< ShapeExtend_WireData > &sewd, const TopoDS_Face &face)
 
- Protected Attributes inherited from IGESToBRep_IGESBoundary
IGESToBRep_CurveAndSurface myCS
 
Handle< IGESData_IGESEntitymyentity
 
Handle< ShapeExtend_WireDatamysewd
 
Handle< ShapeExtend_WireDatamysewd3d
 
Handle< ShapeExtend_WireDatamysewd2d
 
TopoDS_Face myface
 
gp_Trsf2d mytrsf
 
Standard_Real myuFact
 
Standard_Integer myfilepreference
 

Detailed Description

Translates IGES boundary entity (types 141, 142 and 508) in Advanced Data Exchange. Redefines translation and treatment methods from inherited open class IGESToBRep_IGESBoundary.

Constructor & Destructor Documentation

◆ IGESControl_IGESBoundary() [1/2]

IGESControl_IGESBoundary::IGESControl_IGESBoundary ( )

Creates an object and calls inherited constructor.

◆ IGESControl_IGESBoundary() [2/2]

IGESControl_IGESBoundary::IGESControl_IGESBoundary ( const IGESToBRep_CurveAndSurface CS)

Creates an object and calls inherited constructor.

Member Function Documentation

◆ Check()

virtual void IGESControl_IGESBoundary::Check ( const Standard_Boolean  result,
const Standard_Boolean  checkclosure,
const Standard_Boolean  okCurve3d,
const Standard_Boolean  okCurve2d 
)
overridevirtual

Checks result of translation of IGES boundary entities (types 141, 142 or 508). Checks consistency of 2D and 3D representations and keeps only one if they are inconsistent. Checks the closure of resulting wire and if it is not closed, checks 2D and 3D representation and updates the resulting wire to contain only closed representation.

Reimplemented from IGESToBRep_IGESBoundary.

◆ Transfer()

virtual Standard_Boolean IGESControl_IGESBoundary::Transfer ( Standard_Boolean okCurve,
Standard_Boolean okCurve3d,
Standard_Boolean okCurve2d,
const Handle< IGESData_IGESEntity > &  icurve3d,
const Handle< ShapeExtend_WireData > &  scurve3d,
const Standard_Boolean  usescurve,
const Standard_Boolean  toreverse3d,
const Handle< IGESData_HArray1OfIGESEntity > &  curves2d,
const Standard_Boolean  toreverse2d,
const Standard_Integer  number,
Handle< ShapeExtend_WireData > &  lsewd 
)
overrideprotectedvirtual

Methods called by both Transfer methods.

Reimplemented from IGESToBRep_IGESBoundary.


The documentation for this class was generated from the following file: