Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions
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:
Inheritance graph
[legend]

Public Member Functions

 IGESSelect_WorkLibrary (const Standard_Boolean modefnes=Standard_False)
 Creates a IGES WorkLibrary
If <modefnes> is given as True, it will work for FNES
More...
 
Standard_Integer ReadFile (const Standard_CString name, Handle< Interface_InterfaceModel > &model, const Handle< Interface_Protocol > &protocol) const
 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
More...
 
Standard_Boolean WriteFile (IFSelect_ContextWrite &ctx) const
 Writes a File from a IGES Model (brought by <ctx>)
Returns False (and writes no file) if <ctx> is not for IGES
More...
 
void DumpEntity (const Handle< Interface_InterfaceModel > &model, const Handle< Interface_Protocol > &protocol, const Handle< Standard_Transient > &entity, const Handle< Message_Messenger > &S, const Standard_Integer level) const
 Dumps an IGES Entity with an IGES Dumper. <level> is the one
used by IGESDumper.
More...
 
- Public Member Functions inherited from IFSelect_WorkLibrary
virtual Standard_Boolean CopyModel (const Handle< Interface_InterfaceModel > &original, const 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
More...
 
void DumpEntity (const Handle< Interface_InterfaceModel > &model, const Handle< Interface_Protocol > &protocol, const Handle< Standard_Transient > &entity, const Handle< Message_Messenger > &S) const
 Calls deferred DumpEntity with the recorded default level
More...
 
void SetDumpLevels (const Standard_Integer def, const Standard_Integer 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>
More...
 
void DumpLevels (Standard_Integer &def, Standard_Integer &max) const
 Returns the recorded default and maximum dump levels
If none was recorded, max is returned negative, def as zero
More...
 
void SetDumpHelp (const Standard_Integer level, const Standard_CString help)
 Records a short line of help for a level (0 - max)
More...
 
Standard_CString DumpHelp (const Standard_Integer level) const
 Returns the help line recorded for <level>, or an empty string
More...
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
virtual void ShallowDump (Standard_OStream &) const
 
virtual const
Handle_Standard_Type & 
DynamicType () const
 Returns a type information object about this object. More...
 
Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const 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. More...
 
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. More...
 
virtual Handle_Standard_Transient This () const
 Returns a Handle which references this object. Must never be called to objects created in stack. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 

Static Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from IFSelect_WorkLibrary
 IFSelect_WorkLibrary ()
 Required to initialise fields
More...
 

Detailed Description

Performs Read and Write an IGES File with an IGES Model

Constructor & Destructor Documentation

IGESSelect_WorkLibrary::IGESSelect_WorkLibrary ( const Standard_Boolean  modefnes = Standard_False)

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

Member Function Documentation

static Handle_IGESData_Protocol IGESSelect_WorkLibrary::DefineProtocol ( )
static

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

void IGESSelect_WorkLibrary::DumpEntity ( const Handle< Interface_InterfaceModel > &  model,
const Handle< Interface_Protocol > &  protocol,
const Handle< Standard_Transient > &  entity,
const Handle< Message_Messenger > &  S,
const Standard_Integer  level 
) const
virtual

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

Implements IFSelect_WorkLibrary.

Standard_Integer IGESSelect_WorkLibrary::ReadFile ( const Standard_CString  name,
Handle< Interface_InterfaceModel > &  model,
const Handle< Interface_Protocol > &  protocol 
) const
virtual

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.

Standard_Boolean IGESSelect_WorkLibrary::WriteFile ( IFSelect_ContextWrite ctx) const
virtual

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: