Back to index

salome-geom  6.5.0
Public Member Functions | Protected Member Functions | Protected Attributes
GEOMAlgo_BuilderArea Class Reference

The root class for algorithms to build
faces/solids from set of edges/faces
More...

#include <GEOMAlgo_BuilderArea.hxx>

Inheritance diagram for GEOMAlgo_BuilderArea:
Inheritance graph
[legend]
Collaboration diagram for GEOMAlgo_BuilderArea:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Standard_EXPORT void SetContext (const Handle(IntTools_Context)&theContext)
 Sets cashed geometrical tools

Standard_EXPORT const
Handle_IntTools_Context & 
Context () const
 Returns cashed geometrical tools

Standard_EXPORT void SetShapes (const TopTools_ListOfShape &theLS)
 Sets edges/faces to process

Standard_EXPORT const
TopTools_ListOfShape & 
Shapes () const
 Returns edges/faces to process

Standard_EXPORT const
TopTools_ListOfShape & 
Loops () const
 Returns wires/shells that have been built

Standard_EXPORT const
TopTools_ListOfShape & 
Areas () const
 Returns faces/solids that have been built

virtual Standard_EXPORT void Perform ()
Standard_EXPORT Standard_Integer ErrorStatus () const
Standard_EXPORT Standard_Integer WarningStatus () const
Standard_EXPORT void ComputeInternalShapes (const Standard_Boolean theFlag)
 Allows to omit of creation of internal shapes (manifold topology).
Needed for the SALOME/TRIPOLI module.

Protected Member Functions

Standard_EXPORT GEOMAlgo_BuilderArea ()
 Empty constructor

virtual Standard_EXPORT ~GEOMAlgo_BuilderArea ()
virtual Standard_EXPORT void PerformShapesToAvoid ()
 Collect the edges/faces that
a) are internal
b) are the same and have different orientation

virtual Standard_EXPORT void PerformLoops ()
 Build draft faces/shells
a)myLoops - draft faces/shells that consist of
boundary edges/faces
b)myLoopsInternal - draft faces/shells that contains
inner edges/faces

virtual Standard_EXPORT void PerformAreas ()
 Build draft faces/solids that contains boundary faces

virtual Standard_EXPORT void PerformInternalShapes ()
 Build finalized faces/solids with internal wires/shells

virtual Standard_EXPORT void CheckData ()
virtual Standard_EXPORT void CheckResult ()

Protected Attributes

TopTools_ListOfShape myShapes
TopTools_ListOfShape myLoops
TopTools_ListOfShape myLoopsInternal
TopTools_MapOfOrientedShape myShapesToAvoid
TopTools_ListOfShape myAreas
Handle_IntTools_Context myContext
Standard_Integer myErrorStatus
Standard_Integer myWarningStatus
Standard_Boolean myComputeInternalShapes

Detailed Description

The root class for algorithms to build
faces/solids from set of edges/faces

Definition at line 45 of file GEOMAlgo_BuilderArea.hxx.


Constructor & Destructor Documentation

Empty constructor

Definition at line 37 of file GEOMAlgo_BuilderArea.cxx.

:
  GEOMAlgo_Algo()
{
}

Definition at line 46 of file GEOMAlgo_BuilderArea.cxx.

{
}

Member Function Documentation

const TopTools_ListOfShape & GEOMAlgo_BuilderArea::Areas ( ) const

Returns faces/solids that have been built

Definition at line 110 of file GEOMAlgo_BuilderArea.cxx.

{
  return myAreas;
}

Here is the caller graph for this function:

void GEOMAlgo_Algo::CheckData ( ) [protected, virtual, inherited]
void GEOMAlgo_Algo::CheckResult ( ) [protected, virtual, inherited]

Reimplemented in GEOMAlgo_Gluer.

Definition at line 59 of file GEOMAlgo_Algo.cxx.

void GEOMAlgo_Algo::ComputeInternalShapes ( const Standard_Boolean  theFlag) [inherited]

Allows to omit of creation of internal shapes (manifold topology).
Needed for the SALOME/TRIPOLI module.

Definition at line 87 of file GEOMAlgo_Algo.cxx.

{
  myComputeInternalShapes = theFlag;
}

Here is the caller graph for this function:

Standard_EXPORT const Handle_IntTools_Context& GEOMAlgo_BuilderArea::Context ( ) const

Returns cashed geometrical tools

Standard_Integer GEOMAlgo_Algo::ErrorStatus ( ) const [inherited]

Definition at line 67 of file GEOMAlgo_Algo.cxx.

{
  return myErrorStatus;
}

Here is the caller graph for this function:

const TopTools_ListOfShape & GEOMAlgo_BuilderArea::Loops ( ) const

Returns wires/shells that have been built

Definition at line 102 of file GEOMAlgo_BuilderArea.cxx.

