Back to index

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

Root class for algorithms that has shape as result
More...

#include <GEOMAlgo_BuilderShape.hxx>

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

List of all members.

Public Member Functions

Standard_EXPORT const
TopoDS_Shape & 
Shape () const
 Returns the result of algorithm

virtual Standard_EXPORT const
TopTools_ListOfShape & 
Generated (const TopoDS_Shape &theS)
 Returns the list of shapes generated from the
shape theS.

virtual Standard_EXPORT const
TopTools_ListOfShape & 
Modified (const TopoDS_Shape &theS)
 Returns the list of shapes modified from the
shape theS.

virtual Standard_EXPORT
Standard_Boolean 
IsDeleted (const TopoDS_Shape &theS)
 Returns true if the shape theS has been deleted.

Standard_EXPORT Standard_Boolean HasDeleted () const
 Returns true if the at least one shape(or sub-shape)
of arguments has been deleted.

Standard_EXPORT Standard_Boolean HasGenerated () const
 Returns true if the at least one shape(or sub-shape)
of arguments has generated shapes.

Standard_EXPORT Standard_Boolean HasModified () const
 Returns true if the at least one shape(or sub-shape)
of arguments has modified shapes.

Standard_EXPORT const
TopTools_IndexedDataMapOfShapeListOfShape & 
ImagesResult () const
virtual Standard_EXPORT void Perform ()=0
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_BuilderShape ()
 Empty constructor

virtual Standard_EXPORT ~GEOMAlgo_BuilderShape ()
virtual Standard_EXPORT void PrepareHistory ()
 Prepare information for history support

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

Protected Attributes

TopoDS_Shape myShape
TopTools_ListOfShape myHistShapes
TopTools_MapOfShape myMapShape
Standard_Boolean myHasDeleted
Standard_Boolean myHasGenerated
Standard_Boolean myHasModified
TopTools_IndexedDataMapOfShapeListOfShape myImagesResult
Standard_Integer myErrorStatus
Standard_Integer myWarningStatus
Standard_Boolean myComputeInternalShapes

Detailed Description

Root class for algorithms that has shape as result

Definition at line 45 of file GEOMAlgo_BuilderShape.hxx.


Constructor & Destructor Documentation

Empty constructor

Definition at line 32 of file GEOMAlgo_BuilderShape.cxx.

:
  GEOMAlgo_Algo()
{
  myHasDeleted=Standard_False;
  myHasGenerated=Standard_False;
  myHasModified=Standard_False;
}

Definition at line 44 of file GEOMAlgo_BuilderShape.cxx.

{
}

Member Function Documentation

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_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_BuilderShape::Generated ( const TopoDS_Shape &  theS) [virtual]

Returns the list of shapes generated from the
shape theS.

Reimplemented in GEOMAlgo_Gluer2, and GEOMAlgo_Builder.

Definition at line 60 of file GEOMAlgo_BuilderShape.cxx.

{
  myHistShapes.Clear();
  return myHistShapes;
}
Standard_Boolean GEOMAlgo_BuilderShape::HasDeleted ( ) const

Returns true if the at least one shape(or sub-shape)
of arguments has been deleted.

Definition at line 89 of file GEOMAlgo_BuilderShape.cxx.

{
  return myHasDeleted;
}
Standard_Boolean GEOMAlgo_BuilderShape::HasGenerated ( ) const

Returns true if the at least one shape(or sub-shape)
of arguments has generated shapes.

Definition at line 97 of file GEOMAlgo_BuilderShape.cxx.

{
  return myHasGenerated;
}
Standard_Boolean GEOMAlgo_BuilderShape::HasModified ( ) const

Returns true if the at least one shape(or sub-shape)
of arguments has modified shapes.

Definition at line 105 of file GEOMAlgo_BuilderShape.cxx.

{
  return myHasModified;
}
const TopTools_IndexedDataMapOfShapeListOfShape & GEOMAlgo_BuilderShape::ImagesResult ( ) const

Definition at line 129 of file GEOMAlgo_BuilderShape.cxx.

{
  return myImagesResult;
}

Here is the caller graph for this function:

Standard_Boolean GEOMAlgo_BuilderShape::IsDeleted ( const TopoDS_Shape &  theS) [virtual]

Returns true if the shape theS has been deleted.

Reimplemented in GEOMAlgo_Gluer2, and GEOMAlgo_Builder.

Definition at line 78 of file GEOMAlgo_BuilderShape.cxx.

{
  Standard_Boolean bRet;
  //
  bRet=!myMapShape.Contains(theS);
  return bRet;
}
const TopTools_ListOfShape & GEOMAlgo_BuilderShape::Modified ( const TopoDS_Shape &  theS) [virtual]

Returns the list of shapes modified from the
shape theS.

Reimplemented in GEOMAlgo_Gluer2, and GEOMAlgo_Builder.

Definition at line 69 of file GEOMAlgo_BuilderShape.cxx.

{
  myHistShapes.Clear();
  return myHistShapes;
}
virtual Standard_EXPORT void GEOMAlgo_Algo::Perform ( ) [pure virtual, inherited]
void GEOMAlgo_BuilderShape::PrepareHistory ( ) [protected, virtual]

Prepare information for history support

Reimplemented in GEOMAlgo_Gluer2, and GEOMAlgo_Builder.

Definition at line 113 of file GEOMAlgo_BuilderShape.cxx.

{
  myHistShapes.Clear();
  myMapShape.Clear();
  myHasDeleted=Standard_False;
  myHasGenerated=Standard_False;
  myHasModified=Standard_False;
  //modified by NIZNHY-PKV Thu Dec  7 11:14:15 2006
  myImagesResult.Clear();
  //modified by NIZNHY-PKV Thu Dec  7 11:14:17 2006t
}
const TopoDS_Shape & GEOMAlgo_BuilderShape::Shape ( ) const

Returns the result of algorithm

Definition at line 51 of file GEOMAlgo_BuilderShape.cxx.

{
  return myShape;
}

Here is the caller graph for this function:

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

Standard_Boolean GEOMAlgo_Algo::myComputeInternalShapes [protected, inherited]

Definition at line 73 of file GEOMAlgo_Algo.hxx.

Standard_Integer GEOMAlgo_Algo::myErrorStatus [protected, inherited]

Definition at line 71 of file GEOMAlgo_Algo.hxx.

Standard_Boolean GEOMAlgo_BuilderShape::myHasDeleted [protected]

Definition at line 100 of file GEOMAlgo_BuilderShape.hxx.

Standard_Boolean GEOMAlgo_BuilderShape::myHasGenerated [protected]

Definition at line 101 of file GEOMAlgo_BuilderShape.hxx.

Standard_Boolean GEOMAlgo_BuilderShape::myHasModified [protected]

Definition at line 102 of file GEOMAlgo_BuilderShape.hxx.

TopTools_ListOfShape GEOMAlgo_BuilderShape::myHistShapes [protected]

Definition at line 98 of file GEOMAlgo_BuilderShape.hxx.

TopTools_IndexedDataMapOfShapeListOfShape GEOMAlgo_BuilderShape::myImagesResult [protected]

Definition at line 103 of file GEOMAlgo_BuilderShape.hxx.

TopTools_MapOfShape GEOMAlgo_BuilderShape::myMapShape [protected]

Definition at line 99 of file GEOMAlgo_BuilderShape.hxx.

TopoDS_Shape GEOMAlgo_BuilderShape::myShape [protected]

Definition at line 97 of file GEOMAlgo_BuilderShape.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: