1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: SamplePanelPlugin_Feature.h
4 // Created: 29 Mar 2015
5 // Author: Natalia ERMOLAEVA
7 #ifndef SAMPLEPANELPLUGIN_FEATURE_H_
8 #define SAMPLEPANELPLUGIN_FEATURE_H_
10 #include "SamplePanelPlugin.h"
12 #include <ModelAPI_Feature.h>
14 /**\class SamplePanelPlugin_Feature
16 * \brief Sample feature to be filled by the panel.
18 class SamplePanelPlugin_Feature : public ModelAPI_Feature
21 /// SketchShape feature kind
22 inline static const std::string& ID()
24 static const std::string MY_SAMPLE_PANEL_FEATURE_ID("SamplePanelFeature");
25 return MY_SAMPLE_PANEL_FEATURE_ID;
28 /// Request for initialization of data model of the object: adding all attributes
29 virtual void initAttributes() {};
31 /// Returns the unique kind of a feature
32 virtual const std::string& getKind() {
33 static std::string MY_KIND = SamplePanelPlugin_Feature::ID();
37 /// Computes or recomputes the results
38 virtual void execute() {}
40 /// Use plugin manager for features creation
41 SamplePanelPlugin_Feature();
44 typedef std::shared_ptr<SamplePanelPlugin_Feature> SamplePanelFeaturePtr;