Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
GEOMAlgo_GetInPlace Class Reference

The implementation of Get In Place Algorithm. More...

#include <GEOMAlgo_GetInPlace.hxx>

Inheritance diagram for GEOMAlgo_GetInPlace:
Inheritance graph

Public Member Functions

Standard_EXPORT GEOMAlgo_GetInPlace ()
 Constructor. More...
 
virtual Standard_EXPORT ~GEOMAlgo_GetInPlace ()
 Destructor. More...
 
virtual Standard_EXPORT void SetShapeWhere (const TopoDS_Shape &theShape)
 Modifier. More...
 
Standard_EXPORT const
TopoDS_Shape & 
ShapeWhere () const
 Selector. More...
 
Standard_EXPORT void SetTolMass (const Standard_Real theTol)
 Modifier. More...
 
Standard_EXPORT Standard_Real TolMass () const
 Selector. More...
 
Standard_EXPORT void SetTolCG (const Standard_Real theTol)
 Modifier. More...
 
Standard_EXPORT Standard_Real TolCG () const
 Selector. More...
 
virtual Standard_EXPORT void Perform ()
 Perform the algorithm. More...
 
Standard_EXPORT Standard_Boolean IsFound () const
 Returns state of the search. More...
 
virtual Standard_EXPORT void CheckData ()
 Checks data. More...
 
virtual Standard_EXPORT void Clear ()
 Clear the internal content. More...
 
Standard_EXPORT const
GEOMAlgo_DataMapOfShapeMapOfShape
ShapesIn () const
 Returns the map of shapes IN. More...
 
Standard_EXPORT const
GEOMAlgo_DataMapOfShapeMapOfShape
ShapesOn () const
 Returns the map of shapes ON. More...
 
Standard_EXPORT const
TopoDS_Shape & 
Result ()
 Returns the result that includes parts of the whole and whole from parts. More...
 
- Public Member Functions inherited from GEOMAlgo_GluerAlgo
Standard_EXPORT GEOMAlgo_GluerAlgo ()
 
virtual Standard_EXPORT ~GEOMAlgo_GluerAlgo ()
 
virtual Standard_EXPORT void SetArgument (const TopoDS_Shape &theShape)
 
Standard_EXPORT const
TopoDS_Shape & 
Argument () const
 
Standard_EXPORT void SetTolerance (const Standard_Real aT)
 
Standard_EXPORT Standard_Real Tolerance () const
 
Standard_EXPORT void SetCheckGeometry (const Standard_Boolean aFlag)
 
Standard_EXPORT Standard_Boolean CheckGeometry () const
 
Standard_EXPORT void SetContext (const Handle(BOPInt_Context)&)
 
Standard_EXPORT const Handle (BOPInt_Context)&Context()
 
Standard_EXPORT const
TopTools_DataMapOfShapeListOfShape & 
Images () const
 
Standard_EXPORT const
TopTools_DataMapOfShapeShape & 
Origins () const
 
- Public Member Functions inherited from GEOMAlgo_Algo
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). More...
 

Protected Member Functions

Standard_EXPORT void Intersect ()
 
Standard_EXPORT void PerformVV ()
 
Standard_EXPORT void PerformVE ()
 
Standard_EXPORT void PerformEE ()
 
void PerformEE (const TopoDS_Shape &theE1, const TopoDS_Shape &theE2)
 
Standard_EXPORT void PerformVF ()
 
Standard_EXPORT void PerformEF ()
 
Standard_EXPORT void PerformFF ()
 
void PerformFF (const TopoDS_Shape &theF1, const TopoDS_Shape &theF2)
 
Standard_EXPORT void FillEdgesOn (const TopoDS_Shape &theShape)
 
Standard_EXPORT void FillFacesOn (const TopoDS_Shape &theShape)
 
Standard_EXPORT void FillSolidsOn (const TopoDS_Shape &theShape)
 
Standard_EXPORT void PerformZF ()
 
Standard_EXPORT void PerformZZ ()
 
void PerformZZ (const TopoDS_Shape &theSo1, const TopoDS_Shape &theSo2)
 
Standard_EXPORT void FillImages (const TopoDS_Shape &theShape, const Standard_Boolean IsWhere)
 
void FillImgSimple (const TopoDS_Shape &theShape, const TopAbs_ShapeEnum theSubShapeType, const Standard_Boolean IsWhere)
 
void FillImgComplex (const TopoDS_Shape &theShape, const Standard_Boolean IsWhere)
 
void FillImgComplex (const TopoDS_Shape &theShape, const TopAbs_ShapeEnum theSubShapeType, const Standard_Boolean IsWhere)
 
