X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionPlugin%2FConstructionPlugin_Point.h;h=8e0f0fcda6f74a4b959fdbbe664db39ab332ed0a;hb=020e7187ee88afbd18286f149536cdef61d9f61e;hp=f4bf39a1186fdc61b3ee35e42f3665a8b7a609fa;hpb=0a76161addf39a6d03b90308eb99abc3a8d10e74;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/ConstructionPlugin_Point.h b/src/ConstructionPlugin/ConstructionPlugin_Point.h index f4bf39a11..8e0f0fcda 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Point.h +++ b/src/ConstructionPlugin/ConstructionPlugin_Point.h @@ -9,6 +9,7 @@ #include "ConstructionPlugin.h" #include +#include #include /**\class ConstructionPlugin_Point @@ -27,13 +28,6 @@ class ConstructionPlugin_Point : public ModelAPI_Feature, public GeomAPI_ICustom 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 +59,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 theDefaultPrs); }; #endif