Salome HOME
964abe80e4f8b97c299afb162abcfbb95146b044
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Feature.h
1 // File:        SketchPlugin_Feature.h
2 // Created:     27 Mar 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef SketchPlugin_Feature_HeaderFile
6 #define SketchPlugin_Feature_HeaderFile
7
8 #include "SketchPlugin.h"
9 #include <ModelAPI_Feature.h>
10
11 #include <GeomAPI_Shape.h>
12
13 /**\class SketchPlugin_Feature
14  * \ingroup DataModel
15  * \brief Feature for creation of the new part in PartSet.
16  */
17 class SketchPlugin_Feature: public ModelAPI_Feature
18 {
19 public:
20  SKETCHPLUGIN_EXPORT virtual const boost::shared_ptr<GeomAPI_Shape>& preview() = 0;
21
22 protected:
23   void setPreview(const boost::shared_ptr<GeomAPI_Shape>& theShape); ///< the preview shape
24
25 private:
26   boost::shared_ptr<GeomAPI_Shape> myPreview; ///< the preview shape
27 };
28
29 #endif