{
  return myLoops;
}
void GEOMAlgo_BuilderArea::Perform ( ) [virtual]

Implements GEOMAlgo_Algo.

Reimplemented in GEOMAlgo_BuilderFace, and GEOMAlgo_BuilderSolid.

Definition at line 69 of file GEOMAlgo_BuilderArea.cxx.

{
  if (myContext.IsNull()) {
    myContext=new IntTools_Context;
  }
}
void GEOMAlgo_BuilderArea::PerformAreas ( ) [protected, virtual]

Build draft faces/solids that contains boundary faces

Reimplemented in GEOMAlgo_BuilderFace, and GEOMAlgo_BuilderSolid.

Definition at line 132 of file GEOMAlgo_BuilderArea.cxx.

{
}
void GEOMAlgo_BuilderArea::PerformInternalShapes ( ) [protected, virtual]

Build finalized faces/solids with internal wires/shells

Reimplemented in GEOMAlgo_BuilderFace, and GEOMAlgo_BuilderSolid.

Definition at line 139 of file GEOMAlgo_BuilderArea.cxx.

{
}
void GEOMAlgo_BuilderArea::PerformLoops ( ) [protected, virtual]

Build draft faces/shells
a)myLoops - draft faces/shells that consist of
boundary edges/faces
b)myLoopsInternal - draft faces/shells that contains
inner edges/faces

Reimplemented in GEOMAlgo_BuilderFace, and GEOMAlgo_BuilderSolid.

Definition at line 125 of file GEOMAlgo_BuilderArea.cxx.

{
}
void GEOMAlgo_BuilderArea::PerformShapesToAvoid ( ) [protected, virtual]

Collect the edges/faces that
a) are internal
b) are the same and have different orientation

Reimplemented in GEOMAlgo_BuilderFace, and GEOMAlgo_BuilderSolid.

Definition at line 118 of file GEOMAlgo_BuilderArea.cxx.

{
}
void GEOMAlgo_BuilderArea::SetContext ( const Handle(IntTools_Context)&  theContext)

Sets cashed geometrical tools

Definition at line 53 of file GEOMAlgo_BuilderArea.cxx.

{
  myContext=theContext;
}

Here is the caller graph for this function:

void GEOMAlgo_BuilderArea::SetShapes ( const TopTools_ListOfShape &  theLS)

Sets edges/faces to process

Definition at line 79 of file GEOMAlgo_BuilderArea.cxx.

{
  TopTools_ListIteratorOfListOfShape aIt;
  //
  myShapes.Clear();
  aIt.Initialize(theLF);
  for(; aIt.More(); aIt.Next()) {
    const TopoDS_Shape& aF=aIt.Value();
    myShapes.Append(aF);
  }
}

Here is the caller graph for this function:

const TopTools_ListOfShape & GEOMAlgo_BuilderArea::Shapes ( ) const

Returns edges/faces to process

Definition at line 94 of file GEOMAlgo_BuilderArea.cxx.

{
  return myShapes;
}
Standard_Integer GEOMAlgo_Algo::WarningStatus ( ) const [inherited]

Definition at line 75 of file GEOMAlgo_Algo.cxx.

{
  return myWarningStatus;
}

Here is the caller graph for this function:


Member Data Documentation

TopTools_ListOfShape GEOMAlgo_BuilderArea::myAreas [protected]

Definition at line 109 of file GEOMAlgo_BuilderArea.hxx.

Standard_Boolean GEOMAlgo_Algo::myComputeInternalShapes [protected, inherited]

Definition at line 73 of file GEOMAlgo_Algo.hxx.

Handle_IntTools_Context GEOMAlgo_BuilderArea::myContext [protected]

Definition at line 110 of file GEOMAlgo_BuilderArea.hxx.

Standard_Integer GEOMAlgo_Algo::myErrorStatus [protected, inherited]

Definition at line 71 of file GEOMAlgo_Algo.hxx.

TopTools_ListOfShape GEOMAlgo_BuilderArea::myLoops [protected]

Definition at line 106 of file GEOMAlgo_BuilderArea.hxx.

TopTools_ListOfShape GEOMAlgo_BuilderArea::myLoopsInternal [protected]

Definition at line 107 of file GEOMAlgo_BuilderArea.hxx.

TopTools_ListOfShape GEOMAlgo_BuilderArea::myShapes [protected]

Definition at line 105 of file GEOMAlgo_BuilderArea.hxx.

TopTools_MapOfOrientedShape GEOMAlgo_BuilderArea::myShapesToAvoid [protected]

Definition at line 108 of file GEOMAlgo_BuilderArea.hxx.

Standard_Integer GEOMAlgo_Algo::myWarningStatus [protected, inherited]

Definition at line 72 of file GEOMAlgo_Algo.hxx.


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