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).
More...
#include <IGESControl_Writer.hxx>
|
| 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);. More...
|
|
| 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: More...
|
|
| 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: More...
|
|
const Handle< IGESData_IGESModel > & | Model () const |
| Returns the IGES model to be written in output. More...
|
|
const Handle< Transfer_FinderProcess > & | TransferProcess () const |
|
void | SetTransferProcess (const Handle< Transfer_FinderProcess > &TP) |
| Returns/Sets the TransferProcess : it contains final results and if some, check messages. More...
|
|
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. More...
|
|
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. More...
|
|
Standard_Boolean | AddEntity (const Handle< IGESData_IGESEntity > &ent) |
| Adds an IGES entity (and the ones it references) to the model. More...
|
|
void | ComputeModel () |
| Computes the entities found in the model, which is ready to be written. This contrasts with the default computation of headers only. More...
|
|
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. More...
|
|
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). More...
|
|
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).
◆ IGESControl_Writer() [1/3]
IGESControl_Writer::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);.
◆ IGESControl_Writer() [2/3]
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.
◆ IGESControl_Writer() [3/3]
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.
◆ AddEntity()
Adds an IGES entity (and the ones it references) to the model.
◆ AddGeom()
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.
◆ AddShape()
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.
◆ ComputeModel()
void IGESControl_Writer::ComputeModel |
( |
| ) |
|
Computes the entities found in the model, which is ready to be written. This contrasts with the default computation of headers only.
◆ Model()
Returns the IGES model to be written in output.
◆ SetTransferProcess()
Returns/Sets the TransferProcess : it contains final results and if some, check messages.
◆ TransferProcess()
◆ Write() [1/2]
Computes then writes the model to an OStream Returns True when done, false in case of error.
◆ Write() [2/2]
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).
The documentation for this class was generated from the following file: