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

ModelingAlgorithms
TKBool
BRepAlgo


BRepAlgo_AsDes Class Reference

SD to store descendants and ascendants of Shapes.
.

#include <BRepAlgo_AsDes.hxx>


Public Member Functions

Standard_EXPORT BRepAlgo_AsDes ()
 Creates an empty AsDes.
.
Standard_EXPORT void Clear ()
Standard_EXPORT void Add (const TopoDS_Shape &S, const TopoDS_Shape &SS)
 Stores <ss> as a futur subshape of <s>.
.
Standard_EXPORT void Add (const TopoDS_Shape &S, const TopTools_ListOfShape &SS)
 Stores <ss> as futurs SubShapes of <s>.
.
Standard_EXPORT Standard_Boolean HasAscendant (const TopoDS_Shape &S) const
Standard_EXPORT Standard_Boolean HasDescendant (const TopoDS_Shape &S) const
Standard_EXPORT const TopTools_ListOfShape & Ascendant (const TopoDS_Shape &S) const
 Returns the Shape containing <s>.
.
Standard_EXPORT const TopTools_ListOfShape & Descendant (const TopoDS_Shape &S) const
 Returns futur subhapes of <s>.
.
Standard_EXPORT TopTools_ListOfShape & ChangeDescendant (const TopoDS_Shape &S)
 Returns futur subhapes of <s>.
.
Standard_EXPORT void Replace (const TopoDS_Shape &OldS, const TopoDS_Shape &NewS)
 Replace <olds> by <news>.
<olds> disapear from <me>.
.
Standard_EXPORT void Remove (const TopoDS_Shape &S)
 Remove <s> from me.
.
Standard_EXPORT Standard_Boolean HasCommonDescendant (const TopoDS_Shape &S1, const TopoDS_Shape &S2, TopTools_ListOfShape &LC) const
 Returns True if (S1> and <s2> has common
Descendants. Stores in <lc> the Commons Descendants.
.
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const

Private Member Functions

Standard_EXPORT void BackReplace (const TopoDS_Shape &OldS, const TopoDS_Shape &NewS, const TopTools_ListOfShape &L, const Standard_Boolean InUp)
 Replace <olds> by <news>.
<olds> disapear from <me>.
.

Private Attributes

TopTools_DataMapOfShapeListOfShape up
TopTools_DataMapOfShapeListOfShape down


Constructor & Destructor Documentation

Standard_EXPORT BRepAlgo_AsDes::BRepAlgo_AsDes  ) 
 


Member Function Documentation

Standard_EXPORT void BRepAlgo_AsDes::Add const TopoDS_Shape &  S,
const TopTools_ListOfShape &  SS
 

Standard_EXPORT void BRepAlgo_AsDes::Add const TopoDS_Shape &  S,
const TopoDS_Shape &  SS
 

Standard_EXPORT const TopTools_ListOfShape& BRepAlgo_AsDes::Ascendant const TopoDS_Shape &  S  )  const
 

Standard_EXPORT void BRepAlgo_AsDes::BackReplace const TopoDS_Shape &  OldS,
const TopoDS_Shape &  NewS,
const TopTools_ListOfShape &  L,
const Standard_Boolean  InUp
[private]
 

Standard_EXPORT TopTools_ListOfShape& BRepAlgo_AsDes::ChangeDescendant const TopoDS_Shape &  S  ) 
 

Standard_EXPORT void BRepAlgo_AsDes::Clear  ) 
 

Standard_EXPORT const TopTools_ListOfShape& BRepAlgo_AsDes::Descendant const TopoDS_Shape &  S  )  const
 

Standard_EXPORT const BRepAlgo_AsDes::Handle Standard_Type   )  const
 

Standard_EXPORT Standard_Boolean BRepAlgo_AsDes::HasAscendant const TopoDS_Shape &  S  )  const
 

Standard_EXPORT Standard_Boolean BRepAlgo_AsDes::HasCommonDescendant const TopoDS_Shape &  S1,
const TopoDS_Shape &  S2,
TopTools_ListOfShape &  LC
const
 

Standard_EXPORT Standard_Boolean BRepAlgo_AsDes::HasDescendant const TopoDS_Shape &  S  )  const
 

Standard_EXPORT void BRepAlgo_AsDes::Remove const TopoDS_Shape &  S  ) 
 

Standard_EXPORT void BRepAlgo_AsDes::Replace const TopoDS_Shape &  OldS,
const TopoDS_Shape &  NewS
 


Field Documentation

TopTools_DataMapOfShapeListOfShape BRepAlgo_AsDes::down [private]
 

TopTools_DataMapOfShapeListOfShape BRepAlgo_AsDes::up [private]
 


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