Open CASCADE Technology 7.8.0
Public Member Functions | Protected Member Functions
STEPCAFControl_Writer Class Reference

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...

#include <STEPCAFControl_Writer.hxx>

Public Member Functions

 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_WriterChangeWriter ()
 Returns basic reader for root file.
 
const STEPControl_WriterWriter () 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&GTs or not.
 
Standard_Boolean GetDimTolMode () const
 
void SetMaterialMode (const Standard_Boolean theMaterialMode)
 Set dimtolmode for indicate write D&GTs or not.
 
Standard_Boolean GetMaterialMode () const
 

Protected Member Functions

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&GTs 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&GTs 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_ShapeAspectwriteShapeAspect (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_DatumwriteDatumAP242 (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)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ STEPCAFControl_Writer() [1/2]

STEPCAFControl_Writer::STEPCAFControl_Writer ( )

Creates a writer with an empty STEP model and sets ColorMode, LayerMode, NameMode and PropsMode to Standard_True.

◆ STEPCAFControl_Writer() [2/2]

STEPCAFControl_Writer::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.

Member Function Documentation

◆ ChangeWriter()

STEPControl_Writer & STEPCAFControl_Writer::ChangeWriter ( )
inline

Returns basic reader for root file.

◆ ExternFile() [1/2]

Standard_Boolean STEPCAFControl_Writer::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.

◆ ExternFile() [2/2]

Standard_Boolean STEPCAFControl_Writer::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.

◆ ExternFiles()

const NCollection_DataMap< TCollection_AsciiString, Handle< STEPCAFControl_ExternFile > > & STEPCAFControl_Writer::ExternFiles ( ) const
inline

Returns data on external files Returns Null handle if no external files are read.

◆ GetColorMode()

Standard_Boolean STEPCAFControl_Writer::GetColorMode ( ) const
inline

◆ GetDimTolMode()

Standard_Boolean STEPCAFControl_Writer::GetDimTolMode ( ) const
inline

◆ GetLayerMode()

Standard_Boolean STEPCAFControl_Writer::GetLayerMode ( ) const
inline

◆ GetMaterialMode()

Standard_Boolean STEPCAFControl_Writer::GetMaterialMode ( ) const
inline

◆ GetNameMode()

Standard_Boolean STEPCAFControl_Writer::GetNameMode ( ) const
inline

◆ GetPropsMode()

Standard_Boolean STEPCAFControl_Writer::GetPropsMode ( ) const
inline

◆ GetSHUOMode()

Standard_Boolean STEPCAFControl_Writer::GetSHUOMode ( ) const
inline

◆ Init()

void STEPCAFControl_Writer::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.

◆ Perform() [1/3]

Standard_Boolean STEPCAFControl_Writer::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.

◆ Perform() [2/3]

Standard_Boolean STEPCAFControl_Writer::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.

◆ Perform() [3/3]

Standard_Boolean STEPCAFControl_Writer::Perform ( const Handle< TDocStd_Document > &  theDoc,
const TCollection_AsciiString theFileName,
const Message_ProgressRange theProgress = Message_ProgressRange() 
)

◆ prepareUnit()

void STEPCAFControl_Writer::prepareUnit ( const TDF_Label theLabel,
const Handle< StepData_StepModel > &  theModel,
StepData_Factors theLocalFactors 
)
protected

Finds length units located in root of label If it exists, initializes local length unit from it Else initializes according to Cascade length unit.

◆ SetColorMode()

void STEPCAFControl_Writer::SetColorMode ( const Standard_Boolean  theColorMode)
inline

Set ColorMode for indicate write Colors or not.

◆ SetDimTolMode()

void STEPCAFControl_Writer::SetDimTolMode ( const Standard_Boolean  theDimTolMode)
inline

Set dimtolmode for indicate write D&GTs or not.

◆ SetLayerMode()

void STEPCAFControl_Writer::SetLayerMode ( const Standard_Boolean  theLayerMode)
inline

Set LayerMode for indicate write Layers or not.

◆ SetMaterialMode()

void STEPCAFControl_Writer::SetMaterialMode ( const Standard_Boolean  theMaterialMode)
inline

Set dimtolmode for indicate write D&GTs or not.

◆ SetNameMode()

void STEPCAFControl_Writer::SetNameMode ( const Standard_Boolean  theNameMode)
inline

Set NameMode for indicate write Name or not.

◆ SetPropsMode()

void STEPCAFControl_Writer::SetPropsMode ( const Standard_Boolean  thePropsMode)
inline

PropsMode for indicate write Validation properties or not.

◆ SetSHUOMode()

void STEPCAFControl_Writer::SetSHUOMode ( const Standard_Boolean  theSHUOMode)
inline

Set SHUO mode for indicate write SHUO or not.

◆ Transfer() [1/6]

Standard_Boolean STEPCAFControl_Writer::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.

◆ Transfer() [2/6]

Standard_Boolean STEPCAFControl_Writer::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.

Parameters
theParamsconfiguration parameters
theModemode of translation of shape is AsIs
theIsMultiif 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)
theProgressprogress indicator Returns True if translation is OK

