Salome HOME
Update the management of the updates: use transactions ID to detect correctly depende...
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_ExtrusionBoolean.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        FeaturesPlugin_ExtrusionBoolean.h
4 // Created:     11 June 2015
5 // Author:      Dmitry Bobylev
6
7 #ifndef FeaturesPlugin_ExtrusionBoolean_H_
8 #define FeaturesPlugin_ExtrusionBoolean_H_
9
10 #include <FeaturesPlugin_CompositeBoolean.h>
11
12 /** \class FeaturesPlugin_ExtrusionBoolean
13  *  \ingroup Plugins
14  */
15 class FeaturesPlugin_ExtrusionBoolean : public FeaturesPlugin_CompositeBoolean
16 {
17  public:
18
19   /// attribute name for creation method
20   inline static const std::string& CREATION_METHOD()
21   {
22     static const std::string METHOD_ATTR("CreationMethod");
23     return METHOD_ATTR;
24   }
25
26   /// attribute name of extrusion size
27   inline static const std::string& TO_SIZE_ID()
28   {
29     static const std::string MY_TO_SIZE_ID("to_size");
30     return MY_TO_SIZE_ID;
31   }
32
33   /// attribute name of extrusion size
34   inline static const std::string& FROM_SIZE_ID()
35   {
36     static const std::string MY_FROM_SIZE_ID("from_size");
37     return MY_FROM_SIZE_ID;
38   }
39
40   /// attribute name of an object to which the extrusion grows.
41   inline static const std::string& TO_OBJECT_ID()
42   {
43     static const std::string MY_TO_OBJECT_ID("to_object");
44     return MY_TO_OBJECT_ID;
45   }
46
47   /// attribute name of extrusion offset
48   inline static const std::string& TO_OFFSET_ID()
49   {
50     static const std::string MY_TO_OFFSET_ID("to_offset");
51     return MY_TO_OFFSET_ID;
52   }
53
54   /// Attribute name of an object from which the extrusion grows.
55   inline static const std::string& FROM_OBJECT_ID()
56   {
57     static const std::string MY_FROM_OBJECT_ID("from_object");
58     return MY_FROM_OBJECT_ID;
59   }
60
61   /// attribute name of extrusion offset
62   inline static const std::string& FROM_OFFSET_ID()
63   {
64     static const std::string MY_FROM_OFFSET_ID("from_offset");
65     return MY_FROM_OFFSET_ID;
66   }
67
68 protected:
69   /// Init attributes for extrusion.
70   virtual void initMakeSolidsAttributes();
71
72   /// Create solids from faces with extrusion.
73   virtual ListOfShape MakeSolids(const ListOfShape& theFaces);
74
75 protected:
76   FeaturesPlugin_ExtrusionBoolean(){};
77 };
78
79 #endif