X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_Arc.h;h=812123b04e142af2de742fcb98d8353da923e622;hb=d88a987ccdc391ed2adc420673691a1aad7749d2;hp=2bd7c0c44ab7a918cc71d019af17cb03617befcb;hpb=4507796772cdf8f63bc0bdb452b5013094fe7036;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Arc.h b/src/SketchPlugin/SketchPlugin_Arc.h index 2bd7c0c44..812123b04 100644 --- a/src/SketchPlugin/SketchPlugin_Arc.h +++ b/src/SketchPlugin/SketchPlugin_Arc.h @@ -38,6 +38,35 @@ class SketchPlugin_Arc : public SketchPlugin_SketchEntity, public GeomAPI_IPrese return MY_SKETCH_ARC_ID; } + inline static const std::string& ARC_TYPE() + { + static const std::string TYPE("ArcType"); + return TYPE; + } + + inline static const std::string& ARC_TYPE_TANGENT() + { + static const std::string TYPE("Tangent"); + return TYPE; + } + + static const std::string& ARC_TYPE_CENTER_START_END() + { + static const std::string TYPE("CenterStartEnd"); + return TYPE; + } + static const std::string& ARC_TYPE_THREE_POINTS() + { + static const std::string TYPE("ThreePoints"); + return TYPE; + } + + static const std::string& TANGENT_POINT_ID() + { + static const std::string TANGENT_PNT("ArcTangentPoint"); + return TANGENT_PNT; + } + /// Central 2D point of the circle which contains the arc inline static const std::string& CENTER_ID() { @@ -64,6 +93,27 @@ class SketchPlugin_Arc : public SketchPlugin_SketchEntity, public GeomAPI_IPrese return MY_INVERSED_ID; } + /// Passed point of the arc. + static const std::string& PASSED_POINT_ID() + { + static const std::string PASSED_PNT("ArcPassedPoint"); + return PASSED_PNT; + } + + /// Arc radius. + static const std::string& RADIUS_ID() + { + static const std::string RADIUS("ArcRadius"); + return RADIUS; + } + + /// Arc angle. + static const std::string& ANGLE_ID() + { + static const std::string ANGLE("ArcAngle"); + return ANGLE; + } + /// Returns the kind of a feature SKETCHPLUGIN_EXPORT virtual const std::string& getKind() { @@ -106,11 +156,9 @@ private: /// Returns true if all obligatory attributes are initialized bool isFeatureValid(); - /// Update attributes like passed point, radius and angle of the arc - void updateDependentAttributes(); - /// Compose constraints to build tangency arc void tangencyArcConstraints(); + }; #endif