Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
TopOpeBRepBuild_ShapeSet Class Reference

Auxiliary class providing an exploration of a set
of shapes to build faces or solids.
To build faces : shapes are wires, elements are edges.
To build solids : shapes are shells, elements are faces.
The ShapeSet stores a list of shapes, a list of elements
to start reconstructions, and a map to search neighbours.
The map stores the connection between elements through
subshapes of type <SubShapeType> given in constructor.
<SubShapeType> is :
More...

#include <TopOpeBRepBuild_ShapeSet.hxx>

Inheritance diagram for TopOpeBRepBuild_ShapeSet:
Inheritance graph
[legend]

Public Member Functions

DEFINE_STANDARD_ALLOC TopOpeBRepBuild_ShapeSet (const TopAbs_ShapeEnum SubShapeType, const Standard_Boolean checkshape=Standard_True)
 Creates a ShapeSet in order to build shapes connected
by <SubShapeType> shapes.
<checkshape>:check (or not) the shapes, startelements, elements added.

virtual void Delete ()
virtual ~TopOpeBRepBuild_ShapeSet ()
virtual void AddShape (const TopoDS_Shape &S)
 Adds <S> to the list of shapes. (wires or shells).

virtual void AddStartElement (const TopoDS_Shape &S)
 (S is a face or edge)
Add S to the list of starting shapes used for reconstructions.
apply AddElement(S).

virtual void AddElement (const TopoDS_Shape &S)
 for each subshape SE of S of type mySubShapeType

const TopTools_ListOfShapeStartElements () const
 return a reference on myStartShapes

void InitShapes ()
Standard_Boolean MoreShapes () const
void NextShape ()
const TopoDS_ShapeShape () const
void InitStartElements ()
Standard_Boolean MoreStartElements () const
void NextStartElement ()
const TopoDS_ShapeStartElement () const
virtual void InitNeighbours (const TopoDS_Shape &S)
Standard_Boolean MoreNeighbours ()
void NextNeighbour ()
const TopoDS_ShapeNeighbour () const
TopTools_ListOfShapeChangeStartShapes ()
Standard_Boolean IsStartElement (const TopoDS_Shape &S) const
Standard_Boolean IsElement (const TopoDS_Shape &S) const
Standard_Boolean IsShape (const TopoDS_Shape &S) const
Standard_Integer NStartElement (const TopoDS_Shape &S) const
Standard_Integer NElement (const TopoDS_Shape &S) const
Standard_Integer NShape (const TopoDS_Shape &S) const
virtual void FindNeighbours ()
 Build the list of neighbour shapes of myCurrentShape
(neighbour shapes and myCurrentShapes are of type t)
Initialize myIncidentShapesIter on neighbour shapes.

virtual const
TopTools_ListOfShape
MakeNeighboursList (const TopoDS_Shape &E, const TopoDS_Shape &V)
Standard_Integer MaxNumberSubShape (const TopoDS_Shape &Shape)
void CheckShape (const Standard_Boolean checkshape)
Standard_Boolean CheckShape () const
Standard_Boolean CheckShape (const TopoDS_Shape &S, const Standard_Boolean checkgeom=Standard_False)
void DumpName (Standard_OStream &OS, const TCollection_AsciiString &str) const
void DumpCheck (Standard_OStream &OS, const TCollection_AsciiString &str, const TopoDS_Shape &S, const Standard_Boolean chk) const
virtual void DumpSS ()
virtual void DumpBB ()
void DEBName (const TCollection_AsciiString &N)
const TCollection_AsciiStringDEBName () const
void DEBNumber (const Standard_Integer I)
Standard_Integer DEBNumber () const
virtual TCollection_AsciiString SName (const TopoDS_Shape &S, const TCollection_AsciiString &sb="", const TCollection_AsciiString &sa="") const
virtual TCollection_AsciiString SNameori (const TopoDS_Shape &S, const TCollection_AsciiString &sb="", const TCollection_AsciiString &sa="") const
virtual TCollection_AsciiString SName (const TopTools_ListOfShape &S, const TCollection_AsciiString &sb="", const TCollection_AsciiString &sa="") const
virtual TCollection_AsciiString SNameori (const TopTools_ListOfShape &S, const TCollection_AsciiString &sb="", const TCollection_AsciiString &sa="") const

Protected Member Functions

void ProcessAddShape (const TopoDS_Shape &S)
void ProcessAddStartElement (const TopoDS_Shape &S)
void ProcessAddElement (const TopoDS_Shape &S)

Protected Attributes

TopAbs_ShapeEnum myShapeType
TopAbs_ShapeEnum mySubShapeType
TopOpeBRepTool_ShapeExplorer mySubShapeExplorer
TopTools_ListOfShape myStartShapes
TopTools_ListIteratorOfListOfShape myStartShapesIter
TopTools_IndexedDataMapOfShapeListOfShape mySubShapeMap
TopTools_ListIteratorOfListOfShape myIncidentShapesIter
TopTools_ListOfShape myShapes
TopTools_ListIteratorOfListOfShape myShapesIter
TopoDS_Shape myCurrentShape
TopTools_ListOfShape myCurrentShapeNeighbours
Standard_Integer myDEBNumber
TCollection_AsciiString myDEBName
TopTools_IndexedMapOfOrientedShape myOMSS
TopTools_IndexedMapOfOrientedShape myOMES
TopTools_IndexedMapOfOrientedShape myOMSH
Standard_Boolean myCheckShape

Detailed Description


Constructor & Destructor Documentation


Member Function Documentation

  • Add subshapes of S to the map of subshapes (mySubShapeMap)
  • Add S to the list of shape incident to subshapes of S.

Reimplemented in TopOpeBRepBuild_WireEdgeSet, and TopOpeBRepBuild_ShellFaceSet.

virtual void TopOpeBRepBuild_ShapeSet::Delete ( ) [virtual]
virtual void TopOpeBRepBuild_ShapeSet::DumpBB ( ) [virtual]
virtual void TopOpeBRepBuild_ShapeSet::DumpSS ( ) [virtual]

Reimplemented in TopOpeBRepBuild_WireEdgeSet.

Reimplemented in TopOpeBRepBuild_WireEdgeSet.

Reimplemented in TopOpeBRepBuild_WireEdgeSet.


Field Documentation


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