The implementation of Get In Place Algorithm. More...
#include <GEOMAlgo_GetInPlace.hxx>
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 |
The algorithm provides the search the argument [What] in the shape [Where].
GEOMAlgo_GetInPlace::GEOMAlgo_GetInPlace | ( | ) |
References GEOMAlgo_GluerAlgo::myCheckGeometry, myFound, myTolCG, GEOMAlgo_GluerAlgo::myTolerance, and myTolMass.
|
virtual |
|
protected |
References Curve(), iErr, GEOMAlgo_Algo::myErrorStatus, myMapShapePnt, GEOMAlgo_GluerAlgo::myTolerance, PntInEdge(), PntInFace(), and PntInSolid().
|
virtual |
Reimplemented from GEOMAlgo_Algo.
References GEOMAlgo_GluerAlgo::myArgument, GEOMAlgo_Algo::myErrorStatus, myShapeWhere, and GEOMAlgo_Algo::myWarningStatus.
|
protected |
References GEOMAlgo_GluerAlgo::myArgument, and myFound.
|
protected |
References CheckGProps(), CompareGProps(), myFound, GEOMAlgo_GluerAlgo::myImages, myShapesInclusive, and UpdateChecked().
|
virtual |
Reimplemented from GEOMAlgo_GluerAlgo.
References GEOMAlgo_GetInPlaceIterator::Clear(), GEOMAlgo_GluerAlgo::Clear(), myChecked, GEOMAlgo_Algo::myErrorStatus, myIterator, myMapShapePnt, myResult, myShapesIn, myShapesInclusive, myShapesOn, and GEOMAlgo_Algo::myWarningStatus.
|
protected |
References aResult, Dimension(), and PointProperties().
|
protected |
References FillShapesOn(), and myShapesOn.
|
protected |
References FillShapesOn(), myShapesIn, and myShapesOn.
|
protected |
|
protected |
References anIter(), GEOMAlgo_GluerAlgo::myImages, and myShapesInclusive.
|
protected |
|
protected |
|
protected |
References myShapesIn.
|
protected |
References myShapesOn.
|
protected |
References FillShapesOn(), myShapesIn, and myShapesOn.
|
protected |
References GEOMAlgo_GetInPlaceIterator::AppendPair(), GEOMAlgo_BoxBndTreeSelector::Clear(), GEOMAlgo_GetInPlaceIterator::Clear(), GEOMAlgo_BoxBndTreeSelector::Indices(), MapBRepShapes(), GEOMAlgo_GluerAlgo::myArgument, GEOMAlgo_Algo::myErrorStatus, myIterator, myShapeWhere, GEOMAlgo_GluerAlgo::myTolerance, GEOMAlgo_Algo::myWarningStatus, GEOMAlgo_BoxBndTreeSelector::SetBox(), GEOMAlgo_CoupleOfShapes::SetShape1(), and GEOMAlgo_CoupleOfShapes::SetShape2().
Standard_Boolean GEOMAlgo_GetInPlace::IsFound | ( | ) | const |
References myFound.
|
virtual |
Implements GEOMAlgo_Algo.
References CheckData(), CheckGProps(), Clear(), FillEdgesOn(), FillFacesOn(), FillImages(), FillSolidsOn(), Intersect(), GEOMAlgo_GluerAlgo::myArgument, GEOMAlgo_Algo::myErrorStatus, myFound, GEOMAlgo_GluerAlgo::myImages, myShapeWhere, GEOMAlgo_Algo::myWarningStatus, GEOMAlgo_GluerAlgo::Perform(), PerformEE(), PerformEF(), PerformFF(), PerformVE(), PerformVF(), PerformVV(), PerformZF(), and PerformZZ().
|
protected |
References GEOMAlgo_GetInPlaceIterator::Initialize(), GEOMAlgo_GetInPlaceIterator::More(), GEOMAlgo_Algo::myErrorStatus, myIterator, GEOMAlgo_Algo::myWarningStatus, GEOMAlgo_GetInPlaceIterator::Next(), GEOMAlgo_CoupleOfShapes::Shape1(), GEOMAlgo_CoupleOfShapes::Shape2(), and GEOMAlgo_GetInPlaceIterator::Value().
|
protected |
References CheckCoincidence(), FillShapesIn(), GEOMAlgo_Algo::myErrorStatus, myShapesIn, and myShapesOn.
|
protected |
References CheckCoincidence(), FillShapesIn(), GEOMAlgo_GetInPlaceIterator::Initialize(), GEOMAlgo_GetInPlaceIterator::More(), GEOMAlgo_Algo::myErrorStatus, myIterator, myShapesIn, myShapesOn, GEOMAlgo_Algo::myWarningStatus, GEOMAlgo_GetInPlaceIterator::Next(), GEOMAlgo_CoupleOfShapes::Shape1(), GEOMAlgo_CoupleOfShapes::Shape2(), and GEOMAlgo_GetInPlaceIterator::Value().
|
protected |
References GEOMAlgo_GetInPlaceIterator::Initialize(), GEOMAlgo_GetInPlaceIterator::More(), GEOMAlgo_Algo::myErrorStatus, myIterator, GEOMAlgo_Algo::myWarningStatus, GEOMAlgo_GetInPlaceIterator::Next(), GEOMAlgo_CoupleOfShapes::Shape1(), GEOMAlgo_CoupleOfShapes::Shape2(), and GEOMAlgo_GetInPlaceIterator::Value().
|
protected |
References CheckCoincidence(), FillShapesIn(), MapBRepShapes(), GEOMAlgo_Algo::myErrorStatus, myShapesIn, and myShapesOn.
|
protected |
References CheckCoincidence(), FillShapesIn(), GEOMAlgo_GetInPlaceIterator::Initialize(), GEOMAlgo_GetInPlaceIterator::More(), GEOMAlgo_Algo::myErrorStatus, myIterator, myShapesOn, GEOMAlgo_Algo::myWarningStatus, GEOMAlgo_GetInPlaceIterator::Next(), GEOMAlgo_CoupleOfShapes::Shape1(), GEOMAlgo_CoupleOfShapes::Shape2(), and GEOMAlgo_GetInPlaceIterator::Value().
|
protected |
References CheckCoincidence(), FillShapesIn(), GEOMAlgo_GetInPlaceIterator::Initialize(), GEOMAlgo_GetInPlaceIterator::More(), GEOMAlgo_Algo::myErrorStatus, myIterator, myShapesIn, myShapesOn, GEOMAlgo_Algo::myWarningStatus, GEOMAlgo_GetInPlaceIterator::Next(), GEOMAlgo_CoupleOfShapes::Shape1(), GEOMAlgo_CoupleOfShapes::Shape2(), and GEOMAlgo_GetInPlaceIterator::Value().
|
protected |
References FillShapesOn(), GEOMAlgo_GetInPlaceIterator::Initialize(), GEOMAlgo_GetInPlaceIterator::More(), GEOMAlgo_Algo::myErrorStatus, myIterator, GEOMAlgo_Algo::myWarningStatus, GEOMAlgo_GetInPlaceIterator::Next(), GEOMAlgo_CoupleOfShapes::Shape1(), GEOMAlgo_CoupleOfShapes::Shape2(), and GEOMAlgo_GetInPlaceIterator::Value().
|
protected |
References CheckCoincidence(), FillShapesIn(), GEOMAlgo_GetInPlaceIterator::Initialize(), GEOMAlgo_GetInPlaceIterator::More(), GEOMAlgo_Algo::myErrorStatus, myIterator, myShapesOn, GEOMAlgo_Algo::myWarningStatus, GEOMAlgo_GetInPlaceIterator::Next(), GEOMAlgo_CoupleOfShapes::Shape1(), GEOMAlgo_CoupleOfShapes::Shape2(), and GEOMAlgo_GetInPlaceIterator::Value().
|
protected |
References GEOMAlgo_GetInPlaceIterator::Initialize(), GEOMAlgo_GetInPlaceIterator::More(), GEOMAlgo_Algo::myErrorStatus, myIterator, GEOMAlgo_Algo::myWarningStatus, GEOMAlgo_GetInPlaceIterator::Next(), GEOMAlgo_CoupleOfShapes::Shape1(), GEOMAlgo_CoupleOfShapes::Shape2(), and GEOMAlgo_GetInPlaceIterator::Value().
|
protected |
References CheckCoincidence(), FillShapesIn(), GEOMAlgo_Algo::myErrorStatus, myShapesIn, and myShapesOn.
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.
References GEOMAlgo_GluerAlgo::myArgument, GEOMAlgo_GluerAlgo::myImages, and myResult.
|
virtual |
Sets the shape where the search is intended.
theShape | The shape where the search is intended. |
References myShapeWhere.
void GEOMAlgo_GetInPlace::SetTolCG | ( | const Standard_Real | theTol | ) |
Sets the tolerance of center of gravily.
theTol | The value tolerance of center of gravily. |
References myTolCG.
void GEOMAlgo_GetInPlace::SetTolMass | ( | const Standard_Real | theTol | ) |
const GEOMAlgo_DataMapOfShapeMapOfShape & GEOMAlgo_GetInPlace::ShapesIn | ( | ) | const |
References myShapesIn.
const GEOMAlgo_DataMapOfShapeMapOfShape & GEOMAlgo_GetInPlace::ShapesOn | ( | ) | const |
References myShapesOn.
const TopoDS_Shape & GEOMAlgo_GetInPlace::ShapeWhere | ( | ) | const |
Returns the shape where the search is intended.
References myShapeWhere.
Standard_Real GEOMAlgo_GetInPlace::TolCG | ( | ) | const |
Returns the tolerance of center of gravily.
References myTolCG.
Standard_Real GEOMAlgo_GetInPlace::TolMass | ( | ) | const |
|
protected |
References myChecked.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |