OCC Main Page | ModelingData | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingData
TKBRep
BRepTools


BRepTools_Substitution Class Reference

A tool to substitute subshapes by other shapes.


The user use the method Substitute to define the
modifications.
A set of shapes is designated to replace a initial
shape.
.

#include <BRepTools_Substitution.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT BRepTools_Substitution ()
Standard_EXPORT void Clear ()
 Reset all the fields.
.
Standard_EXPORT void Substitute (const TopoDS_Shape &OldShape, const TopTools_ListOfShape &NewShapes)
 <oldshape> will be replaced by <newshapes>.

<newshapes> can be empty , in this case <oldshape>
will disparate from its ancestors.

if an item of <newshapes> is oriented FORWARD.
it will be oriented as <oldshape> in its ancestors.
else it will be reversed.

Standard_EXPORT void Build (const TopoDS_Shape &S)
 Build NewShape from <s> if its subshapes has modified.

The methods <iscopied> and <copy> allows you to keep
the resul of <build>
.
Standard_EXPORT Standard_Boolean IsCopied (const TopoDS_Shape &S) const
 Returns True if <s> has been replaced .
.
Standard_EXPORT const TopTools_ListOfShapeCopy (const TopoDS_Shape &S) const
 Returns the set of shapes substitued to <s> .
.

Private Attributes

TopTools_DataMapOfShapeListOfShape myMap


Constructor & Destructor Documentation

Standard_EXPORT BRepTools_Substitution::BRepTools_Substitution  ) 
 


Member Function Documentation

Standard_EXPORT void BRepTools_Substitution::Build const TopoDS_Shape S  ) 
 

Standard_EXPORT void BRepTools_Substitution::Clear  ) 
 

Standard_EXPORT const TopTools_ListOfShape& BRepTools_Substitution::Copy const TopoDS_Shape S  )  const
 

Standard_EXPORT Standard_Boolean BRepTools_Substitution::IsCopied const TopoDS_Shape S  )  const
 

void BRepTools_Substitution::operator delete void *  anAddress  )  [inline]
 

void* BRepTools_Substitution::operator new size_t  size  )  [inline]
 

void* BRepTools_Substitution::operator new size_t  ,
void *  anAddress
[inline]
 

Standard_EXPORT void BRepTools_Substitution::Substitute const TopoDS_Shape OldShape,
const TopTools_ListOfShape NewShapes
 


Field Documentation

TopTools_DataMapOfShapeListOfShape BRepTools_Substitution::myMap [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:22:35 2008 for OpenCASCADE by  doxygen 1.4.1