Salome HOME
Issue #1367: Fill feature.
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_RevolutionFuse.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        FeaturesPlugin_RevolutionFuse.h
4 // Created:     11 June 2015
5 // Author:      Dmitry Bobylev
6
7 #ifndef FeaturesPlugin_RevolutionFuse_H_
8 #define FeaturesPlugin_RevolutionFuse_H_
9
10 #include "FeaturesPlugin_RevolutionBoolean.h"
11
12 /// \class FeaturesPlugin_RevolutionFuse
13 /// \ingroup Plugins
14 /// \brief This feature allows to create sketch, revol faces from this sketch and
15 ///        fuse result with other objects in a single operation.
16 class FeaturesPlugin_RevolutionFuse : public FeaturesPlugin_RevolutionBoolean
17 {
18  public:
19   /// Use plugin manager for features creation.
20   FeaturesPlugin_RevolutionFuse();
21
22    /// Feature kind.
23   inline static const std::string& ID()
24   {
25     static const std::string MY_REVOLUTION_ID("RevolutionFuse");
26     return MY_REVOLUTION_ID;
27   }
28
29   /// \return the kind of a feature
30   FEATURESPLUGIN_EXPORT virtual const std::string& getKind()
31   {
32     static std::string MY_KIND = FeaturesPlugin_RevolutionFuse::ID();
33     return MY_KIND;
34   }
35
36   /// Creates a new part document if needed.
37   FEATURESPLUGIN_EXPORT virtual void execute();
38 };
39
40 #endif