Salome HOME
Issue #1343: Architecture changes. Composite features now derived from extrusion...
[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_Revolution.h"
11 #include "FeaturesPlugin_CompositeBoolean.h"
12
13 /// \class FeaturesPlugin_RevolutionBoolean
14 /// \ingroup Plugins
15 /// \brief Interface for the composite revolution feature.
16 class FeaturesPlugin_RevolutionBoolean : public FeaturesPlugin_Revolution, public FeaturesPlugin_CompositeBoolean
17 {
18 public:
19   /// Request for initialization of data model of the feature: adding all attributes.
20   FEATURESPLUGIN_EXPORT virtual void initAttributes();
21
22 protected:
23   FeaturesPlugin_RevolutionBoolean(){};
24
25   // Creates revolutions.
26   bool makeGeneration(ListOfShape& theBaseShapes,
27                       ListOfMakeShape& theMakeShapes);
28
29   /// Stores generation history.
30   void storeGenerationHistory(ResultBodyPtr theResultBody,
31                               const GeomShapePtr theBaseShape,
32                               const std::shared_ptr<GeomAlgoAPI_MakeShape> theMakeShape,
33                               int& theTag);
34 };
35
36 #endif