24 #ifndef PRIMITIVESPLUGIN_CONE_H_
25 #define PRIMITIVESPLUGIN_CONE_H_
27 #include <PrimitivesPlugin.h>
28 #include <ModelAPI_Feature.h>
29 #include <GeomAlgoAPI_Cone.h>
41 inline static const std::string&
ID()
43 static const std::string MY_CONE_ID(
"Cone");
50 static const std::string MY_BASE_POINT_ID(
"base_point");
51 return MY_BASE_POINT_ID;
55 inline static const std::string&
AXIS_ID()
57 static const std::string MY_AXIS_ID(
"axis");
64 static const std::string MY_BASE_RADIUS_ID(
"base_radius");
65 return MY_BASE_RADIUS_ID;
71 static const std::string MY_TOP_RADIUS_ID(
"top_radius");
72 return MY_TOP_RADIUS_ID;
78 static const std::string MY_HEIGHT_ID(
"height");
83 PRIMITIVESPLUGIN_EXPORT
virtual const std::string&
getKind()
90 PRIMITIVESPLUGIN_EXPORT
virtual void execute();
100 void loadNamingDS(std::shared_ptr<GeomAlgoAPI_Cone> theConeAlgo,
101 std::shared_ptr<ModelAPI_ResultBody> theResultCone);
Feature function that represents the particular functionality of this operation.
Definition: ModelAPI_Feature.h:39
Feature for creation of a cone.
Definition: PrimitivesPlugin_Cone.h:38
static const std::string & BASE_POINT_ID()
Attribute name of the base point.
Definition: PrimitivesPlugin_Cone.h:48
static const std::string & BASE_RADIUS_ID()
Attribute name of the base radius.
Definition: PrimitivesPlugin_Cone.h:62
static const std::string & ID()
Cone kind.
Definition: PrimitivesPlugin_Cone.h:41
virtual PRIMITIVESPLUGIN_EXPORT const std::string & getKind()
Returns the kind of a feature.
Definition: PrimitivesPlugin_Cone.h:83
PrimitivesPlugin_Cone()
Use plugin manager for features creation.
Definition: PrimitivesPlugin_Cone.cpp:42
static const std::string & HEIGHT_ID()
Attribute name of the radius.
Definition: PrimitivesPlugin_Cone.h:76
static const std::string & TOP_RADIUS_ID()
Attribute name of the radius.
Definition: PrimitivesPlugin_Cone.h:69
static const std::string & AXIS_ID()
Attribute name of the axis.
Definition: PrimitivesPlugin_Cone.h:55
virtual PRIMITIVESPLUGIN_EXPORT void execute()
Creates a new part document if needed.
Definition: PrimitivesPlugin_Cone.cpp:86
virtual PRIMITIVESPLUGIN_EXPORT void initAttributes()
Request for initialization of data model of the feature: adding all attributes.
Definition: PrimitivesPlugin_Cone.cpp:47