Standard_EXPORT void CheckGProps ()
 
Standard_EXPORT void FillShapesIn (const TopoDS_Shape &theS1, const TopoDS_Shape &theS2)
 
Standard_EXPORT void FillShapesOn (const TopoDS_Shape &theS1, const TopoDS_Shape &theS2)
 
Standard_EXPORT Standard_Boolean CheckCoincidence (const TopoDS_Shape &theS1, const TopoDS_Shape &theS2)
 
Standard_EXPORT Standard_Integer CheckGProps (const TopoDS_Shape &theS)
 
Standard_Boolean CompareGProps (const TopoDS_Shape &theShape1, const TopTools_ListOfShape &theListShape2) const
 
Standard_EXPORT void UpdateChecked (const TopoDS_Shape &theS1, const Standard_Integer theFlag)
 
- Protected Member Functions inherited from GEOMAlgo_GluerAlgo
 Handle (BOPInt_Context) myContext
 
- Protected Member Functions inherited from GEOMAlgo_Algo
Standard_EXPORT GEOMAlgo_Algo ()
 
virtual Standard_EXPORT ~GEOMAlgo_Algo ()
 
virtual Standard_EXPORT void CheckResult ()
 

Protected Attributes

TopoDS_Shape myShapeWhere
 
GEOMAlgo_GetInPlaceIterator myIterator
 
GEOMAlgo_DataMapOfShapeMapOfShape myShapesIn
 
GEOMAlgo_DataMapOfShapeMapOfShape myShapesOn
 
TopTools_DataMapOfShapeShape myShapesInclusive
 
Standard_Real myTolMass
 
Standard_Real myTolCG
 
Standard_Boolean myFound
 
GEOMAlgo_DataMapOfShapePnt myMapShapePnt
 
TopTools_DataMapOfShapeInteger myChecked
 
TopoDS_Shape myResult
 
- Protected Attributes inherited from GEOMAlgo_GluerAlgo
TopoDS_Shape myArgument
 
Standard_Real myTolerance
 
Standard_Boolean myCheckGeometry
 
TopTools_DataMapOfShapeListOfShape myImages
 
TopTools_DataMapOfShapeShape myOrigins
 
- Protected Attributes inherited from GEOMAlgo_Algo
Standard_Integer myErrorStatus
 
Standard_Integer myWarningStatus
 
Standard_Boolean myComputeInternalShapes
 

Detailed Description

The algorithm provides the search the argument [What] in the shape [Where].

Constructor & Destructor Documentation

GEOMAlgo_GetInPlace::GEOMAlgo_GetInPlace ( )
GEOMAlgo_GetInPlace::~GEOMAlgo_GetInPlace ( )
virtual

Member Function Documentation

Standard_Boolean GEOMAlgo_GetInPlace::CheckCoincidence ( const TopoDS_Shape &  theS1,
const TopoDS_Shape &  theS2 
)
protected
void GEOMAlgo_GetInPlace::CheckData ( )
virtual
void GEOMAlgo_GetInPlace::CheckGProps ( )
protected
Standard_Integer GEOMAlgo_GetInPlace::CheckGProps ( const TopoDS_Shape &  theS)
protected
Standard_Boolean GEOMAlgo_GetInPlace::CompareGProps ( const TopoDS_Shape &  theShape1,
const TopTools_ListOfShape &  theListShape2 
) const
protected
void GEOMAlgo_GetInPlace::FillEdgesOn ( const TopoDS_Shape &  theShape)
protected

References FillShapesOn(), and myShapesOn.

void GEOMAlgo_GetInPlace::FillFacesOn ( const TopoDS_Shape &  theShape)
protected
void GEOMAlgo_GetInPlace::FillImages ( const TopoDS_Shape &  theShape,
const Standard_Boolean  IsWhere 
)
protected
void GEOMAlgo_GetInPlace::FillImgComplex ( const TopoDS_Shape &  theShape,
const Standard_Boolean  IsWhere 
)
protected
void GEOMAlgo_GetInPlace::FillImgComplex ( const TopoDS_Shape &  theShape,
const TopAbs_ShapeEnum  theSubShapeType,
const Standard_Boolean  IsWhere 
)
protected
void GEOMAlgo_GetInPlace::FillImgSimple ( const TopoDS_Shape &  theShape,
const TopAbs_ShapeEnum  theSubShapeType,
const Standard_Boolean  IsWhere 
)
protected
void GEOMAlgo_GetInPlace::FillShapesIn ( const TopoDS_Shape &  theS1,
const TopoDS_Shape &  theS2 
)
protected

References myShapesIn.

