Salome HOME
RevolutionCut and RevolutionFuse features.
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_RevolutionCut.h
diff --git a/src/FeaturesPlugin/FeaturesPlugin_RevolutionCut.h b/src/FeaturesPlugin/FeaturesPlugin_RevolutionCut.h
new file mode 100644 (file)
index 0000000..9116a46
--- /dev/null
@@ -0,0 +1,39 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:        FeaturesPlugin_RevolutionCut.h
+// Created:     11 June 2015
+// Author:      Dmitry Bobylev
+
+#ifndef FeaturesPlugin_RevolutionCut_H_
+#define FeaturesPlugin_RevolutionCut_H_
+
+#include <FeaturesPlugin_RevolutionBoolean.h>
+
+/** \class FeaturesPlugin_RevolutionCut
+ *  \ingroup Plugins
+ */
+class FeaturesPlugin_RevolutionCut : public FeaturesPlugin_RevolutionBoolean
+{
+ public:
+  /// Feature kind.
+  inline static const std::string& ID()
+  {
+    static const std::string MY_REVOLUTION_ID("RevolutionCut");
+    return MY_REVOLUTION_ID;
+  }
+
+  /// \return the kind of a feature
+  FEATURESPLUGIN_EXPORT virtual const std::string& getKind()
+  {
+    static std::string MY_KIND = FeaturesPlugin_RevolutionCut::ID();
+    return MY_KIND;
+  }
+
+  /// Use plugin manager for features creation.
+  FeaturesPlugin_RevolutionCut()
+  {
+    myBooleanOperationType = GeomAlgoAPI_Boolean::BOOL_CUT;
+  }
+};
+
+#endif