OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    XSControl_TransferWriter Class Reference

    TransferWriter gives help to control transfer to write a file after having converted data from Cascade/Imagine. More...

    #include <XSControl_TransferWriter.hxx>

    Inheritance diagram for XSControl_TransferWriter:

    Public Member Functions

     XSControl_TransferWriter ()
     Creates a TransferWriter, empty, ready to run with an empty FinderProcess (but no controller, etc).
    const occ::handle< Transfer_FinderProcess > & FinderProcess () const
     Returns the FinderProcess itself.
    void SetFinderProcess (const occ::handle< Transfer_FinderProcess > &theFP)
     Sets a new FinderProcess and forgets the former one.
    const occ::handle< XSControl_Controller > & Controller () const
     Returns the currently used Controller.
    void SetController (const occ::handle< XSControl_Controller > &theCtl)
     Sets a new Controller, also sets a new FinderProcess.
    void Clear (const int theMode)
     Clears recorded data according a mode 0 clears FinderProcess (results, checks) -1 create a new FinderProcess.
    int TransferMode () const
     Returns the current Transfer Mode (an Integer) It will be interpreted by the Controller to run Transfers This call form could be later replaced by more specific ones (parameters suited for each norm / transfer case).
    void SetTransferMode (const int theMode)
     Changes the Transfer Mode.
    void PrintStats (const int theWhat, const int theMode=0) const
     Prints statistics on current Trace File, according what,mode See PrintStatsProcess for details.
    bool RecognizeTransient (const occ::handle< Standard_Transient > &theObj)
     Tells if a transient object (from an application) is a valid candidate for a transfer to a model Asks the Controller (RecognizeWriteTransient) If <obj> is a HShape, calls RecognizeShape.
    IFSelect_ReturnStatus TransferWriteTransient (const occ::handle< Interface_InterfaceModel > &theModel, const occ::handle< Standard_Transient > &theObj, const Message_ProgressRange &theProgress=Message_ProgressRange())
     Transfers a Transient object (from an application) to a model of current norm, according to the last call to SetTransferMode Works by calling the Controller Returns status : =0 if OK, >0 if error during transfer, <0 if transfer badly initialised.
    bool RecognizeShape (const TopoDS_Shape &theShape)
     Tells if a Shape is valid for a transfer to a model Asks the Controller (RecognizeWriteShape).
    IFSelect_ReturnStatus TransferWriteShape (const occ::handle< Interface_InterfaceModel > &theModel, const TopoDS_Shape &theShape, const Message_ProgressRange &theProgress=Message_ProgressRange())
     Transfers a Shape from CasCade to a model of current norm, according to the last call to SetTransferMode Works by calling the Controller Returns status : =0 if OK, >0 if error during transfer, <0 if transfer badly initialised.
    Interface_CheckIterator CheckList () const
     Returns the check-list of last transfer (write), i.e. the check-list currently recorded in the FinderProcess.
    Interface_CheckIterator ResultCheckList (const occ::handle< Interface_InterfaceModel > &theModel) const
     Returns the check-list of last transfer (write), but tries to bind to each check, the resulting entity in the model instead of keeping the original Mapper, whenever known.
    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 ()=default
     Destructor must be virtual.
    virtual const opencascade::handle< Standard_Type > & DynamicType () const
     Returns a type descriptor about this object.
    bool IsInstance (const opencascade::handle< Standard_Type > &theType) const
     Returns a true value if this is an instance of Type.
    bool IsInstance (const char *const theTypeName) const
     Returns a true value if this is an instance of TypeName.
    bool 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.
    bool IsKind (const char *const 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.
    int GetRefCount () const noexcept
     Get the reference counter of this object.
    void IncrementRefCounter () noexcept
     Increments the reference counter of this object. Uses relaxed memory ordering since incrementing only requires atomicity, not synchronization with other memory operations.
    int DecrementRefCounter () noexcept
     Decrements the reference counter of this object; returns the decremented value. Uses release ordering for the decrement to ensure all writes to the object are visible before the count reaches zero. An acquire fence is added only when the count reaches zero, ensuring proper synchronization before deletion. This is more efficient than using acq_rel for every decrement.
    virtual void Delete () const
     Memory deallocator for transient classes.

    Additional Inherited Members

    typedef void base_type
     Returns a type descriptor about this object.
    static constexpr const char * get_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.

    Detailed Description

    TransferWriter gives help to control transfer to write a file after having converted data from Cascade/Imagine.

    It works with a Controller (which itself can work with an Actor to Write) and a FinderProcess. It records results and checks

    Constructor & Destructor Documentation

    ◆ XSControl_TransferWriter()

    XSControl_TransferWriter::XSControl_TransferWriter ( )
    inline

    Creates a TransferWriter, empty, ready to run with an empty FinderProcess (but no controller, etc).

    Member Function Documentation

    ◆ CheckList()

    Interface_CheckIterator XSControl_TransferWriter::CheckList ( ) const

    Returns the check-list of last transfer (write), i.e. the check-list currently recorded in the FinderProcess.

    ◆ Clear()

    void XSControl_TransferWriter::Clear ( const int theMode)

    Clears recorded data according a mode 0 clears FinderProcess (results, checks) -1 create a new FinderProcess.

    ◆ Controller()

    const occ::handle< XSControl_Controller > & XSControl_TransferWriter::Controller ( ) const
    inline

    Returns the currently used Controller.

    ◆ FinderProcess()

    const occ::handle< Transfer_FinderProcess > & XSControl_TransferWriter::FinderProcess ( ) const
    inline

    Returns the FinderProcess itself.

    ◆ PrintStats()

    void XSControl_TransferWriter::PrintStats ( const int theWhat,
    const int theMode = 0 ) const

    Prints statistics on current Trace File, according what,mode See PrintStatsProcess for details.

    ◆ RecognizeShape()

    bool XSControl_TransferWriter::RecognizeShape ( const TopoDS_Shape & theShape)

    Tells if a Shape is valid for a transfer to a model Asks the Controller (RecognizeWriteShape).

    ◆ RecognizeTransient()

    bool XSControl_TransferWriter::RecognizeTransient ( const occ::handle< Standard_Transient > & theObj)

    Tells if a transient object (from an application) is a valid candidate for a transfer to a model Asks the Controller (RecognizeWriteTransient) If <obj> is a HShape, calls RecognizeShape.

    ◆ ResultCheckList()

    Interface_CheckIterator XSControl_TransferWriter::ResultCheckList ( const occ::handle< Interface_InterfaceModel > & theModel) const

    Returns the check-list of last transfer (write), but tries to bind to each check, the resulting entity in the model instead of keeping the original Mapper, whenever known.

    ◆ SetController()

    void XSControl_TransferWriter::SetController ( const occ::handle< XSControl_Controller > & theCtl)
    inline

    Sets a new Controller, also sets a new FinderProcess.

    ◆ SetFinderProcess()

    void XSControl_TransferWriter::SetFinderProcess ( const occ::handle< Transfer_FinderProcess > & theFP)
    inline

    Sets a new FinderProcess and forgets the former one.

    ◆ SetTransferMode()

    void XSControl_TransferWriter::SetTransferMode ( const int theMode)
    inline

    Changes the Transfer Mode.

    ◆ TransferMode()

    int XSControl_TransferWriter::TransferMode ( ) const
    inline

    Returns the current Transfer Mode (an Integer) It will be interpreted by the Controller to run Transfers This call form could be later replaced by more specific ones (parameters suited for each norm / transfer case).

    ◆ TransferWriteShape()

    IFSelect_ReturnStatus XSControl_TransferWriter::TransferWriteShape ( const occ::handle< Interface_InterfaceModel > & theModel,
    const TopoDS_Shape & theShape,
    const Message_ProgressRange & theProgress = Message_ProgressRange() )

    Transfers a Shape from CasCade to a model of current norm, according to the last call to SetTransferMode Works by calling the Controller Returns status : =0 if OK, >0 if error during transfer, <0 if transfer badly initialised.

    ◆ TransferWriteTransient()

    IFSelect_ReturnStatus XSControl_TransferWriter::TransferWriteTransient ( const occ::handle< Interface_InterfaceModel > & theModel,
    const occ::handle< Standard_Transient > & theObj,
    const Message_ProgressRange & theProgress = Message_ProgressRange() )

    Transfers a Transient object (from an application) to a model of current norm, according to the last call to SetTransferMode Works by calling the Controller Returns status : =0 if OK, >0 if error during transfer, <0 if transfer badly initialised.


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