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

ModelingAlgorithms
TKBool
TopOpeBRepBuild


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 :
- TopAbs_VERTEX to connect edges
- TopAbs_EDGE to connect faces
.

#include <TopOpeBRepBuild_ShapeSet.hxx>

Inheritance diagram for TopOpeBRepBuild_ShapeSet:

Inheritance graph
[legend]

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT 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 Standard_EXPORT void Delete ()
virtual Standard_EXPORT ~TopOpeBRepBuild_ShapeSet ()
virtual Standard_EXPORT void AddShape (const TopoDS_Shape &S)
 Adds <s> to the list of shapes. (wires or shells).
.
virtual Standard_EXPORT 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 Standard_EXPORT void AddElement (const TopoDS_Shape &S)
 for each subshape SE of S of type mySubShapeType
- Add subshapes of S to the map of subshapes (mySubShapeMap)
- Add S to the list of shape incident to subshapes of S.

Standard_EXPORT const TopTools_ListOfShape & StartElements () const
 return a reference on myStartShapes

Standard_EXPORT void InitShapes ()
Standard_EXPORT Standard_Boolean MoreShapes () const
Standard_EXPORT void NextShape ()
Standard_EXPORT const TopoDS_Shape & Shape () const
Standard_EXPORT void InitStartElements ()
Standard_EXPORT Standard_Boolean MoreStartElements () const
Standard_EXPORT void NextStartElement ()
Standard_EXPORT const TopoDS_Shape & StartElement () const
virtual Standard_EXPORT void InitNeighbours (const TopoDS_Shape &S)
Standard_EXPORT Standard_Boolean MoreNeighbours ()
Standard_EXPORT void NextNeighbour ()
Standard_EXPORT const TopoDS_Shape & Neighbour () const
Standard_EXPORT TopTools_ListOfShape & ChangeStartShapes ()
Standard_EXPORT Standard_Boolean IsStartElement (const TopoDS_Shape &S) const
Standard_EXPORT Standard_Boolean IsElement (const TopoDS_Shape &S) const
Standard_EXPORT Standard_Boolean IsShape (const TopoDS_Shape &S) const
Standard_EXPORT Standard_Integer NStartElement (const TopoDS_Shape &S) const
Standard_EXPORT Standard_Integer NElement (const TopoDS_Shape &S) const
Standard_EXPORT Standard_Integer NShape (const TopoDS_Shape &S) const
virtual Standard_EXPORT void FindNeighbours ()
 Build the list of neighbour shapes of myCurrentShape
(neighbour shapes and myCurrentShapes are of type t)
Initialize myIncidentShapesIter on neighbour shapes.
.
virtual Standard_EXPORT const
TopTools_ListOfShape & 
MakeNeighboursList (const TopoDS_Shape &E, const TopoDS_Shape &V)
Standard_EXPORT Standard_Integer MaxNumberSubShape (const TopoDS_Shape &Shape)
Standard_EXPORT void CheckShape (const Standard_Boolean checkshape)
Standard_EXPORT Standard_Boolean CheckShape () const
Standard_EXPORT Standard_Boolean CheckShape (const TopoDS_Shape &S, const Standard_Boolean checkgeom=Standard_False)
Standard_EXPORT void DumpName (Standard_OStream &OS, const TCollection_AsciiString &str) const
Standard_EXPORT void DumpCheck (Standard_OStream &OS, const TCollection_AsciiString &str, const TopoDS_Shape &S, const Standard_Boolean chk) const
virtual Standard_EXPORT void DumpSS ()
virtual Standard_EXPORT void DumpBB ()
Standard_EXPORT void DEBName (const TCollection_AsciiString &N)
Standard_EXPORT const TCollection_AsciiString & DEBName () const
Standard_EXPORT void DEBNumber (const Standard_Integer I)
Standard_EXPORT Standard_Integer DEBNumber () const
virtual Standard_EXPORT TCollection_AsciiString SName (const TopoDS_Shape &S, const TCollection_AsciiString &sb="", const TCollection_AsciiString &sa="") const
virtual Standard_EXPORT TCollection_AsciiString SNameori (const TopoDS_Shape &S, const TCollection_AsciiString &sb="", const TCollection_AsciiString &sa="") const
virtual Standard_EXPORT TCollection_AsciiString SName (const TopTools_ListOfShape &S, const TCollection_AsciiString &sb="", const TCollection_AsciiString &sa="") const
virtual Standard_EXPORT TCollection_AsciiString SNameori (const TopTools_ListOfShape &S, const TCollection_AsciiString &sb="", const TCollection_AsciiString &sa="") const

