Salome HOME
Merge branch 'Dev_1.1.0' of newgeom:newgeom.git into Dev_1.1.0
[modules/shaper.git] / src / ConstructionPlugin / ConstructionPlugin_Point.h
index b0504698d93c7f9017edc73ad1ab98b925c45a9f..f4bf39a1186fdc61b3ee35e42f3665a8b7a609fa 100644 (file)
@@ -9,12 +9,13 @@
 
 #include "ConstructionPlugin.h"
 #include <ModelAPI_Feature.h>
+#include <GeomAPI_ICustomPrs.h>
 
 /**\class ConstructionPlugin_Point
  * \ingroup Plugins
  * \brief Feature for creation of the new part in PartSet.
  */
-class ConstructionPlugin_Point : public ModelAPI_Feature
+class ConstructionPlugin_Point : public ModelAPI_Feature, public GeomAPI_ICustomPrs
 {
  public:
   /// Returns the kind of a feature
@@ -26,6 +27,13 @@ class ConstructionPlugin_Point : public ModelAPI_Feature
     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()
   {
@@ -56,6 +64,10 @@ class ConstructionPlugin_Point : public ModelAPI_Feature
 
   /// Use plugin manager for features creation
   ConstructionPlugin_Point();
+
+  /// Modifies the given presentation in the custom way.
+  virtual void customisePresentation(AISObjectPtr thePrs);
+
 };
 
 #endif