0031456: Visualization - move out Dimensions and Relations from package AIS to PrsDims
[occt.git] / src / PrsDim / PrsDim_MidPointRelation.hxx
similarity index 79%
rename from src/AIS/AIS_MidPointRelation.hxx
rename to src/PrsDim/PrsDim_MidPointRelation.hxx
index ca13b55..a34a441 100644 (file)
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-#ifndef _AIS_MidPointRelation_HeaderFile
-#define _AIS_MidPointRelation_HeaderFile
+#ifndef _PrsDim_MidPointRelation_HeaderFile
+#define _PrsDim_MidPointRelation_HeaderFile
 
-#include <AIS_Relation.hxx>
+#include <PrsDim_Relation.hxx>
 
 class Geom_Plane;
 class gp_Lin;
@@ -24,21 +24,21 @@ class gp_Pnt;
 class gp_Circ;
 class gp_Elips;
 
-DEFINE_STANDARD_HANDLE(AIS_MidPointRelation, AIS_Relation)
+DEFINE_STANDARD_HANDLE(PrsDim_MidPointRelation, PrsDim_Relation)
 
 //! presentation of equal distance to point myMidPoint
-class AIS_MidPointRelation : public AIS_Relation
+class PrsDim_MidPointRelation : public PrsDim_Relation
 {
-  DEFINE_STANDARD_RTTIEXT(AIS_MidPointRelation, AIS_Relation)
+  DEFINE_STANDARD_RTTIEXT(PrsDim_MidPointRelation, PrsDim_Relation)
 public:
 
-  Standard_EXPORT AIS_MidPointRelation(const TopoDS_Shape& aSymmTool, const TopoDS_Shape& FirstShape, const TopoDS_Shape& SecondShape, const Handle(Geom_Plane)& aPlane);
-  
-    virtual Standard_Boolean IsMovable() const Standard_OVERRIDE;
-  
-    void SetTool (const TopoDS_Shape& aMidPointTool);
-  
-    const TopoDS_Shape& GetTool() const;
+  Standard_EXPORT PrsDim_MidPointRelation(const TopoDS_Shape& aSymmTool, const TopoDS_Shape& FirstShape, const TopoDS_Shape& SecondShape, const Handle(Geom_Plane)& aPlane);
+
+  virtual Standard_Boolean IsMovable() const Standard_OVERRIDE { return Standard_True; }
+
+  void SetTool (const TopoDS_Shape& aMidPointTool) { myTool = aMidPointTool; }
+
+  const TopoDS_Shape& GetTool() const { return myTool; }
 
 private:
 
@@ -72,6 +72,8 @@ private:
   //! .______. myFirstPnt
   Standard_EXPORT void ComputePointsOnElips (const gp_Elips& anEll, const gp_Pnt& pnt1, const gp_Pnt& pnt2, const Standard_Boolean first);
 
+private:
+
   TopoDS_Shape myTool;
   gp_Pnt myMidPoint;
   gp_Pnt myFAttach;
@@ -83,6 +85,4 @@ private:
 
 };
 
-#include <AIS_MidPointRelation.lxx>
-
 #endif // _AIS_MidPointRelation_HeaderFile