Version: 9.12.0
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_DataMapOfShapeMapOfShapeShapesIn () const
 Returns the map of shapes IN. More...
 
Standard_EXPORT const GEOMAlgo_DataMapOfShapeMapOfShapeShapesOn () 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(IntTools_Context)&)
 
Standard_EXPORT const Handle (IntTools_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 (IntTools_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()

GEOMAlgo_GetInPlace::~GEOMAlgo_GetInPlace ( )
virtual

Member Function Documentation

◆ CheckCoincidence()

Standard_Boolean GEOMAlgo_GetInPlace::CheckCoincidence ( const TopoDS_Shape &  theS1,
const TopoDS_Shape &  theS2 
)
protected

◆ CheckData()

void GEOMAlgo_GetInPlace::CheckData ( )
virtual

◆ CheckGProps() [1/2]

void GEOMAlgo_GetInPlace::CheckGProps ( )
protected

◆ CheckGProps() [2/2]

Standard_Integer GEOMAlgo_GetInPlace::CheckGProps ( const TopoDS_Shape &  theS)
protected

◆ Clear()

◆ CompareGProps()

Standard_Boolean GEOMAlgo_GetInPlace::CompareGProps ( const TopoDS_Shape &  theShape1,
const TopTools_ListOfShape &  theListShape2 
) const
protected

◆ FillEdgesOn()

void GEOMAlgo_GetInPlace::FillEdgesOn ( const TopoDS_Shape &  theShape)
protected

References FillShapesOn(), and myShapesOn.

◆ FillFacesOn()

void GEOMAlgo_GetInPlace::FillFacesOn ( const TopoDS_Shape &  theShape)
protected

◆ FillImages()

void GEOMAlgo_GetInPlace::FillImages ( const TopoDS_Shape &  theShape,
const Standard_Boolean  IsWhere 
)
protected

◆ FillImgComplex() [1/2]

void GEOMAlgo_GetInPlace::FillImgComplex ( const TopoDS_Shape &  theShape,
const Standard_Boolean  IsWhere 
)
protected

◆ FillImgComplex() [2/2]

void GEOMAlgo_GetInPlace::FillImgComplex ( const TopoDS_Shape &  theShape,
const TopAbs_ShapeEnum  theSubShapeType,
const Standard_Boolean  IsWhere 
)
protected

References FillImgComplex().

◆ FillImgSimple()

void GEOMAlgo_GetInPlace::FillImgSimple ( const TopoDS_Shape &  theShape,
const TopAbs_ShapeEnum  theSubShapeType,
const Standard_Boolean  IsWhere 
)
protected

◆ FillShapesIn()

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

References myShapesIn.

◆ FillShapesOn()

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

References myShapesOn.

◆ FillSolidsOn()

void GEOMAlgo_GetInPlace::FillSolidsOn ( const TopoDS_Shape &  theShape)
protected

◆ Intersect()

◆ IsFound()

Standard_Boolean GEOMAlgo_GetInPlace::IsFound ( ) const
Returns
Standard_True if the whole argument is found.

References myFound.

◆ Perform()

◆ PerformEE() [1/2]

◆ PerformEE() [2/2]

void GEOMAlgo_GetInPlace::PerformEE ( const TopoDS_Shape &  theE1,
const TopoDS_Shape &  theE2 
)
protected

◆ PerformEF()

◆ PerformFF() [1/2]

◆ PerformFF() [2/2]

void GEOMAlgo_GetInPlace::PerformFF ( const TopoDS_Shape &  theF1,
const TopoDS_Shape &  theF2 
)
protected

◆ PerformVE()

◆ PerformVF()

◆ PerformVV()

◆ PerformZF()

◆ PerformZZ() [1/2]

◆ PerformZZ() [2/2]

void GEOMAlgo_GetInPlace::PerformZZ ( const TopoDS_Shape &  theSo1,
const TopoDS_Shape &  theSo2 
)
protected

◆ Result()

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.

◆ SetShapeWhere()

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.

◆ SetTolCG()

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.

◆ SetTolMass()

void GEOMAlgo_GetInPlace::SetTolMass ( const Standard_Real  theTol)

Sets the tolerance of mass.

Parameters
theTolThe value tolerance of mass.

References myTolMass.

◆ ShapesIn()

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.

◆ ShapesOn()

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.

◆ ShapeWhere()

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.

◆ TolCG()

Standard_Real GEOMAlgo_GetInPlace::TolCG ( ) const

Returns the tolerance of center of gravily.

Returns
The value tolerance of center of gravily.

References myTolCG.

◆ TolMass()

Standard_Real GEOMAlgo_GetInPlace::TolMass ( ) const

Returns the value tolerance of mass.

Returns
The value tolerance of mass.

References myTolMass.

◆ UpdateChecked()

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

References myChecked.

Member Data Documentation

◆ myChecked

TopTools_DataMapOfShapeInteger GEOMAlgo_GetInPlace::myChecked
protected

◆ myFound

Standard_Boolean GEOMAlgo_GetInPlace::myFound
protected

◆ myIterator

GEOMAlgo_GetInPlaceIterator GEOMAlgo_GetInPlace::myIterator
protected

◆ myMapShapePnt

GEOMAlgo_DataMapOfShapePnt GEOMAlgo_GetInPlace::myMapShapePnt
protected

◆ myResult

TopoDS_Shape GEOMAlgo_GetInPlace::myResult
protected

◆ myShapesIn

GEOMAlgo_DataMapOfShapeMapOfShape GEOMAlgo_GetInPlace::myShapesIn
protected

◆ myShapesInclusive

TopTools_DataMapOfShapeShape GEOMAlgo_GetInPlace::myShapesInclusive
protected

◆ myShapesOn

GEOMAlgo_DataMapOfShapeMapOfShape GEOMAlgo_GetInPlace::myShapesOn
protected

◆ myShapeWhere

TopoDS_Shape GEOMAlgo_GetInPlace::myShapeWhere
protected

◆ myTolCG

Standard_Real GEOMAlgo_GetInPlace::myTolCG
protected

◆ myTolMass

Standard_Real GEOMAlgo_GetInPlace::myTolMass
protected

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