◆ Transfer() [3/6]

Standard_Boolean STEPCAFControl_Writer::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.

◆ Transfer() [4/6]

Standard_Boolean STEPCAFControl_Writer::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.

◆ Transfer() [5/6]

Standard_Boolean STEPCAFControl_Writer::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.

◆ Transfer() [6/6]

Standard_Boolean STEPCAFControl_Writer::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.

◆ transfer()

Standard_Boolean STEPCAFControl_Writer::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() 
)
protected

Transfers labels to a STEP model Returns True if translation is OK isExternFile setting from transferExternFiles method.

◆ transferExternFiles()

TopoDS_Shape STEPCAFControl_Writer::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() 
)
protected

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)

◆ Write()

IFSelect_ReturnStatus STEPCAFControl_Writer::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.

◆ writeColors()

Standard_Boolean STEPCAFControl_Writer::writeColors ( const Handle< XSControl_WorkSession > &  theWS,
const TDF_LabelSequence theLabels 
)
protected

Write colors assigned to specified labels, to STEP model.

◆ writeDatumAP242()

Handle< StepDimTol_Datum > STEPCAFControl_Writer::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 
)
protected

◆ writeDGTs()

Standard_Boolean STEPCAFControl_Writer::writeDGTs ( const Handle< XSControl_WorkSession > &  theWS,
const TDF_LabelSequence theLabels 
) const
protected

Write D&GTs assigned to specified labels, to STEP model.

◆ writeDGTsAP242()

Standard_Boolean STEPCAFControl_Writer::writeDGTsAP242 ( const Handle< XSControl_WorkSession > &  theWS,
const TDF_LabelSequence theLabels,
const StepData_Factors theLocalFactors 
)
protected

Write D&GTs assigned to specified labels, to STEP model, according AP242.

◆ writeExternRefs()

Standard_Boolean STEPCAFControl_Writer::writeExternRefs ( const Handle< XSControl_WorkSession > &  theWS,
const TDF_LabelSequence theLabels 
) const
protected

Write external references to STEP.

◆ writeGeomTolerance()

void STEPCAFControl_Writer::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 
)
protected

◆ writeLayers()

Standard_Boolean STEPCAFControl_Writer::writeLayers ( const Handle< XSControl_WorkSession > &  theWS,
const TDF_LabelSequence theLabels 
) const
protected

Write layers assigned to specified labels, to STEP model.

◆ writeMaterials()

Standard_Boolean STEPCAFControl_Writer::writeMaterials ( const Handle< XSControl_WorkSession > &  theWS,
const TDF_LabelSequence theLabels 
) const
protected

Write materials assigned to specified labels, to STEP model.

◆ writeNames()

Standard_Boolean STEPCAFControl_Writer::writeNames ( const Handle< XSControl_WorkSession > &  theWS,
const TDF_LabelSequence theLabels 
) const
protected

Write names assigned to specified labels, to STEP model.

◆ writePresentation()

void STEPCAFControl_Writer::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 
)
protected

◆ Writer()

const STEPControl_Writer & STEPCAFControl_Writer::Writer ( ) const
inline

Returns basic reader as const.

◆ writeShapeAspect()

Handle< StepRepr_ShapeAspect > STEPCAFControl_Writer::writeShapeAspect ( const Handle< XSControl_WorkSession > &  theWS,
const TDF_Label  theLabel,
const TopoDS_Shape theShape,
Handle< StepRepr_RepresentationContext > &  theRC,
Handle< StepAP242_GeometricItemSpecificUsage > &  theGISU 
)
protected

◆ writeSHUOs()

Standard_Boolean STEPCAFControl_Writer::writeSHUOs ( const Handle< XSControl_WorkSession > &  theWS,
const TDF_LabelSequence theLabels 
)
protected

Write SHUO assigned to specified component, to STEP model.

◆ WriteStream()

IFSelect_ReturnStatus STEPCAFControl_Writer::WriteStream ( std::ostream &  theStream)

Writes all the produced models into the stream. Provided for use like single-file writer.

◆ writeToleranceZone()

void STEPCAFControl_Writer::writeToleranceZone ( const Handle< XSControl_WorkSession > &  theWS,
const Handle< XCAFDimTolObjects_GeomToleranceObject > &  theObject,
const Handle< StepDimTol_GeometricTolerance > &  theEntity,
const Handle< StepRepr_RepresentationContext > &  theRC 
)
protected

◆ writeValProps()

Standard_Boolean STEPCAFControl_Writer::writeValProps ( const Handle< XSControl_WorkSession > &  theWS,
const TDF_LabelSequence theLabels,
const Standard_CString  theIsMulti 
) const
protected

Write validation properties assigned to specified labels, to STEP model.


The documentation for this class was generated from the following file: