Open CASCADE Technology
7.4.0
|
This class gives a simple way to create then write a Model compliant to a given norm, from a Shape The model can then be edited by tools by other appropriate tools. More...
#include <XSControl_Writer.hxx>
Public Member Functions | |
XSControl_Writer () | |
Creates a Writer from scratch. More... | |
XSControl_Writer (const Standard_CString norm) | |
Creates a Writer from scratch, with a norm name which identifie a Controller. More... | |
XSControl_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... | |
Standard_Boolean | SetNorm (const Standard_CString norm) |
Sets a specific norm to <me> Returns True if done, False if <norm> is not available. 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< Interface_InterfaceModel > | 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 | TransferShape (const TopoDS_Shape &sh, const Standard_Integer mode=0) |
Transfers a Shape according to the mode. More... | |
IFSelect_ReturnStatus | WriteFile (const Standard_CString filename) |
Writes the produced model. More... | |
void | PrintStatsTransfer (const Standard_Integer what, const Standard_Integer mode=0) const |
Prints Statistics about Transfer. More... | |
This class gives a simple way to create then write a Model compliant to a given norm, from a Shape The model can then be edited by tools by other appropriate tools.
XSControl_Writer::XSControl_Writer | ( | ) |
Creates a Writer from scratch.
XSControl_Writer::XSControl_Writer | ( | const Standard_CString | norm | ) |
Creates a Writer from scratch, with a norm name which identifie a Controller.
XSControl_Writer::XSControl_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< Interface_InterfaceModel > XSControl_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 XSControl_Writer::PrintStatsTransfer | ( | const Standard_Integer | what, |
const Standard_Integer | mode = 0 |
||
) | const |
Prints Statistics about Transfer.
Standard_Boolean XSControl_Writer::SetNorm | ( | const Standard_CString | norm | ) |
Sets a specific norm to <me> Returns True if done, False if <norm> is not available.
void XSControl_Writer::SetWS | ( | const Handle< XSControl_WorkSession > & | WS, |
const Standard_Boolean | scratch = Standard_True |
||
) |
Sets a specific session to <me>
IFSelect_ReturnStatus XSControl_Writer::TransferShape | ( | const TopoDS_Shape & | sh, |
const Standard_Integer | mode = 0 |
||
) |
Transfers a Shape according to the mode.
IFSelect_ReturnStatus XSControl_Writer::WriteFile | ( | const Standard_CString | filename | ) |
Writes the produced model.
Handle< XSControl_WorkSession > XSControl_Writer::WS | ( | ) | const |
Returns the session used in <me>