X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionPlugin%2FConstructionPlugin_Axis.h;h=1775300ebda82e65cbdd043fdc84073e78d6eb35;hb=13d3f0d8b46a06931cbe8620b8563049eff4a9f6;hp=b92e0842c4ed9b595adc017156c5f10a1e458dfd;hpb=247fc0bd6c6e04ce1f7a6e67f8d3c80ce17acab0;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/ConstructionPlugin_Axis.h b/src/ConstructionPlugin/ConstructionPlugin_Axis.h index b92e0842c..1775300eb 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Axis.h +++ b/src/ConstructionPlugin/ConstructionPlugin_Axis.h @@ -36,25 +36,25 @@ class ConstructionPlugin_Axis : public ModelAPI_Feature, public GeomAPI_ICustomP /// attribute name for first point inline static const std::string& METHOD() { - static const std::string METHOD_ATTR("creationMethod"); + static const std::string METHOD_ATTR("CreationMethod"); return METHOD_ATTR; } /// attribute name for first point inline static const std::string& POINT_FIRST() { - static const std::string POINT_ATTR_FIRST("firstPoint"); + static const std::string POINT_ATTR_FIRST("FirstPoint"); return POINT_ATTR_FIRST; } /// attribute name for second point inline static const std::string& POINT_SECOND() { - static const std::string POINT_ATTR_SECOND("secondPoint"); + static const std::string POINT_ATTR_SECOND("SecondPoint"); return POINT_ATTR_SECOND; } /// attribute name for second point inline static const std::string& CYLINDRICAL_FACE() { - static const std::string CYLINDRICAL_FACE_ATTR("cylindricalFace"); + static const std::string CYLINDRICAL_FACE_ATTR("CylindricalFace"); return CYLINDRICAL_FACE_ATTR; } @@ -75,6 +75,10 @@ class ConstructionPlugin_Axis : public ModelAPI_Feature, public GeomAPI_ICustomP /// Customize presentation of the feature virtual bool customisePresentation(ResultPtr theResult, AISObjectPtr thePrs, std::shared_ptr theDefaultPrs); + + protected: + void createAxisByTwoPoints(); + void createAxisByCylindricalFace(); };