20 #ifndef FeaturesPlugin_Revolution_H_
21 #define FeaturesPlugin_Revolution_H_
23 #include "FeaturesPlugin.h"
25 #include "FeaturesPlugin_CompositeSketch.h"
27 #include <GeomAlgoAPI_MakeShape.h>
38 inline static const std::string&
ID()
40 static const std::string MY_ID(
"Revolution");
47 static const std::string MY_CREATION_METHOD_ID(
"CreationMethod");
48 return MY_CREATION_METHOD_ID;
54 static const std::string MY_CREATION_METHOD_THROUGH_ALL(
"ThroughAll");
55 return MY_CREATION_METHOD_THROUGH_ALL;
61 static const std::string MY_CREATION_METHOD_BY_ANGLES(
"ByAngles");
62 return MY_CREATION_METHOD_BY_ANGLES;
68 static const std::string MY_CREATION_METHOD_BY_PLANES(
"ByPlanesAndOffsets");
69 return MY_CREATION_METHOD_BY_PLANES;
75 static const std::string MY_AXIS_OBJECT_ID(
"axis_object");
76 return MY_AXIS_OBJECT_ID;
82 static const std::string MY_TO_ANGLE_ID(
"to_angle");
83 return MY_TO_ANGLE_ID;
89 static const std::string MY_FROM_ANGLE_ID(
"from_angle");
90 return MY_FROM_ANGLE_ID;
96 static const std::string MY_TO_OBJECT_ID(
"to_object");
97 return MY_TO_OBJECT_ID;
103 static const std::string MY_TO_OFFSET_ID(
"to_offset");
104 return MY_TO_OFFSET_ID;
110 static const std::string MY_FROM_OBJECT_ID(
"from_object");
111 return MY_FROM_OBJECT_ID;
117 static const std::string MY_FROM_OFFSET_ID(
"from_offset");
118 return MY_FROM_OFFSET_ID;
122 FEATURESPLUGIN_EXPORT
virtual const std::string&
getKind()
129 FEATURESPLUGIN_EXPORT
virtual void execute();
143 ListOfMakeShape& theMakeShapes);
Interface for the composite sketch feature.
Definition: FeaturesPlugin_CompositeSketch.h:33
Feature for creation of revolution from the planar face.
Definition: FeaturesPlugin_Revolution.h:35
static const std::string & ID()
Feature kind.
Definition: FeaturesPlugin_Revolution.h:38
bool makeRevolutions(ListOfShape &theBaseShapes, ListOfMakeShape &theMakeShapes)
Generates revolutions.
Definition: FeaturesPlugin_Revolution.cpp:88
static const std::string & TO_ANGLE_ID()
Attribute name of revolution to angle.
Definition: FeaturesPlugin_Revolution.h:80
virtual void initAttributes()
Request for initialization of data model of the feature: adding all attributes.
Definition: FeaturesPlugin_Revolution.cpp:41
static const std::string & CREATION_METHOD()
Attribute name for creation method.
Definition: FeaturesPlugin_Revolution.h:45
static const std::string & TO_OBJECT_ID()
Attribute name of an object to which the revolution grows.
Definition: FeaturesPlugin_Revolution.h:94
static const std::string & FROM_ANGLE_ID()
Attribute name of revolution from angle.
Definition: FeaturesPlugin_Revolution.h:87
static const std::string & FROM_OBJECT_ID()
Attribute name of an object from which the revolution grows.
Definition: FeaturesPlugin_Revolution.h:108
static const std::string & CREATION_METHOD_BY_ANGLES()
Attribute name for creation method.
Definition: FeaturesPlugin_Revolution.h:59
FeaturesPlugin_Revolution()
Use plugin manager for features creation.
Definition: FeaturesPlugin_Revolution.cpp:36
static const std::string & TO_OFFSET_ID()
Attribute name of revolution offset.
Definition: FeaturesPlugin_Revolution.h:101
virtual const std::string & getKind()
Definition: FeaturesPlugin_Revolution.h:122
static const std::string & CREATION_METHOD_THROUGH_ALL()
Attribute name for creation method.
Definition: FeaturesPlugin_Revolution.h:52
virtual void execute()
Performs the algorithm and stores results it in the data structure.
Definition: FeaturesPlugin_Revolution.cpp:65
static const std::string & FROM_OFFSET_ID()
Attribute name of revolution offset.
Definition: FeaturesPlugin_Revolution.h:115
static const std::string & CREATION_METHOD_BY_PLANES()
Attribute name for creation method.
Definition: FeaturesPlugin_Revolution.h:66
static const std::string & AXIS_OBJECT_ID()
Attribute name of an revolution axis.
Definition: FeaturesPlugin_Revolution.h:73