OCC Main Page | DataExchange | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

DataExchange
TKIGES
IGESControl


IGESControl_Writer Class Reference

This class creates and writes
IGES files from CAS.CADE models. An IGES file can be written to
an existing IGES file or to a new one.
The translation can be performed in one or several
operations. Each translation operation
outputs a distinct root entity in the IGES file.
To write an IGES file it is possible to use the following sequence:
To modify the IGES file header or to change translation
parameters it is necessary to use class Interface_Static (see
IGESParameters and GeneralParameters).
.

#include <IGESControl_Writer.hxx>

Inheritance diagram for IGESControl_Writer:

Inheritance graph
[legend]

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT IGESControl_Writer ()
 Creates a writer object with the
default unit (millimeters) and write mode (Face).
IGESControl_Writer (const Standard_CString unit,
const Standard_Integer modecr = 0);
.
Standard_EXPORT IGESControl_Writer (const Standard_CString unit, const Standard_Integer modecr=0)
 Creates a writer with given
values for units and for write mode.
unit may be any unit that is accepted by the IGES standard.
By default, it is the millimeter.
modecr defines the write mode and may be:
- 0: Faces (default)
- 1: BRep.
.
Standard_EXPORT IGESControl_Writer (const Handle(IGESData_IGESModel)&model, const Standard_Integer modecr=0)
 Creates a writer object with the
prepared IGES model model in write mode.
modecr defines the write mode and may be:
- 0: Faces (default)
- 1: BRep.
.
Standard_EXPORT Handle_IGESData_IGESModel Model () const
 Returns the IGES model to be written in output.
.
Standard_EXPORT Handle_Transfer_FinderProcess TransferProcess () const
Standard_EXPORT void SetTransferProcess (const Handle(Transfer_FinderProcess)&TP)
 Returns/Sets the TransferProcess : it contains final results
and if some, check messages
.
Standard_EXPORT Standard_Boolean AddShape (const TopoDS_Shape &sh)
 Translates a Shape to IGES Entities and adds them to the model
Returns True if done, False if Shape not suitable for IGES or null
.
Standard_EXPORT Standard_Boolean AddGeom (const Handle(Standard_Transient)&geom)
 Translates a Geometry (Surface or Curve) to IGES Entities and
adds them to the model
Returns True if done, False if geom is neither a Surface or
a Curve suitable for IGES or is null
.
Standard_EXPORT Standard_Boolean AddEntity (const Handle(IGESData_IGESEntity)&ent)
 Adds an IGES entity (and the ones it references) to the model
.
Standard_EXPORT void ComputeModel ()
 Computes the entities found in
the model, which is ready to be written.
This contrasts with the default computation of headers only.
.
Standard_EXPORT Standard_Boolean Write (Standard_OStream &S, const Standard_Boolean fnes=Standard_False)
 Computes then writes the model to an OStream
Returns True when done, false in case of error
.
Standard_EXPORT Standard_Boolean Write (const Standard_CString file, const Standard_Boolean fnes=Standard_False)
 Prepares and writes an IGES model
either to an OStream, S or to a file name,CString.
Returns True if the operation was performed correctly and
False if an error occurred (for instance,
if the processor could not create the file).
.
Standard_EXPORT void PrintStatsTransfer (const Standard_Integer what, const Standard_Integer mode=0) const
 Prints Statistics about Transfer
.

Private Attributes

Handle_Transfer_FinderProcess theTP
Handle_IGESData_IGESModel themod
IGESData_BasicEditor thedit
Standard_Integer thecr
Standard_Boolean thest

Constructor & Destructor Documentation

Standard_EXPORT IGESControl_Writer::IGESControl_Writer  ) 
 

Standard_EXPORT IGESControl_Writer::IGESControl_Writer const Standard_CString  unit,
const Standard_Integer  modecr = 0
 

Standard_EXPORT IGESControl_Writer::IGESControl_Writer const Handle(IGESData_IGESModel)&  model,
const Standard_Integer  modecr = 0
 


Member Function Documentation

Standard_EXPORT Standard_Boolean IGESControl_Writer::AddEntity const Handle(IGESData_IGESEntity)&  ent  ) 
 

Standard_EXPORT Standard_Boolean IGESControl_Writer::AddGeom const Handle(Standard_Transient)&  geom  ) 
 

Standard_EXPORT Standard_Boolean IGESControl_Writer::AddShape const TopoDS_Shape &  sh  ) 
 

Standard_EXPORT void IGESControl_Writer::ComputeModel  ) 
 

Standard_EXPORT Handle_IGESData_IGESModel IGESControl_Writer::Model  )  const
 

void IGESControl_Writer::operator delete void *  anAddress  )  [inline]
 

Reimplemented in IGESCAFControl_Writer.

void* IGESControl_Writer::operator new size_t  size  )  [inline]
 

Reimplemented in IGESCAFControl_Writer.

void* IGESControl_Writer::operator new size_t  ,
void *  anAddress
[inline]
 

Reimplemented in IGESCAFControl_Writer.

Standard_EXPORT void IGESControl_Writer::PrintStatsTransfer const Standard_Integer  what,
const Standard_Integer  mode = 0
const
 

Standard_EXPORT void IGESControl_Writer::SetTransferProcess const Handle(Transfer_FinderProcess)&  TP  ) 
 

Standard_EXPORT Handle_Transfer_FinderProcess IGESControl_Writer::TransferProcess  )  const
 

Standard_EXPORT Standard_Boolean IGESControl_Writer::Write const Standard_CString  file,
const Standard_Boolean  fnes = Standard_False
 

Standard_EXPORT Standard_Boolean IGESControl_Writer::Write Standard_OStream &  S,
const Standard_Boolean  fnes = Standard_False
 


Field Documentation

Standard_Integer IGESControl_Writer::thecr [private]
 

IGESData_BasicEditor IGESControl_Writer::thedit [private]
 

Handle_IGESData_IGESModel IGESControl_Writer::themod [private]
 

Standard_Boolean IGESControl_Writer::thest [private]
 

Handle_Transfer_FinderProcess IGESControl_Writer::theTP [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 14:40:19 2008 for OpenCASCADE by  doxygen 1.4.1