Salome HOME
Fix for issue #73: make all features titles looks in the same way
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Sketch.h
index 371943ec599254f9b1d520c90cf87404ffa41704..7c0894995afb358733a1aaf8b90be271f04b398c 100644 (file)
@@ -29,18 +29,18 @@ class SketchPlugin_Sketch: public SketchPlugin_Feature
 {
 public:
   /// Returns the kind of a feature
- SKETCHPLUGIN_EXPORT virtual const std::string& getKind() 
 SKETCHPLUGIN_EXPORT virtual const std::string& getKind() 
   {static std::string MY_KIND = "Sketch"; return MY_KIND;}
 
   /// Returns to which group in the document must be added feature
- SKETCHPLUGIN_EXPORT virtual const std::string& getGroup() 
 SKETCHPLUGIN_EXPORT virtual const std::string& getGroup() 
   {static std::string MY_GROUP = "Construction"; return MY_GROUP;}
 
   /// Creates a new part document if needed
- SKETCHPLUGIN_EXPORT virtual void execute();
 SKETCHPLUGIN_EXPORT virtual void execute();
 
   /// Request for initialization of data model of the feature: adding all attributes
- SKETCHPLUGIN_EXPORT virtual void initAttributes();
 SKETCHPLUGIN_EXPORT virtual void initAttributes();
 
   /// Returns the sketch preview
   SKETCHPLUGIN_EXPORT virtual const boost::shared_ptr<GeomAPI_Shape>& preview();
@@ -67,6 +67,10 @@ protected:
   /// \param theShapes the list of result shapes
   void addPlane(double theX, double theY, double theZ,
                 std::list<boost::shared_ptr<GeomAPI_Shape> >& theShapes) const;
+
+  /// Checks whether the plane is set in the sketch.
+  /// \returns the boolean state
+  bool isPlaneSet();
 };
 
 #endif