X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionPlugin%2FConstructionPlugin_Plane.h;h=546577b44ea5d35a31fe8df7881b2ab083b5ea47;hb=3dba9bfac0fe2de547b60a58f68db0822b9865ab;hp=f57ff1eb10099565f71d87486d4da7465c0ccb85;hpb=26eb9df03b20bbec3ecafbda1a1b1fcfe5f06bbc;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/ConstructionPlugin_Plane.h b/src/ConstructionPlugin/ConstructionPlugin_Plane.h index f57ff1eb1..546577b44 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Plane.h +++ b/src/ConstructionPlugin/ConstructionPlugin_Plane.h @@ -9,6 +9,7 @@ #include "ConstructionPlugin.h" #include +#include #include @@ -30,7 +31,7 @@ class ConstructionPlugin_Plane : public ModelAPI_Feature, public GeomAPI_ICustom /// default color for a plane inline static const std::string& DEFAULT_COLOR() { - static const std::string CONSTRUCTION_PLANE_COLOR("#32FF32"); + static const std::string CONSTRUCTION_PLANE_COLOR("150,150,180"); return CONSTRUCTION_PLANE_COLOR; } @@ -40,6 +41,14 @@ class ConstructionPlugin_Plane : public ModelAPI_Feature, public GeomAPI_ICustom static const std::string CONSTRUCTION_PLANE_KIND("Plane"); return CONSTRUCTION_PLANE_KIND; } + + /// attribute name for first point + inline static const std::string& METHOD() + { + static const std::string METHOD_ATTR("CreationMethod"); + return METHOD_ATTR; + } + /// attribute name for base face inline static const std::string& FACE() { @@ -91,7 +100,12 @@ class ConstructionPlugin_Plane : public ModelAPI_Feature, public GeomAPI_ICustom ConstructionPlugin_Plane(); /// Customize presentation of the feature - virtual void customisePresentation(AISObjectPtr thePrs); + virtual bool customisePresentation(ResultPtr theResult, AISObjectPtr thePrs, + std::shared_ptr theDefaultPrs); + + protected: + std::shared_ptr createPlaneByFaceAndDistance(); + std::shared_ptr createPlaneByGeneralEquation(); }; #endif