X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionPlugin%2FConstructionPlugin_Plane.h;h=b82f1e8c3f8b238b1fd2b804618c5e096ded9923;hb=4d6bb9de0e54f09a9bbacc94a058cb7cd437d535;hp=2ff71979a32780c69cfdeda3ebb3848488322955;hpb=247fc0bd6c6e04ce1f7a6e67f8d3c80ce17acab0;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/ConstructionPlugin_Plane.h b/src/ConstructionPlugin/ConstructionPlugin_Plane.h index 2ff71979a..b82f1e8c3 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Plane.h +++ b/src/ConstructionPlugin/ConstructionPlugin_Plane.h @@ -31,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; } @@ -41,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() { @@ -94,6 +102,13 @@ class ConstructionPlugin_Plane : public ModelAPI_Feature, public GeomAPI_ICustom /// Customize presentation of the feature virtual bool customisePresentation(ResultPtr theResult, AISObjectPtr thePrs, std::shared_ptr theDefaultPrs); + + protected: + /// Creates a new plane by copy of face plane with translation along the normal + /// to the specified distance. + std::shared_ptr createPlaneByFaceAndDistance(); + /// Creates a new plane by general equation. + std::shared_ptr createPlaneByGeneralEquation(); }; #endif