Salome HOME
Task "Make the size of the selection area even bigger, especially for points"
[modules/shaper.git] / src / ConstructionPlugin / ConstructionPlugin_Point.h
index f4bf39a1186fdc61b3ee35e42f3665a8b7a609fa..d1f15287f64d62d6e50bc67a555eac16a8e23ee9 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "ConstructionPlugin.h"
 #include <ModelAPI_Feature.h>
+#include <ModelAPI_Result.h>
 #include <GeomAPI_ICustomPrs.h>
 
 /**\class ConstructionPlugin_Point
@@ -21,19 +22,13 @@ class ConstructionPlugin_Point : public ModelAPI_Feature, public GeomAPI_ICustom
   /// Returns the kind of a feature
   CONSTRUCTIONPLUGIN_EXPORT virtual const std::string& getKind();
 
+  /// Point kind
   inline static const std::string& ID()
   {
     static const std::string CONSTRUCTION_POINT_KIND("Point");
     return CONSTRUCTION_POINT_KIND;
   }
 
-  /// default color for a point
-  inline static const std::string& DEFAULT_COLOR()
-  {
-    static const std::string CONSTRUCTION_POINT_COLOR("#ffff00");
-    return CONSTRUCTION_POINT_COLOR;
-  }
-
   /// attribute name for X coordinate
   inline static const std::string& X()
   {
@@ -65,9 +60,9 @@ class ConstructionPlugin_Point : public ModelAPI_Feature, public GeomAPI_ICustom
   /// Use plugin manager for features creation
   ConstructionPlugin_Point();
 
-  /// Modifies the given presentation in the custom way.
-  virtual void customisePresentation(AISObjectPtr thePrs);
-
+  /// Customize presentation of the feature
+  virtual bool customisePresentation(ResultPtr theResult, AISObjectPtr thePrs,
+                                     std::shared_ptr<GeomAPI_ICustomPrs> theDefaultPrs);
 };
 
 #endif