1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: FeaturesPlugin_RevolutionBoolean.h
4 // Created: 11 June 2015
5 // Author: Dmitry Bobylev
7 #ifndef FeaturesPlugin_RevolutionBoolean_H_
8 #define FeaturesPlugin_RevolutionBoolean_H_
10 #include <FeaturesPlugin_CompositeBoolean.h>
12 /** \class FeaturesPlugin_RevolutionBoolean
14 * \brief Interface for the composite revolution feature.
16 class FeaturesPlugin_RevolutionBoolean : public FeaturesPlugin_CompositeBoolean
19 /// Attribute name of an revolution axis.
20 inline static const std::string& AXIS_OBJECT_ID()
22 static const std::string MY_AXIS_ID("axis_object");
26 /// attribute name for creation method
27 inline static const std::string& CREATION_METHOD()
29 static const std::string METHOD_ATTR("CreationMethod");
33 /// Attribute name of revolution to angle.
34 inline static const std::string& TO_ANGLE_ID()
36 static const std::string MY_TO_ANGLE_ID("to_angle");
37 return MY_TO_ANGLE_ID;
40 /// Attribute name of revolution from angle.
41 inline static const std::string& FROM_ANGLE_ID()
43 static const std::string MY_FROM_ANGLE_ID("from_angle");
44 return MY_FROM_ANGLE_ID;
47 /// Attribute name of an object to which the revolution grows.
48 inline static const std::string& TO_OBJECT_ID()
50 static const std::string MY_TO_OBJECT_ID("to_object");
51 return MY_TO_OBJECT_ID;
54 /// Attribute name of extrusion offset.
55 inline static const std::string& TO_OFFSET_ID()
57 static const std::string MY_TO_OFFSET_ID("to_offset");
58 return MY_TO_OFFSET_ID;
61 /// Attribute name of an object from which the revolution grows.
62 inline static const std::string& FROM_OBJECT_ID()
64 static const std::string MY_FROM_OBJECT_ID("from_object");
65 return MY_FROM_OBJECT_ID;
68 /// Attribute name of extrusion offset.
69 inline static const std::string& FROM_OFFSET_ID()
71 static const std::string MY_FROM_OFFSET_ID("from_offset");
72 return MY_FROM_OFFSET_ID;
76 /// Init attributes for revolution.
77 virtual void initMakeSolidsAttributes();
79 /// Create solids from faces with revolution.
80 virtual void makeSolids(const ListOfShape& theFaces,
81 ListOfShape& theResults,
82 ListOfMakeShape& theAlgos);
85 FeaturesPlugin_RevolutionBoolean(){};