20 #ifndef PRIMITIVESPLUGIN_CYLINDER_H_
21 #define PRIMITIVESPLUGIN_CYLINDER_H_
23 #include <PrimitivesPlugin.h>
24 #include <ModelAPI_Feature.h>
25 #include <GeomAlgoAPI_Cylinder.h>
41 inline static const std::string&
ID()
43 static const std::string MY_CYLINDER_ID(
"Cylinder");
44 return MY_CYLINDER_ID;
50 static const std::string MY_CREATION_METHOD_ID(
"CreationMethod");
51 return MY_CREATION_METHOD_ID;
57 static const std::string MY_CREATION_METHOD_ID(
"Cylinder");
58 return MY_CREATION_METHOD_ID;
64 static const std::string MY_CREATION_METHOD_ID(
"CylinderPortion");
65 return MY_CREATION_METHOD_ID;
71 static const std::string MY_BASE_POINT_ID(
"base_point");
72 return MY_BASE_POINT_ID;
76 inline static const std::string&
AXIS_ID()
78 static const std::string MY_AXIS_ID(
"axis");
85 static const std::string MY_RADIUS_ID(
"radius");
92 static const std::string MY_HEIGHT_ID(
"height");
99 static const std::string MY_ANGLE_ID(
"angle");
104 PRIMITIVESPLUGIN_EXPORT
virtual const std::string&
getKind()
111 PRIMITIVESPLUGIN_EXPORT
virtual void execute();
121 void loadNamingDS(std::shared_ptr<GeomAlgoAPI_Cylinder> theCylinderAlgo,
122 std::shared_ptr<ModelAPI_ResultBody> theResultCylinder);
125 void createCylinder(
bool withAngle);
Interface to the topological shape object.
Definition: GeomAPI_Shape.h:43
Feature function that represents the particular functionality of this operation.
Definition: ModelAPI_Feature.h:41
The body (shape) result of a feature.
Definition: ModelAPI_ResultBody.h:43
Feature for creation of a cylinder.
Definition: PrimitivesPlugin_Cylinder.h:38
static const std::string & CREATION_METHOD_CYLINDER()
Attribute name for creation method.
Definition: PrimitivesPlugin_Cylinder.h:55
virtual PRIMITIVESPLUGIN_EXPORT void initAttributes()
Request for initialization of data model of the feature: adding all attributes.
Definition: PrimitivesPlugin_Cylinder.cpp:42
virtual PRIMITIVESPLUGIN_EXPORT void execute()
Creates a new part document if needed.
Definition: PrimitivesPlugin_Cylinder.cpp:83
PrimitivesPlugin_Cylinder()
Use plugin manager for features creation.
Definition: PrimitivesPlugin_Cylinder.cpp:37
static const std::string & CREATION_METHOD()
Attribute name for creation method.
Definition: PrimitivesPlugin_Cylinder.h:48
static const std::string & RADIUS_ID()
Attribute name of the radius.
Definition: PrimitivesPlugin_Cylinder.h:83
static const std::string & ANGLE_ID()
Attribute name of the angle.
Definition: PrimitivesPlugin_Cylinder.h:97
static const std::string & AXIS_ID()
Attribute name of the axis.
Definition: PrimitivesPlugin_Cylinder.h:76
static const std::string & CREATION_METHOD_CYLINDER_PORTION()
Attribute name for creation method.
Definition: PrimitivesPlugin_Cylinder.h:62
static const std::string & ID()
Cylinder kind.
Definition: PrimitivesPlugin_Cylinder.h:41
static const std::string & BASE_POINT_ID()
Attribute name of the base point.
Definition: PrimitivesPlugin_Cylinder.h:69
static const std::string & HEIGHT_ID()
Attribute name of the height.
Definition: PrimitivesPlugin_Cylinder.h:90
virtual PRIMITIVESPLUGIN_EXPORT const std::string & getKind()
Returns the kind of a feature.
Definition: PrimitivesPlugin_Cylinder.h:104