Open CASCADE Technology
6.5.4
|
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.
#include <STEPControl_Writer.hxx>
Public Member Functions | |
DEFINE_STANDARD_ALLOC | STEPControl_Writer () |
Creates a Writer from scratch | |
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 | |
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. | |
void | UnsetTolerance () |
Unsets the tolerance formerly forced by SetTolerance | |
void | SetWS (const Handle< XSControl_WorkSession > &WS, const Standard_Boolean scratch=Standard_True) |
Sets a specific session to <me> | |
Handle_XSControl_WorkSession | WS () const |
Returns the session used in <me> | |
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. | |
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: | |
IFSelect_ReturnStatus | Write (const Standard_CString filename) |
Writes a STEP model in the file identified by filename. | |
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: |
STEPControl_Writer::STEPControl_Writer | ( | const Handle< XSControl_WorkSession > & | WS, |
const Standard_Boolean | scratch = Standard_True |
||
) |
Handle_StepData_StepModel STEPControl_Writer::Model | ( | const Standard_Boolean | newone = Standard_False | ) |
void STEPControl_Writer::PrintStatsTransfer | ( | const Standard_Integer | what, |
const Standard_Integer | mode = 0 |
||
) | const |
void STEPControl_Writer::SetWS | ( | const Handle< XSControl_WorkSession > & | WS, |
const Standard_Boolean | scratch = Standard_True |
||
) |
IFSelect_ReturnStatus STEPControl_Writer::Transfer | ( | const TopoDS_Shape & | sh, |
const STEPControl_StepModelType | mode, | ||
const Standard_Boolean | compgraph = Standard_True |
||
) |
Handle_XSControl_WorkSession STEPControl_Writer::WS | ( | ) | const |