Protected Member Functions

Standard_EXPORT void ProcessAddShape (const TopoDS_Shape &S)
Standard_EXPORT void ProcessAddStartElement (const TopoDS_Shape &S)
Standard_EXPORT 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

Constructor & Destructor Documentation

Standard_EXPORT TopOpeBRepBuild_ShapeSet::TopOpeBRepBuild_ShapeSet const TopAbs_ShapeEnum  SubShapeType,
const Standard_Boolean  checkshape = Standard_True
 

virtual Standard_EXPORT TopOpeBRepBuild_ShapeSet::~TopOpeBRepBuild_ShapeSet  )  [inline, virtual]
 


Member Function Documentation

virtual Standard_EXPORT void TopOpeBRepBuild_ShapeSet::AddElement const TopoDS_Shape &  S  )  [virtual]
 

Reimplemented in TopOpeBRepBuild_ShellFaceSet, and TopOpeBRepBuild_WireEdgeSet.

virtual Standard_EXPORT void TopOpeBRepBuild_ShapeSet::AddShape const TopoDS_Shape &  S  )  [virtual]
 

Reimplemented in TopOpeBRepBuild_ShellFaceSet, and TopOpeBRepBuild_WireEdgeSet.

virtual Standard_EXPORT void TopOpeBRepBuild_ShapeSet::AddStartElement const TopoDS_Shape &  S  )  [virtual]
 

Reimplemented in TopOpeBRepBuild_ShellFaceSet, and TopOpeBRepBuild_WireEdgeSet.

Standard_EXPORT TopTools_ListOfShape& TopOpeBRepBuild_ShapeSet::ChangeStartShapes  ) 
 

Standard_EXPORT Standard_Boolean TopOpeBRepBuild_ShapeSet::CheckShape const TopoDS_Shape &  S,
const Standard_Boolean  checkgeom = Standard_False
 

Standard_EXPORT Standard_Boolean TopOpeBRepBuild_ShapeSet::CheckShape  )  const
 

Standard_EXPORT void TopOpeBRepBuild_ShapeSet::CheckShape const Standard_Boolean  checkshape  ) 
 

Standard_EXPORT const TCollection_AsciiString& TopOpeBRepBuild_ShapeSet::DEBName  )  const
 

Standard_EXPORT void TopOpeBRepBuild_ShapeSet::DEBName const TCollection_AsciiString &  N  ) 
 

Standard_EXPORT Standard_Integer TopOpeBRepBuild_ShapeSet::DEBNumber  )  const
 

Standard_EXPORT void TopOpeBRepBuild_ShapeSet::DEBNumber const Standard_Integer  I  ) 
 

virtual Standard_EXPORT void TopOpeBRepBuild_ShapeSet::Delete  )  [virtual]
 

virtual Standard_EXPORT void TopOpeBRepBuild_ShapeSet::DumpBB  )  [virtual]
 

Standard_EXPORT void TopOpeBRepBuild_ShapeSet::DumpCheck Standard_OStream &  OS,
const TCollection_AsciiString &  str,
const TopoDS_Shape &  S,
const Standard_Boolean  chk
const
 

Standard_EXPORT void TopOpeBRepBuild_ShapeSet::DumpName Standard_OStream &  OS,
const TCollection_AsciiString &  str
const
 