void GEOMAlgo_GetInPlace::FillShapesOn ( const TopoDS_Shape &  theS1,
const TopoDS_Shape &  theS2 
)
protected

References myShapesOn.

void GEOMAlgo_GetInPlace::FillSolidsOn ( const TopoDS_Shape &  theShape)
protected
Standard_Boolean GEOMAlgo_GetInPlace::IsFound ( ) const
Returns
Standard_True if the whole argument is found.

References myFound.

void GEOMAlgo_GetInPlace::PerformEE ( const TopoDS_Shape &  theE1,
const TopoDS_Shape &  theE2 
)
protected
void GEOMAlgo_GetInPlace::PerformFF ( const TopoDS_Shape &  theF1,
const TopoDS_Shape &  theF2 
)
protected
void GEOMAlgo_GetInPlace::PerformZZ ( const TopoDS_Shape &  theSo1,
const TopoDS_Shape &  theSo2 
)
protected
const TopoDS_Shape & GEOMAlgo_GetInPlace::Result ( )

The Result is the parts (taken from myShapeWhere) that correspond to myArgument (the whole one or its part). To check if the whole myArgument is found in myShapeWhere it is possible to use the method IsFound.

The Result is a compound.

Returns
  • the compound of the parts from myShapeWhere that correspond to the myArgument if success.
  • NULL shape otherwise

References GEOMAlgo_GluerAlgo::myArgument, GEOMAlgo_GluerAlgo::myImages, and myResult.

void GEOMAlgo_GetInPlace::SetShapeWhere ( const TopoDS_Shape &  theShape)
virtual

Sets the shape where the search is intended.

Parameters
theShapeThe shape where the search is intended.

References myShapeWhere.

void GEOMAlgo_GetInPlace::SetTolCG ( const Standard_Real  theTol)

Sets the tolerance of center of gravily.

Parameters
theTolThe value tolerance of center of gravily.

References myTolCG.

void GEOMAlgo_GetInPlace::SetTolMass ( const Standard_Real  theTol)

Sets the tolerance of mass.

Parameters
theTolThe value tolerance of mass.

References myTolMass.

const GEOMAlgo_DataMapOfShapeMapOfShape & GEOMAlgo_GetInPlace::ShapesIn ( ) const
Returns
Returns the map of shapes IN. The Key - the (sub)shape of the argument [What]. The Item- the (sub)shapes of the shape [Where] that have the state IN in respect of [What].

References myShapesIn.

const GEOMAlgo_DataMapOfShapeMapOfShape & GEOMAlgo_GetInPlace::ShapesOn ( ) const
Returns
Returns the map of shapes ON. The Key - the (sub)shape of the argument [What]. The Item- the (sub)shapes of the shape [Where] that have the state ON in respect of [What].

References myShapesOn.

const TopoDS_Shape & GEOMAlgo_GetInPlace::ShapeWhere ( ) const

Returns the shape where the search is intended.

Returns
The shape where the search is intended.

References myShapeWhere.

Standard_Real GEOMAlgo_GetInPlace::TolCG ( ) const

Returns the tolerance of center of gravily.

Returns
The value tolerance of center of gravily.

References myTolCG.

Standard_Real GEOMAlgo_GetInPlace::TolMass ( ) const

Returns the value tolerance of mass.

Returns
The value tolerance of mass.

References myTolMass.

void GEOMAlgo_GetInPlace::UpdateChecked ( const TopoDS_Shape &  theS1,
const Standard_Integer  theFlag 
)
protected

References myChecked.

Member Data Documentation

TopTools_DataMapOfShapeInteger GEOMAlgo_GetInPlace::myChecked
protected
Standard_Boolean GEOMAlgo_GetInPlace::myFound
protected
GEOMAlgo_GetInPlaceIterator GEOMAlgo_GetInPlace::myIterator
protected
GEOMAlgo_DataMapOfShapePnt GEOMAlgo_GetInPlace::myMapShapePnt
protected
TopoDS_Shape GEOMAlgo_GetInPlace::myResult
protected
GEOMAlgo_DataMapOfShapeMapOfShape GEOMAlgo_GetInPlace::myShapesIn
protected
TopTools_DataMapOfShapeShape GEOMAlgo_GetInPlace::myShapesInclusive
protected
GEOMAlgo_DataMapOfShapeMapOfShape GEOMAlgo_GetInPlace::myShapesOn
protected
TopoDS_Shape GEOMAlgo_GetInPlace::myShapeWhere
protected
Standard_Real GEOMAlgo_GetInPlace::myTolCG
protected
Standard_Real GEOMAlgo_GetInPlace::myTolMass
protected

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