0031456: Visualization - move out Dimensions and Relations from package AIS to PrsDims
[occt.git] / src / PrsDim / PrsDim_DimensionOwner.hxx
similarity index 80%
rename from src/AIS/AIS_DimensionOwner.hxx
rename to src/PrsDim/PrsDim_DimensionOwner.hxx
index 1049791..5ce4a42 100644 (file)
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-#ifndef _AIS_DimensionOwner_HeaderFile
-#define _AIS_DimensionOwner_HeaderFile
+#ifndef _PrsDim_DimensionOwner_HeaderFile
+#define _PrsDim_DimensionOwner_HeaderFile
 
 #include <Standard.hxx>
 #include <Standard_Type.hxx>
 
-#include <AIS_DimensionSelectionMode.hxx>
+#include <PrsDim_DimensionSelectionMode.hxx>
 #include <SelectMgr_EntityOwner.hxx>
 #include <Standard_Integer.hxx>
 #include <PrsMgr_PresentationManager3d.hxx>
@@ -30,7 +30,7 @@
 class SelectMgr_SelectableObject;
 class PrsMgr_PresentationManager;
 
-DEFINE_STANDARD_HANDLE(AIS_DimensionOwner, SelectMgr_EntityOwner)
+DEFINE_STANDARD_HANDLE(PrsDim_DimensionOwner, SelectMgr_EntityOwner)
 
 //! The owner is the entity which makes it possible to link
 //! the sensitive primitives and the reference shapes that
@@ -43,16 +43,16 @@ DEFINE_STANDARD_HANDLE(AIS_DimensionOwner, SelectMgr_EntityOwner)
 //! higher priority to the one compared to the other. An
 //! edge, could have priority 5, for example, and a face,
 //! priority 4. The default priority is 5.
-class AIS_DimensionOwner : public SelectMgr_EntityOwner
+class PrsDim_DimensionOwner : public SelectMgr_EntityOwner
 {
-  DEFINE_STANDARD_RTTIEXT(AIS_DimensionOwner, SelectMgr_EntityOwner)
+  DEFINE_STANDARD_RTTIEXT(PrsDim_DimensionOwner, SelectMgr_EntityOwner)
 public:
 
   //! Initializes the dimension owner, theSO, and attributes it
   //! the priority, thePriority.
-  Standard_EXPORT AIS_DimensionOwner(const Handle(SelectMgr_SelectableObject)& theSelObject, const AIS_DimensionSelectionMode theSelMode, const Standard_Integer thePriority = 0);
+  Standard_EXPORT PrsDim_DimensionOwner(const Handle(SelectMgr_SelectableObject)& theSelObject, const PrsDim_DimensionSelectionMode theSelMode, const Standard_Integer thePriority = 0);
   
-  Standard_EXPORT AIS_DimensionSelectionMode SelectionMode() const;
+  PrsDim_DimensionSelectionMode SelectionMode() const { return mySelectionMode; }
   
   Standard_EXPORT virtual void HilightWithColor (const Handle(PrsMgr_PresentationManager3d)& thePM,
                                                  const Handle(Prs3d_Drawer)& theStyle,
@@ -67,7 +67,7 @@ public:
 
 private:
 
-  AIS_DimensionSelectionMode mySelectionMode;
+  PrsDim_DimensionSelectionMode mySelectionMode;
 
 };