24 #ifndef PRIMITIVESPLUGIN_TORUS_H_
25 #define PRIMITIVESPLUGIN_TORUS_H_
27 #include <PrimitivesPlugin.h>
28 #include <ModelAPI_Feature.h>
29 #include <GeomAlgoAPI_Torus.h>
41 inline static const std::string&
ID()
43 static const std::string MY_TORUS_ID(
"Torus");
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_RADIUS_ID(
"radius");
71 static const std::string MY_RING_RADIUS_ID(
"ring_radius");
72 return MY_RING_RADIUS_ID;
76 PRIMITIVESPLUGIN_EXPORT
virtual const std::string&
getKind()
83 PRIMITIVESPLUGIN_EXPORT
virtual void execute();
93 void loadNamingDS(std::shared_ptr<GeomAlgoAPI_Torus> theTorusAlgo,
94 std::shared_ptr<ModelAPI_ResultBody> theResultTorus);
Feature function that represents the particular functionality of this operation.
Definition: ModelAPI_Feature.h:41
Feature for creation of a torus.
Definition: PrimitivesPlugin_Torus.h:38
virtual PRIMITIVESPLUGIN_EXPORT void execute()
Creates a new part document if needed.
Definition: PrimitivesPlugin_Torus.cpp:84
static const std::string & BASE_POINT_ID()
Attribute name of the base point.
Definition: PrimitivesPlugin_Torus.h:48
static const std::string & ID()
Torus kind.
Definition: PrimitivesPlugin_Torus.h:41
static const std::string & RING_RADIUS_ID()
Attribute name of the section radius.
Definition: PrimitivesPlugin_Torus.h:69
virtual PRIMITIVESPLUGIN_EXPORT void initAttributes()
Request for initialization of data model of the feature: adding all attributes.
Definition: PrimitivesPlugin_Torus.cpp:47
static const std::string & RADIUS_ID()
Attribute name of the radius.
Definition: PrimitivesPlugin_Torus.h:62
static const std::string & AXIS_ID()
Attribute name of the axis.
Definition: PrimitivesPlugin_Torus.h:55
virtual PRIMITIVESPLUGIN_EXPORT const std::string & getKind()
Returns the kind of a feature.
Definition: PrimitivesPlugin_Torus.h:76
PrimitivesPlugin_Torus()
Use plugin manager for features creation.
Definition: PrimitivesPlugin_Torus.cpp:42