virtual Standard_EXPORT void TopOpeBRepBuild_ShapeSet::DumpSS  )  [virtual]
 

Reimplemented in TopOpeBRepBuild_ShellFaceSet, and TopOpeBRepBuild_WireEdgeSet.

virtual Standard_EXPORT void TopOpeBRepBuild_ShapeSet::FindNeighbours  )  [virtual]
 

Reimplemented in TopOpeBRepBuild_WireEdgeSet.

virtual Standard_EXPORT void TopOpeBRepBuild_ShapeSet::InitNeighbours const TopoDS_Shape &  S  )  [virtual]
 

Reimplemented in TopOpeBRepBuild_WireEdgeSet.

Standard_EXPORT void TopOpeBRepBuild_ShapeSet::InitShapes  ) 
 

Standard_EXPORT void TopOpeBRepBuild_ShapeSet::InitStartElements  ) 
 

Standard_EXPORT Standard_Boolean TopOpeBRepBuild_ShapeSet::IsElement const TopoDS_Shape &  S  )  const
 

Standard_EXPORT Standard_Boolean TopOpeBRepBuild_ShapeSet::IsShape const TopoDS_Shape &  S  )  const
 

Standard_EXPORT Standard_Boolean TopOpeBRepBuild_ShapeSet::IsStartElement const TopoDS_Shape &  S  )  const
 

virtual Standard_EXPORT const TopTools_ListOfShape& TopOpeBRepBuild_ShapeSet::MakeNeighboursList const TopoDS_Shape &  E,
const TopoDS_Shape &  V
[virtual]
 

Reimplemented in TopOpeBRepBuild_WireEdgeSet.

Standard_EXPORT Standard_Integer TopOpeBRepBuild_ShapeSet::MaxNumberSubShape const TopoDS_Shape &  Shape  ) 
 

Standard_EXPORT Standard_Boolean TopOpeBRepBuild_ShapeSet::MoreNeighbours  ) 
 

Standard_EXPORT Standard_Boolean TopOpeBRepBuild_ShapeSet::MoreShapes  )  const
 

Standard_EXPORT Standard_Boolean TopOpeBRepBuild_ShapeSet::MoreStartElements  )  const
 

Standard_EXPORT const TopoDS_Shape& TopOpeBRepBuild_ShapeSet::Neighbour  )  const
 

Standard_EXPORT Standard_Integer TopOpeBRepBuild_ShapeSet::NElement const TopoDS_Shape &  S  )  const
 

Standard_EXPORT void TopOpeBRepBuild_ShapeSet::NextNeighbour  ) 
 

Standard_EXPORT void TopOpeBRepBuild_ShapeSet::NextShape  ) 
 

Standard_EXPORT void TopOpeBRepBuild_ShapeSet::NextStartElement  ) 
 

Standard_EXPORT Standard_Integer TopOpeBRepBuild_ShapeSet::NShape const TopoDS_Shape &  S  )  const
 

Standard_EXPORT Standard_Integer TopOpeBRepBuild_ShapeSet::NStartElement const TopoDS_Shape &  S  )  const
 

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

Reimplemented in TopOpeBRepBuild_ShellFaceSet, and TopOpeBRepBuild_WireEdgeSet.

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

Reimplemented in TopOpeBRepBuild_ShellFaceSet, and TopOpeBRepBuild_WireEdgeSet.

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

Reimplemented in TopOpeBRepBuild_ShellFaceSet, and TopOpeBRepBuild_WireEdgeSet.

Standard_EXPORT void TopOpeBRepBuild_ShapeSet::ProcessAddElement const TopoDS_Shape &  S  )  [protected]
 

Standard_EXPORT void TopOpeBRepBuild_ShapeSet::ProcessAddShape const TopoDS_Shape &  S  )  [protected]
 

Standard_EXPORT void TopOpeBRepBuild_ShapeSet::ProcessAddStartElement const TopoDS_Shape &  S  )  [protected]
 

Standard_EXPORT const TopoDS_Shape& TopOpeBRepBuild_ShapeSet::Shape  )  const
 

virtual Standard_EXPORT TCollection_AsciiString TopOpeBRepBuild_ShapeSet::SName const TopTools_ListOfShape &  S,
const TCollection_AsciiString &  sb = "",
const TCollection_AsciiString &  sa = ""
const [virtual]
 

Reimplemented in TopOpeBRepBuild_ShellFaceSet, and TopOpeBRepBuild_WireEdgeSet.

virtual Standard_EXPORT TCollection_AsciiString TopOpeBRepBuild_ShapeSet::SName const TopoDS_Shape &  S,
const TCollection_AsciiString &  sb = "",
const TCollection_AsciiString &  sa = ""
const [virtual]
 

Reimplemented in TopOpeBRepBuild_ShellFaceSet, and TopOpeBRepBuild_WireEdgeSet.

virtual Standard_EXPORT TCollection_AsciiString TopOpeBRepBuild_ShapeSet::SNameori const TopTools_ListOfShape &  S,
const TCollection_AsciiString &  sb = "",
const TCollection_AsciiString &  sa = ""
const [virtual]
 

Reimplemented in TopOpeBRepBuild_ShellFaceSet, and TopOpeBRepBuild_WireEdgeSet.

virtual Standard_EXPORT TCollection_AsciiString TopOpeBRepBuild_ShapeSet::SNameori const TopoDS_Shape &  S,
const TCollection_AsciiString &  sb = "",
const TCollection_AsciiString &  sa = ""
const [virtual]
 

Reimplemented in TopOpeBRepBuild_ShellFaceSet, and TopOpeBRepBuild_WireEdgeSet.

Standard_EXPORT const TopoDS_Shape& TopOpeBRepBuild_ShapeSet::StartElement  )  const
 

Standard_EXPORT const TopTools_ListOfShape& TopOpeBRepBuild_ShapeSet::StartElements  )  const
 


Field Documentation

Standard_Boolean TopOpeBRepBuild_ShapeSet::myCheckShape [protected]
 

TopoDS_Shape TopOpeBRepBuild_ShapeSet::myCurrentShape [protected]
 

TopTools_ListOfShape TopOpeBRepBuild_ShapeSet::myCurrentShapeNeighbours [protected]
 

TCollection_AsciiString TopOpeBRepBuild_ShapeSet::myDEBName [protected]
 

Standard_Integer TopOpeBRepBuild_ShapeSet::myDEBNumber [protected]
 

TopTools_ListIteratorOfListOfShape TopOpeBRepBuild_ShapeSet::myIncidentShapesIter [protected]
 

TopTools_IndexedMapOfOrientedShape TopOpeBRepBuild_ShapeSet::myOMES [protected]
 

TopTools_IndexedMapOfOrientedShape TopOpeBRepBuild_ShapeSet::myOMSH [protected]
 

TopTools_IndexedMapOfOrientedShape TopOpeBRepBuild_ShapeSet::myOMSS [protected]
 

TopTools_ListOfShape TopOpeBRepBuild_ShapeSet::myShapes [protected]
 

TopTools_ListIteratorOfListOfShape TopOpeBRepBuild_ShapeSet::myShapesIter [protected]
 

TopAbs_ShapeEnum TopOpeBRepBuild_ShapeSet::myShapeType [protected]
 

TopTools_ListOfShape TopOpeBRepBuild_ShapeSet::myStartShapes [protected]
 

TopTools_ListIteratorOfListOfShape TopOpeBRepBuild_ShapeSet::myStartShapesIter [protected]
 

TopOpeBRepTool_ShapeExplorer TopOpeBRepBuild_ShapeSet::mySubShapeExplorer [protected]
 

TopTools_IndexedDataMapOfShapeListOfShape TopOpeBRepBuild_ShapeSet::mySubShapeMap [protected]
 

TopAbs_ShapeEnum TopOpeBRepBuild_ShapeSet::mySubShapeType [protected]
 


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