Open CASCADE Technology  7.2.0
Public Member Functions

ShapeProcessAPI_ApplySequence Class Reference

Applies one of the sequence read from resource file. More...

#include <ShapeProcessAPI_ApplySequence.hxx>

Public Member Functions

 ShapeProcessAPI_ApplySequence (const Standard_CString rscName, const Standard_CString seqName="")
 Creates an object and loads resource file and sequence of operators given by their names. More...
 
Handle< ShapeProcess_ShapeContext > & Context ()
 Returns object for managing resource file and sequence of operators. More...
 
TopoDS_Shape PrepareShape (const TopoDS_Shape &shape, const Standard_Boolean fillmap=Standard_False, const TopAbs_ShapeEnum until=TopAbs_SHAPE)
 Performs sequence of operators stored in myRsc. If <fillmap> is True adds history "shape-shape" into myMap for shape and its subshapes until level <until> (included). If <until> is TopAbs_SHAPE, all the subshapes are considered. More...
 
void ClearMap ()
 Clears myMap with accumulated history. More...
 
const TopTools_DataMapOfShapeShapeMap () const
 Returns myMap with accumulated history. More...
 
void PrintPreparationResult () const
 Prints result of preparation onto the messenger of the context. Note that results can be accumulated from previous preparations it method ClearMap was not called before PrepareShape. More...
 

Detailed Description

Applies one of the sequence read from resource file.

Constructor & Destructor Documentation

◆ ShapeProcessAPI_ApplySequence()

ShapeProcessAPI_ApplySequence::ShapeProcessAPI_ApplySequence ( const Standard_CString  rscName,
const Standard_CString  seqName = "" 
)

Creates an object and loads resource file and sequence of operators given by their names.

Member Function Documentation

◆ ClearMap()

void ShapeProcessAPI_ApplySequence::ClearMap ( )

Clears myMap with accumulated history.

◆ Context()

Handle< ShapeProcess_ShapeContext >& ShapeProcessAPI_ApplySequence::Context ( )

Returns object for managing resource file and sequence of operators.

◆ Map()

const TopTools_DataMapOfShapeShape& ShapeProcessAPI_ApplySequence::Map ( ) const

Returns myMap with accumulated history.

◆ PrepareShape()

TopoDS_Shape ShapeProcessAPI_ApplySequence::PrepareShape ( const TopoDS_Shape shape,
const Standard_Boolean  fillmap = Standard_False,
const TopAbs_ShapeEnum  until = TopAbs_SHAPE 
)

Performs sequence of operators stored in myRsc. If <fillmap> is True adds history "shape-shape" into myMap for shape and its subshapes until level <until> (included). If <until> is TopAbs_SHAPE, all the subshapes are considered.

◆ PrintPreparationResult()

void ShapeProcessAPI_ApplySequence::PrintPreparationResult ( ) const

Prints result of preparation onto the messenger of the context. Note that results can be accumulated from previous preparations it method ClearMap was not called before PrepareShape.


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