-// Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
// File: GEOMAlgo_GetInPlace.hxx
-// Created:
+// Created:
// Author: Peter KURNEV
#ifndef _GEOMAlgo_GetInPlace_HeaderFile
//=======================================================================
/**
- * The implementation of iterator of intersected shapes
+ * The implementation of iterator of intersected shapes
* for Get In Place Algorithm.
* The intersection is in terms of 3D bounding boxes.
*/
//=======================================================================
//class : GEOMAlgo_GetInPlaceIterator
-//purpose :
+//purpose :
//=======================================================================
class GEOMAlgo_GetInPlaceIterator {
public:
*/
//Standard_EXPORT
GEOMAlgo_GetInPlaceIterator();
-
+
/**
* Destructor.
*/
//Standard_EXPORT
virtual ~GEOMAlgo_GetInPlaceIterator();
-
+
/**
* Clear the internal content.
*/
//Standard_EXPORT
void Clear() ;
-
+
/**
* Append the pair of intersected shapes.
* @param theCS
*/
//Standard_EXPORT
void AppendPair(const NMTTools_CoupleOfShape& theCS) ;
-
+
/**
* Initialize the iterator.
* @param theT1
* @param theT2
* The type of (sub)shape Where.
*/
- //Standard_EXPORT
+ //Standard_EXPORT
void Initialize(const TopAbs_ShapeEnum theT1,
const TopAbs_ShapeEnum theT2) ;
/**
* @return
* Standard_True if there are pairs to iterare.
*/
- //Standard_EXPORT
+ //Standard_EXPORT
Standard_Boolean More() const;
-
+
/**
* Shift to the next pair.
*/
//Standard_EXPORT
void Next() ;
-
+
/**
* Returns the pair of intersected shapes.
- * @return
+ * @return
* The pair of intersected shapes.
*/
//Standard_EXPORT
NMTTools_ListOfCoupleOfShape myLists[10];
NMTTools_ListOfCoupleOfShape myEmptyList;
NMTTools_ListIteratorOfListOfCoupleOfShape myIterator;
-
+
private:
};
//=======================================================================
/**
* The implementation of Get In Place Algorithm.
- * The algorithm provides the search the argument [What]
- * in the shape [Where].
+ * The algorithm provides the search the argument [What]
+ * in the shape [Where].
*/
//=======================================================================
//class : GEOMAlgo_GetInPlace
-//purpose :
+//purpose :
//=======================================================================
class GEOMAlgo_GetInPlace : public GEOMAlgo_GluerAlgo,
public GEOMAlgo_Algo
virtual ~GEOMAlgo_GetInPlace();
/**
* Modifier. Sets the shape where the search is intended.
- * @param theShape
+ * @param theShape
* The shape where the search is intended.
*/
Standard_EXPORT
virtual void SetShapeWhere(const TopoDS_Shape& theShape) ;
-
+
/**
* Selector. Returns the shape where the search is intended.
- * @return
+ * @return
* The shape where the search is intended.
*/
Standard_EXPORT
const TopoDS_Shape& ShapeWhere() const;
-
+
/**
* Modifier. Sets the tolerance of mass.
- * @param theTol
+ * @param theTol
* The value tolerance of mass.
*/
Standard_EXPORT
void SetTolMass(const Standard_Real theTol) ;
-
+
/**
* Selector. Returns the value tolerance of mass.
- * @return
+ * @return
* The value tolerance of mass.
*/
Standard_EXPORT
Standard_Real TolMass() const;
-
+
/**
* Modifier. Sets the tolerance of center of gravily.
- * @param theTol
+ * @param theTol
* The value tolerance of center of gravily.
*/
Standard_EXPORT
void SetTolCG(const Standard_Real theTol) ;
-
+
/**
* Selector. Returns the tolerance of center of gravily.
- * @return
+ * @return
* The value tolerance of center of gravily.
*/
Standard_EXPORT
Standard_Real TolCG() const;
-
+
/**
* Perform the algorithm.
*/
Standard_EXPORT
virtual void Perform() ;
-
+
/**
* Returns state of the search.
- * @return
+ * @return
* Standard_True if the argument is found.
*/
Standard_EXPORT
Standard_Boolean IsFound() const;
-
+
/**
* Checks data
*/
- Standard_EXPORT
+ Standard_EXPORT
virtual void CheckData() ;
-
+
/**
* Clear the internal content.
*/
Standard_EXPORT
virtual void Clear() ;
-
+
/**
* Returns the map of shapes IN.
- * @return
+ * @return
** 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
*/
Standard_EXPORT
const GEOMAlgo_DataMapOfShapeMapOfShape& ShapesIn() const;
-
+
/**
* Returns the map of shapes ON.
- * @return
+ * @return
* 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
protected:
Standard_EXPORT
void Intersect() ;
-
- Standard_EXPORT
+
+ Standard_EXPORT
void PerformVV() ;
-
- Standard_EXPORT
+
+ Standard_EXPORT
void PerformVE() ;
-
- Standard_EXPORT
+
+ Standard_EXPORT
void PerformEE() ;
-
- Standard_EXPORT
+
+ Standard_EXPORT
void PerformVF() ;
-
- Standard_EXPORT
+
+ Standard_EXPORT
void PerformEF() ;
-
- Standard_EXPORT
+
+ Standard_EXPORT
void PerformFF() ;
-
- Standard_EXPORT
+
+ Standard_EXPORT
void FillEdgesOn() ;
-
- Standard_EXPORT
+
+ Standard_EXPORT
void FillFacesOn() ;
-
- Standard_EXPORT
+
+ Standard_EXPORT
void FillSolidsOn() ;
-
- Standard_EXPORT
+
+ Standard_EXPORT
void PerformZF() ;
-
- Standard_EXPORT
+
+ Standard_EXPORT
void PerformZZ() ;
-
- Standard_EXPORT
+
+ Standard_EXPORT
void FillImages() ;
-
- Standard_EXPORT
+
+ Standard_EXPORT
void FillImagesCompound(const TopoDS_Shape& theS) ;
-
- Standard_EXPORT
+
+ Standard_EXPORT
void CheckGProps() ;
-
- Standard_EXPORT
+
+ Standard_EXPORT
void CheckGProps(const TopoDS_Shape& theS) ;
-
- Standard_EXPORT
+
+ Standard_EXPORT
void FillShapesIn(const TopoDS_Shape& theS1,
const TopoDS_Shape& theS2) ;
-
- Standard_EXPORT
+
+ Standard_EXPORT
void FillShapesOn(const TopoDS_Shape& theS1,
const TopoDS_Shape& theS2) ;
-
- Standard_EXPORT
+
+ Standard_EXPORT
Standard_Boolean CheckCoincidence(const TopoDS_Shape& theS1,
const TopoDS_Shape& theS2);