Open CASCADE Technology 7.8.2.dev
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:

Public Member Functions

 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 ~TopOpeBRepBuild_ShapeSet ()
 
virtual void AddShape (const TopoDS_Shape &S)
 Adds 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 ()
 
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_ListOfShapeMakeNeighboursList (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

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

Signature needed by the BlockBuilder : InitStartElements(me : in out) MoreStartElements(me) returns Boolean; NextStartElement(me : in out); StartElement(me) returns Shape; —C++: return const & InitNeighbours(me : in out; S : Shape); MoreNeighbours(me) returns Boolean; NextNeighbour(me : in out); Neighbour(me) returns Shape; —C++: return const &

Constructor & Destructor Documentation

◆ TopOpeBRepBuild_ShapeSet()

TopOpeBRepBuild_ShapeSet::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.

◆ ~TopOpeBRepBuild_ShapeSet()

virtual TopOpeBRepBuild_ShapeSet::~TopOpeBRepBuild_ShapeSet ( )
virtual

Member Function Documentation

◆ AddElement()

virtual void TopOpeBRepBuild_ShapeSet::AddElement ( const TopoDS_Shape & S)
virtual

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.

Reimplemented in TopOpeBRepBuild_ShellFaceSet, and TopOpeBRepBuild_WireEdgeSet.

◆ AddShape()

virtual void TopOpeBRepBuild_ShapeSet::AddShape ( const TopoDS_Shape & S)
virtual

Adds to the list of shapes. (wires or shells).

Reimplemented in TopOpeBRepBuild_ShellFaceSet, and TopOpeBRepBuild_WireEdgeSet.

◆ AddStartElement()

virtual void TopOpeBRepBuild_ShapeSet::AddStartElement ( const TopoDS_Shape & S)
virtual

(S is a face or edge) Add S to the list of starting shapes used for reconstructions. apply AddElement(S).

Reimplemented in TopOpeBRepBuild_ShellFaceSet, and TopOpeBRepBuild_WireEdgeSet.

◆ ChangeStartShapes()

TopTools_ListOfShape & TopOpeBRepBuild_ShapeSet::ChangeStartShapes ( )

◆ CheckShape() [1/3]

Standard_Boolean TopOpeBRepBuild_ShapeSet::CheckShape ( ) const

◆ CheckShape() [2/3]

void TopOpeBRepBuild_ShapeSet::CheckShape ( const Standard_Boolean checkshape)

◆ CheckShape() [3/3]

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

◆ DEBName() [1/2]

const TCollection_AsciiString & TopOpeBRepBuild_ShapeSet::DEBName ( ) const

◆ DEBName() [2/2]

void TopOpeBRepBuild_ShapeSet::DEBName ( const TCollection_AsciiString & N)

◆ DEBNumber() [1/2]

Standard_Integer TopOpeBRepBuild_ShapeSet::DEBNumber ( ) const

◆ DEBNumber() [2/2]

void TopOpeBRepBuild_ShapeSet::DEBNumber ( const Standard_Integer I)

◆ DumpBB()

virtual void TopOpeBRepBuild_ShapeSet::DumpBB ( )
virtual

◆ DumpCheck()

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

◆ DumpName()

void TopOpeBRepBuild_ShapeSet::DumpName ( Standard_OStream & OS,
const TCollection_AsciiString & str ) const

◆ DumpSS()

virtual void TopOpeBRepBuild_ShapeSet::DumpSS ( )
virtual

◆ FindNeighbours()

virtual void TopOpeBRepBuild_ShapeSet::FindNeighbours ( )
virtual

Build the list of neighbour shapes of myCurrentShape (neighbour shapes and myCurrentShapes are of type t) Initialize myIncidentShapesIter on neighbour shapes.

Reimplemented in TopOpeBRepBuild_WireEdgeSet.

◆ InitNeighbours()

virtual void TopOpeBRepBuild_ShapeSet::InitNeighbours ( const TopoDS_Shape & S)
virtual

Reimplemented in TopOpeBRepBuild_WireEdgeSet.

◆ InitShapes()

void TopOpeBRepBuild_ShapeSet::InitShapes ( )

◆ InitStartElements()

void TopOpeBRepBuild_ShapeSet::InitStartElements ( )

◆ MakeNeighboursList()

virtual const TopTools_ListOfShape & TopOpeBRepBuild_ShapeSet::MakeNeighboursList ( const TopoDS_Shape & E,
const TopoDS_Shape & V )
virtual

Reimplemented in TopOpeBRepBuild_WireEdgeSet.

◆ MaxNumberSubShape()

Standard_Integer TopOpeBRepBuild_ShapeSet::MaxNumberSubShape ( const TopoDS_Shape & Shape)

◆ MoreNeighbours()

Standard_Boolean TopOpeBRepBuild_ShapeSet::MoreNeighbours ( )

◆ MoreShapes()

Standard_Boolean TopOpeBRepBuild_ShapeSet::MoreShapes ( ) const

◆ MoreStartElements()

Standard_Boolean TopOpeBRepBuild_ShapeSet::MoreStartElements ( ) const

◆ Neighbour()

const TopoDS_Shape & TopOpeBRepBuild_ShapeSet::Neighbour ( ) const

◆ NextNeighbour()

void TopOpeBRepBuild_ShapeSet::NextNeighbour ( )

◆ NextShape()

void TopOpeBRepBuild_ShapeSet::NextShape ( )

◆ NextStartElement()

void TopOpeBRepBuild_ShapeSet::NextStartElement ( )

◆ ProcessAddElement()

void TopOpeBRepBuild_ShapeSet::ProcessAddElement ( const TopoDS_Shape & S)
protected

◆ ProcessAddShape()

void TopOpeBRepBuild_ShapeSet::ProcessAddShape ( const TopoDS_Shape & S)
protected

◆ ProcessAddStartElement()

void TopOpeBRepBuild_ShapeSet::ProcessAddStartElement ( const TopoDS_Shape & S)
protected

◆ Shape()

const TopoDS_Shape & TopOpeBRepBuild_ShapeSet::Shape ( ) const

◆ SName() [1/2]

virtual TCollection_AsciiString TopOpeBRepBuild_ShapeSet::SName ( const TopoDS_Shape & S,
const TCollection_AsciiString & sb = "",
const TCollection_AsciiString & sa = "" ) const
virtual

◆ SName() [2/2]

virtual TCollection_AsciiString TopOpeBRepBuild_ShapeSet::SName ( const TopTools_ListOfShape & S,
const TCollection_AsciiString & sb = "",
const TCollection_AsciiString & sa = "" ) const
virtual

◆ SNameori() [1/2]

virtual TCollection_AsciiString TopOpeBRepBuild_ShapeSet::SNameori ( const TopoDS_Shape & S,
const TCollection_AsciiString & sb = "",
const TCollection_AsciiString & sa = "" ) const
virtual

◆ SNameori() [2/2]

virtual TCollection_AsciiString TopOpeBRepBuild_ShapeSet::SNameori ( const TopTools_ListOfShape & S,
const TCollection_AsciiString & sb = "",
const TCollection_AsciiString & sa = "" ) const
virtual

◆ StartElement()

const TopoDS_Shape & TopOpeBRepBuild_ShapeSet::StartElement ( ) const

◆ StartElements()

const TopTools_ListOfShape & TopOpeBRepBuild_ShapeSet::StartElements ( ) const

return a reference on myStartShapes

Field Documentation

◆ myCheckShape

Standard_Boolean TopOpeBRepBuild_ShapeSet::myCheckShape
protected

◆ myCurrentShape

TopoDS_Shape TopOpeBRepBuild_ShapeSet::myCurrentShape
protected

◆ myCurrentShapeNeighbours

TopTools_ListOfShape TopOpeBRepBuild_ShapeSet::myCurrentShapeNeighbours
protected

◆ myDEBName

TCollection_AsciiString TopOpeBRepBuild_ShapeSet::myDEBName
protected

◆ myDEBNumber

Standard_Integer TopOpeBRepBuild_ShapeSet::myDEBNumber
protected

◆ myIncidentShapesIter

TopTools_ListIteratorOfListOfShape TopOpeBRepBuild_ShapeSet::myIncidentShapesIter
protected

◆ myOMES

TopTools_IndexedMapOfOrientedShape TopOpeBRepBuild_ShapeSet::myOMES
protected

◆ myOMSH

TopTools_IndexedMapOfOrientedShape TopOpeBRepBuild_ShapeSet::myOMSH
protected

◆ myOMSS

TopTools_IndexedMapOfOrientedShape TopOpeBRepBuild_ShapeSet::myOMSS
protected

◆ myShapes

TopTools_ListOfShape TopOpeBRepBuild_ShapeSet::myShapes
protected

◆ myShapesIter

TopTools_ListIteratorOfListOfShape TopOpeBRepBuild_ShapeSet::myShapesIter
protected

◆ myShapeType

TopAbs_ShapeEnum TopOpeBRepBuild_ShapeSet::myShapeType
protected

◆ myStartShapes

TopTools_ListOfShape TopOpeBRepBuild_ShapeSet::myStartShapes
protected

◆ myStartShapesIter

TopTools_ListIteratorOfListOfShape TopOpeBRepBuild_ShapeSet::myStartShapesIter
protected

◆ mySubShapeExplorer

TopOpeBRepTool_ShapeExplorer TopOpeBRepBuild_ShapeSet::mySubShapeExplorer
protected

◆ mySubShapeMap

TopTools_IndexedDataMapOfShapeListOfShape TopOpeBRepBuild_ShapeSet::mySubShapeMap
protected

◆ mySubShapeType

TopAbs_ShapeEnum TopOpeBRepBuild_ShapeSet::mySubShapeType
protected

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