Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Incorrect dumping of parts with user-defined names (issue #1804)
[modules/shaper.git]
/
src
/
SketchPlugin
/
SketchPlugin_Plugin.h
diff --git
a/src/SketchPlugin/SketchPlugin_Plugin.h
b/src/SketchPlugin/SketchPlugin_Plugin.h
index fad6fa739df89b3b55d9a66ede701a2dd67bc863..822eeea51b1745803badcf392bf74db1bee378e3 100644
(file)
--- a/
src/SketchPlugin/SketchPlugin_Plugin.h
+++ b/
src/SketchPlugin/SketchPlugin_Plugin.h
@@
-13,18
+13,24
@@
#include <ModelAPI_Feature.h>
#include <ModelAPI_Events.h>
#include <ModelAPI_Feature.h>
#include <ModelAPI_Events.h>
-class SKETCHPLUGIN_EXPORT SketchPlugin_Plugin : public ModelAPI_Plugin, public Events_Listener
+/**\class SketchPlugin_Plugin
+ * \ingroup Plugins
+ * \brief Interface common for any plugin: allows to use plugin by the plugins manager.
+ */
+class SketchPlugin_Plugin : public ModelAPI_Plugin, public Events_Listener
{
{
-
public:
+public:
/// Creates the feature object of this plugin by the feature string ID
/// Creates the feature object of this plugin by the feature string ID
- virtual FeaturePtr createFeature(std::string theFeatureID);
+ SKETCHPLUGIN_EXPORT virtual FeaturePtr createFeature(std::string theFeatureID);
+
+ /// Constructor that registers features and other plugin elements.
+ SKETCHPLUGIN_EXPORT SketchPlugin_Plugin();
- public:
- /// Is needed for python wrapping by swig
- SketchPlugin_Plugin();
//! Redefinition of Events_Listener method
//! Redefinition of Events_Listener method
- virtual void processEvent(const std::shared_ptr<Events_Message>& theMessage);
- protected:
+ SKETCHPLUGIN_EXPORT virtual void processEvent(const std::shared_ptr<Events_Message>& theMessage);
+
+protected:
+ //! Returns the state of the feature in the WorkBench: enabled or disabled for the moment.
std::shared_ptr<ModelAPI_FeatureStateMessage> getFeaturesState(
const std::shared_ptr<ModelAPI_Feature>& theFeature) const;
};
std::shared_ptr<ModelAPI_FeatureStateMessage> getFeaturesState(
const std::shared_ptr<ModelAPI_Feature>& theFeature) const;
};