Provides a tool to write DECAF document to the STEP file. Besides transfer of shapes (including assemblies) provided by STEPControl, supports also colors and part names.
More...
|
| STEPCAFControl_Writer () |
| Creates a writer with an empty STEP model and sets ColorMode, LayerMode, NameMode and PropsMode to Standard_True.
|
|
| STEPCAFControl_Writer (const Handle< XSControl_WorkSession > &theWS, const Standard_Boolean theScratch=Standard_True) |
| Creates a reader tool and attaches it to an already existing Session Clears the session if it was not yet set for STEP Clears the internal data structures.
|
|
void | Init (const Handle< XSControl_WorkSession > &theWS, const Standard_Boolean theScratch=Standard_True) |
| Clears the internal data structures and attaches to a new session Clears the session if it was not yet set for STEP.
|
|
IFSelect_ReturnStatus | Write (const Standard_CString theFileName) |
| Writes all the produced models into file In case of multimodel with extern references, filename will be a name of root file, all other files have names of corresponding parts Provided for use like single-file writer.
|
|
IFSelect_ReturnStatus | WriteStream (std::ostream &theStream) |
| Writes all the produced models into the stream. Provided for use like single-file writer.
|
|
Standard_Boolean | Transfer (const Handle< TDocStd_Document > &theDoc, const STEPControl_StepModelType theMode=STEPControl_AsIs, const Standard_CString theIsMulti=0, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| Transfers a document (or single label) to a STEP model The mode of translation of shape is AsIs If multi is not null pointer, it switches to multifile mode (with external refs), and string pointed by <multi> gives prefix for names of extern files (can be empty string) Returns True if translation is OK.
|
|
Standard_Boolean | Transfer (const Handle< TDocStd_Document > &theDoc, const StepData_ConfParameters &theParams, const STEPControl_StepModelType theMode=STEPControl_AsIs, const Standard_CString theIsMulti=0, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| Transfers a document (or single label) to a STEP model This method uses if need to set parameters avoiding initialization from Interface_Static.
|
|
Standard_Boolean | Transfer (const TDF_Label &theLabel, const STEPControl_StepModelType theMode=STEPControl_AsIs, const Standard_CString theIsMulti=0, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| Method to transfer part of the document specified by label.
|
|
Standard_Boolean | Transfer (const TDF_Label &theLabel, const StepData_ConfParameters &theParams, const STEPControl_StepModelType theMode=STEPControl_AsIs, const Standard_CString theIsMulti=0, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| Method to transfer part of the document specified by label This method uses if need to set parameters avoiding initialization from Interface_Static.
|
|
Standard_Boolean | Transfer (const TDF_LabelSequence &theLabelSeq, const STEPControl_StepModelType theMode=STEPControl_AsIs, const Standard_CString theIsMulti=0, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| Mehod to writing sequence of root assemblies or part of the file specified by use by one label.
|
|
Standard_Boolean | Transfer (const TDF_LabelSequence &theLabelSeq, const StepData_ConfParameters &theParams, const STEPControl_StepModelType theMode=STEPControl_AsIs, const Standard_CString theIsMulti=0, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| Mehod to writing sequence of root assemblies or part of the file specified by use by one label This method uses if need to set parameters avoiding initialization from Interface_Static.
|
|
Standard_Boolean | Perform (const Handle< TDocStd_Document > &theDoc, const TCollection_AsciiString &theFileName, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
|
Standard_Boolean | Perform (const Handle< TDocStd_Document > &theDoc, const Standard_CString theFileName, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| Transfers a document and writes it to a STEP file Returns True if translation is OK.
|
|
Standard_Boolean | Perform (const Handle< TDocStd_Document > &theDoc, const Standard_CString theFileName, const StepData_ConfParameters &theParams, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| Transfers a document and writes it to a STEP file This method uses if need to set parameters avoiding initialization from Interface_Static Returns True if translation is OK.
|
|
const NCollection_DataMap< TCollection_AsciiString, Handle< STEPCAFControl_ExternFile > > & | ExternFiles () const |
| Returns data on external files Returns Null handle if no external files are read.
|
|
Standard_Boolean | ExternFile (const TDF_Label &theLabel, Handle< STEPCAFControl_ExternFile > &theExtFile) const |
| Returns data on external file by its original label Returns False if no external file with given name is read.
|
|
Standard_Boolean | ExternFile (const Standard_CString theName, Handle< STEPCAFControl_ExternFile > &theExtFile) const |
| Returns data on external file by its name Returns False if no external file with given name is read.
|
|
STEPControl_Writer & | ChangeWriter () |
| Returns basic reader for root file.
|
|
const STEPControl_Writer & | Writer () const |
| Returns basic reader as const.
|
|
void | SetColorMode (const Standard_Boolean theColorMode) |
| Set ColorMode for indicate write Colors or not.
|
|
Standard_Boolean | GetColorMode () const |
|
void | SetNameMode (const Standard_Boolean theNameMode) |
| Set NameMode for indicate write Name or not.
|
|
Standard_Boolean | GetNameMode () const |
|
void | SetLayerMode (const Standard_Boolean theLayerMode) |
| Set LayerMode for indicate write Layers or not.
|
|
Standard_Boolean | GetLayerMode () const |
|
void | SetPropsMode (const Standard_Boolean thePropsMode) |
| PropsMode for indicate write Validation properties or not.
|
|
Standard_Boolean | GetPropsMode () const |
|
void | SetSHUOMode (const Standard_Boolean theSHUOMode) |
| Set SHUO mode for indicate write SHUO or not.
|
|
Standard_Boolean | GetSHUOMode () const |
|
void | SetDimTolMode (const Standard_Boolean theDimTolMode) |
| Set dimtolmode for indicate write D>s or not.
|
|
Standard_Boolean | GetDimTolMode () const |
|
void | SetMaterialMode (const Standard_Boolean theMaterialMode) |
| Set dimtolmode for indicate write D>s or not.
|
|
Standard_Boolean | GetMaterialMode () const |
|
|
Standard_Boolean | transfer (STEPControl_Writer &theWriter, const TDF_LabelSequence &theLabels, const STEPControl_StepModelType theMode=STEPControl_AsIs, const Standard_CString theIsMulti=0, const Standard_Boolean isExternFile=Standard_False, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| Transfers labels to a STEP model Returns True if translation is OK isExternFile setting from transferExternFiles method.
|
|
TopoDS_Shape | transferExternFiles (const TDF_Label &theLabel, const STEPControl_StepModelType theMode, TDF_LabelSequence &theLabelSeq, const StepData_Factors &theLocalFactors, const Standard_CString thePrefix="", const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| Parses assembly structure of label L, writes all the simple shapes each to its own file named by name of its label plus prefix Returns shape representing that assembly structure in the form of nested empty compounds (and a sequence of labels which are newly written nodes of this assembly)
|
|
Standard_Boolean | writeExternRefs (const Handle< XSControl_WorkSession > &theWS, const TDF_LabelSequence &theLabels) const |
| Write external references to STEP.
|
|
Standard_Boolean | writeColors (const Handle< XSControl_WorkSession > &theWS, const TDF_LabelSequence &theLabels) |
| Write colors assigned to specified labels, to STEP model.
|
|
Standard_Boolean | writeNames (const Handle< XSControl_WorkSession > &theWS, const TDF_LabelSequence &theLabels) const |
| Write names assigned to specified labels, to STEP model.
|
|
Standard_Boolean | writeDGTs (const Handle< XSControl_WorkSession > &theWS, const TDF_LabelSequence &theLabels) const |
| Write D>s assigned to specified labels, to STEP model.
|
|
Standard_Boolean | writeDGTsAP242 (const Handle< XSControl_WorkSession > &theWS, const TDF_LabelSequence &theLabels, const StepData_Factors &theLocalFactors) |
| Write D>s assigned to specified labels, to STEP model, according AP242.
|
|
Standard_Boolean | writeMaterials (const Handle< XSControl_WorkSession > &theWS, const TDF_LabelSequence &theLabels) const |
| Write materials assigned to specified labels, to STEP model.
|
|
Standard_Boolean | writeValProps (const Handle< XSControl_WorkSession > &theWS, const TDF_LabelSequence &theLabels, const Standard_CString theIsMulti) const |
| Write validation properties assigned to specified labels, to STEP model.
|
|
Standard_Boolean | writeLayers (const Handle< XSControl_WorkSession > &theWS, const TDF_LabelSequence &theLabels) const |
| Write layers assigned to specified labels, to STEP model.
|
|
Standard_Boolean | writeSHUOs (const Handle< XSControl_WorkSession > &theWS, const TDF_LabelSequence &theLabels) |
| Write SHUO assigned to specified component, to STEP model.
|
|
void | prepareUnit (const TDF_Label &theLabel, const Handle< StepData_StepModel > &theModel, StepData_Factors &theLocalFactors) |
| Finds length units located in root of label If it exists, initializes local length unit from it Else initializes according to Cascade length unit.
|
|
Handle< StepRepr_ShapeAspect > | writeShapeAspect (const Handle< XSControl_WorkSession > &theWS, const TDF_Label theLabel, const TopoDS_Shape &theShape, Handle< StepRepr_RepresentationContext > &theRC, Handle< StepAP242_GeometricItemSpecificUsage > &theGISU) |
|
void | writePresentation (const Handle< XSControl_WorkSession > &theWS, const TopoDS_Shape &thePresentation, const Handle< TCollection_HAsciiString > &thePrsName, const Standard_Boolean theHasSemantic, const Standard_Boolean theHasPlane, const gp_Ax2 &theAnnotationPlane, const gp_Pnt &theTextPosition, const Handle< Standard_Transient > &theDimension, const StepData_Factors &theLocalFactors) |
|
Handle< StepDimTol_Datum > | writeDatumAP242 (const Handle< XSControl_WorkSession > &theWS, const TDF_LabelSequence &theShapeL, const TDF_Label &theDatumL, const Standard_Boolean isFirstDTarget, const Handle< StepDimTol_Datum > &theWrittenDatum, const StepData_Factors &theLocalFactors) |
|
void | writeToleranceZone (const Handle< XSControl_WorkSession > &theWS, const Handle< XCAFDimTolObjects_GeomToleranceObject > &theObject, const Handle< StepDimTol_GeometricTolerance > &theEntity, const Handle< StepRepr_RepresentationContext > &theRC) |
|
void | writeGeomTolerance (const Handle< XSControl_WorkSession > &theWS, const TDF_LabelSequence &theShapeSeqL, const TDF_Label &theGeomTolL, const Handle< StepDimTol_HArray1OfDatumSystemOrReference > &theDatumSystem, const Handle< StepRepr_RepresentationContext > &theRC, const StepData_Factors &theLocalFactors) |
|
Provides a tool to write DECAF document to the STEP file. Besides transfer of shapes (including assemblies) provided by STEPControl, supports also colors and part names.
Also supports multifile writing