OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    IGESSelect_WorkLibrary Class Reference

    Performs Read and Write an IGES File with an IGES Model. More...

    #include <IGESSelect_WorkLibrary.hxx>

    Inheritance diagram for IGESSelect_WorkLibrary:

    Public Member Functions

     IGESSelect_WorkLibrary (const bool modefnes=false)
     Creates a IGES WorkLibrary If <modefnes> is given as True, it will work for FNES.
    int ReadFile (const char *const namename, occ::handle< Interface_InterfaceModel > &model, const occ::handle< Interface_Protocol > &protocol) const override
     Reads a IGES File and returns a IGES Model (into <mod>), or lets <mod> "Null" in case of Error Returns 0 if OK, 1 if Read Error, -1 if File not opened.
    bool WriteFile (IFSelect_ContextWrite &ctx) const override
     Writes a File from a IGES Model (brought by <ctx>) Returns False (and writes no file) if <ctx> is not for IGES.
    void DumpEntity (const occ::handle< Interface_InterfaceModel > &model, const occ::handle< Interface_Protocol > &protocol, const occ::handle< Standard_Transient > &entity, Standard_OStream &S, const int levellevel) const override
     Dumps an IGES Entity with an IGES Dumper. <level> is the one used by IGESDumper.
    Public Member Functions inherited from IFSelect_WorkLibrary
    virtual int ReadStream (const char *const theName, std::istream &theIStream, occ::handle< Interface_InterfaceModel > &model, const occ::handle< Interface_Protocol > &protocol) const
     Interface to read a data from the specified stream.
    virtual bool CopyModel (const occ::handle< Interface_InterfaceModel > &original, const occ::handle< Interface_InterfaceModel > &newmodel, const Interface_EntityIterator &list, Interface_CopyTool &TC) const
     Performs the copy of entities from an original model to a new one. It must also copy headers if any. Returns True when done. The provided default works by copying the individual entities designated in the list, by using the general service class CopyTool. It can be redefined for a norm which, either implements Copy by another way (do not forget to Bind each copied result with its original entity in TC) and returns True, or does not know how to copy and returns False.
    void DumpEntity (const occ::handle< Interface_InterfaceModel > &model, const occ::handle< Interface_Protocol > &protocol, const occ::handle< Standard_Transient > &entity, Standard_OStream &S) const
     Calls deferred DumpEntity with the recorded default level.
    void SetDumpLevels (const int def, const int max)
     Records a default level and a maximum value for level level for DumpEntity can go between 0 and <max> default value will be <def>.
    void DumpLevels (int &def, int &max) const
     Returns the recorded default and maximum dump levels If none was recorded, max is returned negative, def as zero.
    void SetDumpHelp (const int levellevel, const char *const help)
     Records a short line of help for a level (0 - max).
    const char * DumpHelp (const int levellevel) const
     Returns the help line recorded for <level>, or an empty string.
    Public Member Functions inherited from Standard_Transient
     Standard_Transient ()
     Empty constructor.
     Standard_Transient (const Standard_Transient &)
     Copy constructor – does nothing.
    Standard_Transient & operator= (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_Transient * This () 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.

    Static Public Member Functions

    static occ::handle< IGESData_Protocol > DefineProtocol ()
     Defines a protocol to be adequate for IGES (encompasses ALL the IGES norm including IGESSolid, IGESAppli).
    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.

    Additional Inherited Members

    typedef void base_type
     Returns a type descriptor about this object.
    Protected Member Functions inherited from IFSelect_WorkLibrary
     IFSelect_WorkLibrary ()
     Required to initialise fields.

    Detailed Description

    Performs Read and Write an IGES File with an IGES Model.

    Constructor & Destructor Documentation

    ◆ IGESSelect_WorkLibrary()

    IGESSelect_WorkLibrary::IGESSelect_WorkLibrary ( const bool modefnes = false)

    Creates a IGES WorkLibrary If <modefnes> is given as True, it will work for FNES.

    Member Function Documentation

    ◆ DefineProtocol()

    occ::handle< IGESData_Protocol > IGESSelect_WorkLibrary::DefineProtocol ( )
    static

    Defines a protocol to be adequate for IGES (encompasses ALL the IGES norm including IGESSolid, IGESAppli).

    ◆ DumpEntity()

    void IGESSelect_WorkLibrary::DumpEntity ( const occ::handle< Interface_InterfaceModel > & model,
    const occ::handle< Interface_Protocol > & protocol,
    const occ::handle< Standard_Transient > & entity,
    Standard_OStream & S,
    const int level ) const
    overridevirtual

    Dumps an IGES Entity with an IGES Dumper. <level> is the one used by IGESDumper.

    Implements IFSelect_WorkLibrary.

    ◆ ReadFile()

    int IGESSelect_WorkLibrary::ReadFile ( const char *const name,
    occ::handle< Interface_InterfaceModel > & model,
    const occ::handle< Interface_Protocol > & protocol ) const
    overridevirtual

    Reads a IGES File and returns a IGES Model (into <mod>), or lets <mod> "Null" in case of Error Returns 0 if OK, 1 if Read Error, -1 if File not opened.

    Implements IFSelect_WorkLibrary.

    ◆ WriteFile()

    bool IGESSelect_WorkLibrary::WriteFile ( IFSelect_ContextWrite & ctx) const
    overridevirtual

    Writes a File from a IGES Model (brought by <ctx>) Returns False (and writes no file) if <ctx> is not for IGES.

    Implements IFSelect_WorkLibrary.


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