Open CASCADE Technology
7.2.0
|
This class creates and writes STEP files from Open CASCADE models. A STEP file can be written to an existing STEP file or to a new one. Translation can be performed in one or several operations. Each translation operation outputs a distinct root entity in the STEP file. More...
#include <STEPControl_Writer.hxx>
Public Member Functions | |
STEPControl_Writer () | |
Creates a Writer from scratch. More... | |
STEPControl_Writer (const Handle< XSControl_WorkSession > &WS, const Standard_Boolean scratch=Standard_True) | |
Creates a Writer from an already existing Session If <scratch> is True (D), clears already recorded data. More... | |
void | SetTolerance (const Standard_Real Tol) |
Sets a length-measure value that will be written to uncertainty-measure-with-unit when the next shape is translated. More... | |
void | UnsetTolerance () |
Unsets the tolerance formerly forced by SetTolerance. More... | |
void | SetWS (const Handle< XSControl_WorkSession > &WS, const Standard_Boolean scratch=Standard_True) |
Sets a specific session to <me> More... | |
Handle< XSControl_WorkSession > | WS () const |
Returns the session used in <me> More... | |
Handle< StepData_StepModel > | Model (const Standard_Boolean newone=Standard_False) |
Returns the produced model. Produces a new one if not yet done or if <newone> is True This method allows for instance to edit product or header data before writing. More... | |
IFSelect_ReturnStatus | Transfer (const TopoDS_Shape &sh, const STEPControl_StepModelType mode, const Standard_Boolean compgraph=Standard_True) |
Translates shape sh to a STEP entity. mode defines the STEP entity type to be output: More... | |
IFSelect_ReturnStatus | Write (const Standard_CString filename) |
Writes a STEP model in the file identified by filename. More... | |
void | PrintStatsTransfer (const Standard_Integer what, const Standard_Integer mode=0) const |
Displays the statistics for the last translation. what defines the kind of statistics that are displayed: More... | |
This class creates and writes STEP files from Open CASCADE models. A STEP file can be written to an existing STEP file or to a new one. Translation can be performed in one or several operations. Each translation operation outputs a distinct root entity in the STEP file.
STEPControl_Writer::STEPControl_Writer | ( | ) |
Creates a Writer from scratch.
STEPControl_Writer::STEPControl_Writer | ( | const Handle< XSControl_WorkSession > & | WS, |
const Standard_Boolean | scratch = Standard_True |
||
) |
Creates a Writer from an already existing Session If <scratch> is True (D), clears already recorded data.
Handle< StepData_StepModel > STEPControl_Writer::Model | ( | const Standard_Boolean | newone = Standard_False | ) |
Returns the produced model. Produces a new one if not yet done or if <newone> is True This method allows for instance to edit product or header data before writing.
void STEPControl_Writer::PrintStatsTransfer | ( | const Standard_Integer | what, |
const Standard_Integer | mode = 0 |
||
) | const |
Displays the statistics for the last translation. what defines the kind of statistics that are displayed:
void STEPControl_Writer::SetTolerance | ( | const Standard_Real | Tol | ) |
Sets a length-measure value that will be written to uncertainty-measure-with-unit when the next shape is translated.
void STEPControl_Writer::SetWS | ( | const Handle< XSControl_WorkSession > & | WS, |
const Standard_Boolean | scratch = Standard_True |
||
) |
Sets a specific session to <me>
IFSelect_ReturnStatus STEPControl_Writer::Transfer | ( | const TopoDS_Shape & | sh, |
const STEPControl_StepModelType | mode, | ||
const Standard_Boolean | compgraph = Standard_True |
||
) |
Translates shape sh to a STEP entity. mode defines the STEP entity type to be output:
void STEPControl_Writer::UnsetTolerance | ( | ) |
Unsets the tolerance formerly forced by SetTolerance.
IFSelect_ReturnStatus STEPControl_Writer::Write | ( | const Standard_CString | filename | ) |
Writes a STEP model in the file identified by filename.
Handle< XSControl_WorkSession > STEPControl_Writer::WS | ( | ) | const |
Returns the session used in <me>