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 true.
|
| |
| | STEPCAFControl_Writer (const occ::handle< XSControl_WorkSession > &theWS, const bool theScratch=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 occ::handle< XSControl_WorkSession > &theWS, const bool theScratch=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 char *const 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.
|
| |
| bool | Transfer (const occ::handle< TDocStd_Document > &theDoc, const STEPControl_StepModelType theMode=STEPControl_AsIs, const char *const theIsMulti=nullptr, 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.
|
| |
| bool | Transfer (const occ::handle< TDocStd_Document > &theDoc, const DESTEP_Parameters &theParams, const STEPControl_StepModelType theMode=STEPControl_AsIs, const char *const theIsMulti=nullptr, 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.
|
| |
| bool | Transfer (const TDF_Label &theLabel, const STEPControl_StepModelType theMode=STEPControl_AsIs, const char *const theIsMulti=nullptr, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| | Method to transfer part of the document specified by label.
|
| |
| bool | Transfer (const TDF_Label &theLabel, const DESTEP_Parameters &theParams, const STEPControl_StepModelType theMode=STEPControl_AsIs, const char *const theIsMulti=nullptr, 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.
|
| |
| bool | Transfer (const NCollection_Sequence< TDF_Label > &theLabelSeq, const STEPControl_StepModelType theMode=STEPControl_AsIs, const char *const theIsMulti=nullptr, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| | Method to writing sequence of root assemblies or part of the file specified by use by one label.
|
| |
| bool | Transfer (const NCollection_Sequence< TDF_Label > &theLabelSeq, const DESTEP_Parameters &theParams, const STEPControl_StepModelType theMode=STEPControl_AsIs, const char *const theIsMulti=nullptr, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| | Method to writing sequence of root assemblies or part of the file specified by use by one label. This method is utilized if there's a need to set parameters avoiding initialization from Interface_Static.
|
| |
| bool | Perform (const occ::handle< TDocStd_Document > &theDoc, const TCollection_AsciiString &theFileName, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| |
| bool | Perform (const occ::handle< TDocStd_Document > &theDoc, const char *const theFileName, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| | Transfers a document and writes it to a STEP file Returns True if translation is OK.
|
| |
| bool | Perform (const occ::handle< TDocStd_Document > &theDoc, const char *const theFileName, const DESTEP_Parameters &theParams, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
| | Transfers a document and writes it to a STEP file This method is utilized if there's a need to set parameters avoiding initialization from Interface_Static Returns True if translation is OK.
|
| |
| const NCollection_DataMap< TCollection_AsciiString, occ::handle< STEPCAFControl_ExternFile > > & | ExternFiles () const |
| | Returns data on external files Returns Null handle if no external files are read.
|
| |
| bool | ExternFile (const TDF_Label &theLabel, occ::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.
|
| |
| bool | ExternFile (const char *const theName, occ::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 bool theColorMode) |
| | Set ColorMode for indicate write Colors or not.
|
| |
| bool | GetColorMode () const |
| |
| void | SetNameMode (const bool theNameMode) |
| | Set NameMode for indicate write Name or not.
|
| |
| bool | GetNameMode () const |
| |
| void | SetLayerMode (const bool theLayerMode) |
| | Set LayerMode for indicate write Layers or not.
|
| |
| bool | GetLayerMode () const |
| |
| void | SetPropsMode (const bool thePropsMode) |
| | PropsMode for indicate write Validation properties or not.
|
| |
| bool | GetPropsMode () const |
| |
| void | SetMetadataMode (const bool theMetadataMode) |
| | Set MetadataMode for indicate write metadata or not.
|
| |
| bool | GetMetadataMode () const |
| |
| void | SetSHUOMode (const bool theSHUOMode) |
| | Set SHUO mode for indicate write SHUO or not.
|
| |
| bool | GetSHUOMode () const |
| |
| void | SetDimTolMode (const bool theDimTolMode) |
| | Set dimtolmode for indicate write D>s or not.
|
| |
| bool | GetDimTolMode () const |
| |
| void | SetMaterialMode (const bool theMaterialMode) |
| | Set flag for indicate write material or not.
|
| |
| bool | GetMaterialMode () const |
| |
| void | SetVisualMaterialMode (const bool theVisualMaterialMode) |
| | Set flag for indicate write visual material or not.
|
| |
| bool | GetVisualMaterialMode () const |
| |
| void | SetCleanDuplicates (const bool theCleanDuplicates) |
| | Set clean duplicates flag. If set to True, duplicates will be removed from the model.
|
| |
| bool | GetCleanDuplicates () const |
| | Returns the flag indicating whether duplicates should be removed from the model.
|
| |
| void | SetShapeFixParameters (const XSAlgo_ShapeProcessor::ParameterMap &theParameters) |
| | Sets parameters for shape processing.
|
| |
| void | SetShapeFixParameters (XSAlgo_ShapeProcessor::ParameterMap &&theParameters) |
| | Sets parameters for shape processing. Parameters are moved from the input map.
|
| |
| void | SetShapeFixParameters (const DE_ShapeFixParameters &theParameters, const XSAlgo_ShapeProcessor::ParameterMap &theAdditionalParameters={}) |
| | Sets parameters for shape processing. Parameters from theParameters are copied to the internal map. Parameters from theAdditionalParameters are copied to the internal map if they are not present in theParameters.
|
| |
| const XSAlgo_ShapeProcessor::ParameterMap & | GetShapeFixParameters () const |
| | Returns parameters for shape processing that was set by SetParameters() method.
|
| |
| void | SetShapeProcessFlags (const ShapeProcess::OperationsFlags &theFlags) |
| | Sets flags defining operations to be performed on shapes.
|
| |
| const XSAlgo_ShapeProcessor::ProcessingFlags & | GetShapeProcessFlags () const |
| | Returns flags defining operations to be performed on shapes.
|
| |
|
| bool | transfer (STEPControl_Writer &theWriter, const NCollection_Sequence< TDF_Label > &theLabels, const STEPControl_StepModelType theMode=STEPControl_AsIs, const char *const theIsMulti=nullptr, const bool isExternFile=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, NCollection_Sequence< TDF_Label > &theLabelSeq, const StepData_Factors &theLocalFactors=StepData_Factors(), const char *const 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)
|
| |
| bool | writeExternRefs (const occ::handle< XSControl_WorkSession > &theWS, const NCollection_Sequence< TDF_Label > &theLabels) const |
| | Write external references to STEP.
|
| |
| bool | writeColors (const occ::handle< XSControl_WorkSession > &theWS, const NCollection_Sequence< TDF_Label > &theLabels) |
| | Write colors assigned to specified labels, to STEP model.
|
| |
| bool | writeNames (const occ::handle< XSControl_WorkSession > &theWS, const NCollection_Sequence< TDF_Label > &theLabels) const |
| | Write names assigned to specified labels, to STEP model.
|
| |
| bool | writeMetadata (const occ::handle< XSControl_WorkSession > &theWS, const NCollection_Sequence< TDF_Label > &theLabels) const |
| | Write metadata assigned to specified labels, to STEP model.
|
| |
| bool | writeMetadataForLabel (const occ::handle< XSControl_WorkSession > &theWS, const TDF_Label &theLabel) const |
| | Write metadata assigned to specified label, to STEP model.
|
| |
| void | writeMetadataRepresentationItem (const TCollection_AsciiString &theKey, const occ::handle< StepData_StepModel > &theModel, const occ::handle< StepShape_ShapeDefinitionRepresentation > &theShapeDefRep, const occ::handle< StepBasic_ProductDefinition > &theProdDef, const occ::handle< StepRepr_RepresentationItem > &theItem) const |
| | Write metadata representation item to STEP model.
|
| |
| bool | writeDGTs (const occ::handle< XSControl_WorkSession > &theWS, const NCollection_Sequence< TDF_Label > &theLabels) const |
| | Write D>s assigned to specified labels, to STEP model.
|
| |
| bool | writeDGTsAP242 (const occ::handle< XSControl_WorkSession > &theWS, const NCollection_Sequence< TDF_Label > &theLabels, const StepData_Factors &theLocalFactors=StepData_Factors()) |
| | Write D>s assigned to specified labels, to STEP model, according AP242.
|
| |
| bool | writeMaterials (const occ::handle< XSControl_WorkSession > &theWS, const NCollection_Sequence< TDF_Label > &theLabels) const |
| | Write materials assigned to specified labels, to STEP model.
|
| |
| bool | writeValProps (const occ::handle< XSControl_WorkSession > &theWS, const NCollection_Sequence< TDF_Label > &theLabels, const char *const theIsMulti) const |
| | Write validation properties assigned to specified labels, to STEP model.
|
| |
| bool | writeLayers (const occ::handle< XSControl_WorkSession > &theWS, const NCollection_Sequence< TDF_Label > &theLabels) const |
| | Write layers assigned to specified labels, to STEP model.
|
| |
| bool | writeSHUOs (const occ::handle< XSControl_WorkSession > &theWS, const NCollection_Sequence< TDF_Label > &theLabels) |
| | Write SHUO assigned to specified component, to STEP model.
|
| |
| void | prepareUnit (const TDF_Label &theLabel, const occ::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.
|
| |
| occ::handle< StepRepr_ShapeAspect > | writeShapeAspect (const occ::handle< XSControl_WorkSession > &theWS, const TDF_Label theLabel, const TopoDS_Shape &theShape, occ::handle< StepRepr_RepresentationContext > &theRC, occ::handle< StepAP242_GeometricItemSpecificUsage > &theGISU) |
| |
| void | writePresentation (const occ::handle< XSControl_WorkSession > &theWS, const TopoDS_Shape &thePresentation, const occ::handle< TCollection_HAsciiString > &thePrsName, const bool theHasSemantic, const bool theHasPlane, const gp_Ax2 &theAnnotationPlane, const gp_Pnt &theTextPosition, const occ::handle< Standard_Transient > &theDimension, const StepData_Factors &theLocalFactors=StepData_Factors()) |
| |
| occ::handle< StepDimTol_Datum > | writeDatumAP242 (const occ::handle< XSControl_WorkSession > &theWS, const NCollection_Sequence< TDF_Label > &theShapeL, const TDF_Label &theDatumL, const bool isFirstDTarget, const occ::handle< StepDimTol_Datum > &theWrittenDatum, const StepData_Factors &theLocalFactors=StepData_Factors()) |
| |
| void | writeToleranceZone (const occ::handle< XSControl_WorkSession > &theWS, const occ::handle< XCAFDimTolObjects_GeomToleranceObject > &theObject, const occ::handle< StepDimTol_GeometricTolerance > &theEntity, const occ::handle< StepRepr_RepresentationContext > &theRC) |
| |
| void | writeGeomTolerance (const occ::handle< XSControl_WorkSession > &theWS, const NCollection_Sequence< TDF_Label > &theShapeSeqL, const TDF_Label &theGeomTolL, const occ::handle< NCollection_HArray1< StepDimTol_DatumSystemOrReference > > &theDatumSystem, const occ::handle< StepRepr_RepresentationContext > &theRC, const StepData_Factors &theLocalFactors=StepData_Factors()) |
| |
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