Salome HOME
e9fe6fb7e9090abcc64eea477d6f736532dfa42d
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_RevolutionBoolean.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        FeaturesPlugin_RevolutionBoolean.h
4 // Created:     11 June 2015
5 // Author:      Dmitry Bobylev
6
7 #ifndef FeaturesPlugin_RevolutionBoolean_H_
8 #define FeaturesPlugin_RevolutionBoolean_H_
9
10 #include <FeaturesPlugin_CompositeBoolean.h>
11
12 /** \class FeaturesPlugin_RevolutionBoolean
13  *  \ingroup Plugins
14  */
15 class FeaturesPlugin_RevolutionBoolean : public FeaturesPlugin_CompositeBoolean
16 {
17 public:
18   /// Attribute name of an revolution axis.
19   inline static const std::string& AXIS_OBJECT_ID()
20   {
21     static const std::string MY_AXIS_ID("axis_object");
22     return MY_AXIS_ID;
23   }
24
25   /// Attribute name of an object from which the revolution grows.
26   inline static const std::string& FROM_OBJECT_ID()
27   {
28     static const std::string MY_FROM_OBJECT_ID("from_object");
29     return MY_FROM_OBJECT_ID;
30   }
31
32   /// Attribute name of revolution from angle.
33   inline static const std::string& FROM_ANGLE_ID()
34   {
35     static const std::string MY_FROM_ANGLE_ID("from_angle");
36     return MY_FROM_ANGLE_ID;
37   }
38
39   /// attribute name of an object to which the revolution grows.
40   inline static const std::string& TO_OBJECT_ID()
41   {
42     static const std::string MY_TO_OBJECT_ID("to_object");
43     return MY_TO_OBJECT_ID;
44   }
45
46   /// Attribute name of revolution to angle.
47   inline static const std::string& TO_ANGLE_ID()
48   {
49     static const std::string MY_TO_ANGLE_ID("to_angle");
50     return MY_TO_ANGLE_ID;
51   }
52
53 protected:
54   /// Init attributes for revolution.
55   virtual void initMakeSolidsAttributes();
56
57   /// Create solids from faces with revolution.
58   virtual ListOfShape MakeSolids(const ListOfShape& theFaces);
59
60 protected:
61   FeaturesPlugin_RevolutionBoolean(){};
62 };
63
64 #endif