Salome HOME
Clear remaining selection
[modules/shaper.git] / src / SketcherPrs / SketcherPrs_SymbolPrs.h
index 7a9c37b032529b8b89e16eab40c65eed85c1f407..446cedabcd6fb9ad28a0d6c11bf2dadae315579b 100644 (file)
@@ -7,18 +7,22 @@
 #ifndef SketcherPrs_SymbolPrs_H
 #define SketcherPrs_SymbolPrs_H
 
+#include "SketcherPrs_SensitivePoint.h"
+#include <ModelAPI_Feature.h>
+
 #include <AIS_InteractiveObject.hxx>
 #include <GeomAPI_Ax3.h>
 #include <Graphic3d_ArrayOfPoints.hxx>
 #include <Graphic3d_AspectMarker3d.hxx>
 #include <Image_AlienPixMap.hxx>
+#include <SelectMgr_EntityOwner.hxx>
+#include <Select3D_SensitiveEntitySequence.hxx>
 
 #include <Standard_DefineHandle.hxx>
 #include <map>
 
 #include <OpenGl_Workspace.hxx>
 
-class SketchPlugin_Constraint;
 class OpenGl_Context;
 
 
@@ -34,9 +38,11 @@ public:
   /// Constructor
   /// \param theConstraint a constraint feature
   /// \param thePlane a coordinate plane of current sketch
-  Standard_EXPORT SketcherPrs_SymbolPrs(SketchPlugin_Constraint* theConstraint, 
+  Standard_EXPORT SketcherPrs_SymbolPrs(ModelAPI_Feature* theConstraint, 
                         const std::shared_ptr<GeomAPI_Ax3>& thePlane);
   
+  virtual ~SketcherPrs_SymbolPrs();
+
   //! Method which clear all selected owners belonging
   //! to this selectable object ( for fast presentation draw )
   Standard_EXPORT virtual void ClearSelected();
@@ -53,7 +59,7 @@ public:
 
   Standard_EXPORT std::shared_ptr<GeomAPI_Ax3> plane() const { return myPlane; }
 
-  Standard_EXPORT SketchPlugin_Constraint* feature() const { return myConstraint; }
+  Standard_EXPORT ModelAPI_Feature* feature() const { return myConstraint; }
 
 
   Handle(Graphic3d_ArrayOfPoints) pointsArray() const { return myPntArray; }
@@ -99,7 +105,7 @@ protected:
 
 protected:
   /// Constraint feature
-  SketchPlugin_Constraint* myConstraint;
+  ModelAPI_Feature* myConstraint;
 
   /// Plane of the current sketcher
   std::shared_ptr<GeomAPI_Ax3> myPlane;
@@ -110,11 +116,15 @@ protected:
   /// Array of symbols positions
   mutable Handle(Graphic3d_ArrayOfPoints) myPntArray;
 
+  Handle(SelectMgr_EntityOwner) myOwner;
+
 private: 
   /// Static map to collect constraints icons {IconName : IconPixMap}
   static std::map<const char*, Handle(Image_AlienPixMap)> myIconsMap;
 
   mutable Handle(OpenGl_VertexBuffer) myVboAttribs;
+
+  Select3D_SensitiveEntitySequence mySPoints;
 };
 
 #endif
\ No newline at end of file