Salome HOME
fad6fa739df89b3b55d9a66ede701a2dd67bc863
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Plugin.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 // File:        SketchPlugin_Plugin.hxx
4 // Created:     31 Mar 2014
5 // Author:      Mikhail PONIKAROV
6
7 #ifndef SKETCHPLUGIN_PLUGIN_H_
8 #define SKETCHPLUGIN_PLUGIN_H_
9
10 #include <SketchPlugin.h>
11 #include <Events_Listener.h>
12 #include <ModelAPI_Plugin.h>
13 #include <ModelAPI_Feature.h>
14 #include <ModelAPI_Events.h>
15
16 class SKETCHPLUGIN_EXPORT SketchPlugin_Plugin : public ModelAPI_Plugin, public Events_Listener
17 {
18  public:
19   /// Creates the feature object of this plugin by the feature string ID
20   virtual FeaturePtr createFeature(std::string theFeatureID);
21
22  public:
23   /// Is needed for python wrapping by swig
24   SketchPlugin_Plugin();
25   //! Redefinition of Events_Listener method
26   virtual void processEvent(const std::shared_ptr<Events_Message>& theMessage);
27  protected:
28   std::shared_ptr<ModelAPI_FeatureStateMessage> getFeaturesState(
29       const std::shared_ptr<ModelAPI_Feature>& theFeature) const;
30 };
31
32 #endif