20 #ifndef GDMLPLUGIN_CONESEGMENT_H_
21 #define GDMLPLUGIN_CONESEGMENT_H_
23 #include <GDMLPlugin.h>
24 #include <ModelAPI_Feature.h>
25 #include <GeomAlgoAPI_ConeSegment.h>
38 inline static const std::string&
ID()
40 static const std::string MY_CONESEGMENT_ID(
"ConeSegment");
41 return MY_CONESEGMENT_ID;
46 static const std::string MY_RMIN1_ID(
"rmin1");
52 static const std::string MY_RMAX1_ID(
"rmax1");
58 static const std::string MY_RMIN2_ID(
"rmin2");
64 static const std::string MY_RMAX2_ID(
"rmax2");
68 inline static const std::string&
Z_ID()
70 static const std::string MY_Z_ID(
"z");
76 static const std::string MY_STARTPHI_ID(
"startphi");
77 return MY_STARTPHI_ID;
82 static const std::string MY_DELTAPHI_ID(
"deltaphi");
83 return MY_DELTAPHI_ID;
87 GDMLPLUGIN_EXPORT
virtual const std::string&
getKind()
94 GDMLPLUGIN_EXPORT
virtual void execute();
104 void loadNamingDS(std::shared_ptr<GeomAlgoAPI_ConeSegment> theConeSegmentAlgo,
105 std::shared_ptr<ModelAPI_ResultBody> theResultConeSegment);
Interface for primitive ConeSegment feature.
Definition: GDMLPlugin_ConeSegment.h:35
static const std::string & RMIN2_ID()
attribute name of the inner radius at top of cone
Definition: GDMLPlugin_ConeSegment.h:56
GDMLPlugin_ConeSegment()
Use plugin manager for features creation.
Definition: GDMLPlugin_ConeSegment.cpp:27
virtual GDMLPLUGIN_EXPORT void execute()
Creates a new part document if needed.
Definition: GDMLPlugin_ConeSegment.cpp:44
virtual GDMLPLUGIN_EXPORT void initAttributes()
Request for initialization of data model of the feature: adding all attributes.
Definition: GDMLPlugin_ConeSegment.cpp:32
static const std::string & DELTAPHI_ID()
attribute name of the angle of the segment
Definition: GDMLPlugin_ConeSegment.h:80
static const std::string & ID()
Cone segment kind.
Definition: GDMLPlugin_ConeSegment.h:38
static const std::string & RMIN1_ID()
attribute name of the inner radius at base of cone
Definition: GDMLPlugin_ConeSegment.h:44
virtual GDMLPLUGIN_EXPORT const std::string & getKind()
Returns the kind of a feature.
Definition: GDMLPlugin_ConeSegment.h:87
static const std::string & STARTPHI_ID()
attribute name of the start angle of the segment
Definition: GDMLPlugin_ConeSegment.h:74
static const std::string & Z_ID()
attribute name of the height of the cone segment
Definition: GDMLPlugin_ConeSegment.h:68
static const std::string & RMAX2_ID()
attribute name of the outer radius at top of cone
Definition: GDMLPlugin_ConeSegment.h:62
static const std::string & RMAX1_ID()
attribute name of the outer radius at base of cone
Definition: GDMLPlugin_ConeSegment.h:50
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