20 #ifndef FeaturesPlugin_Chamfer_H_
21 #define FeaturesPlugin_Chamfer_H_
23 #include "FeaturesPlugin_VersionedChFi.h"
33 inline static const std::string&
ID()
35 static const std::string MY_ID(
"Chamfer");
40 FEATURESPLUGIN_EXPORT
virtual const std::string&
getKind()
46 inline static const std::string& CREATION_METHOD()
48 static std::string MY_CREATION_METHOD(
"creation_method");
49 return MY_CREATION_METHOD;
52 inline static const std::string CREATION_METHOD_DISTANCE_DISTANCE()
54 static std::string MY_SINGLE_RADIUS(
"distance_distance");
55 return MY_SINGLE_RADIUS;
58 inline static const std::string CREATION_METHOD_DISTANCE_ANGLE()
60 static std::string MY_VARYING_RADIUS(
"distance_angle");
61 return MY_VARYING_RADIUS;
67 static const std::string MY_OBJECT_LIST_ID(
"main_objects");
68 return MY_OBJECT_LIST_ID;
72 inline static const std::string&
D1_ID()
74 static const std::string MY_D1_ID(
"d1");
79 inline static const std::string&
D2_ID()
81 static const std::string MY_D2_ID(
"d2");
86 inline static const std::string&
D_ID()
88 static const std::string MY_D_ID(
"d");
95 static const std::string MY_ANGLE_ID(
"angle");
107 virtual std::shared_ptr<ModelAPI_Attribute> objectsAttribute();
110 virtual const std::string& modifiedShapePrefix()
const;
113 virtual std::shared_ptr<GeomAlgoAPI_MakeShape>
114 performOperation(
const GeomShapePtr& theSolid,
const ListOfShape& theEdges);
Feature for applying the Chamfer operations on Solids.
Definition: FeaturesPlugin_Chamfer.h:30
static const std::string & ANGLE_ID()
Attribute name of Angle.
Definition: FeaturesPlugin_Chamfer.h:93
static const std::string & OBJECT_LIST_ID()
Attribute name of main objects.
Definition: FeaturesPlugin_Chamfer.h:65
static const std::string & D2_ID()
Attribute name of D2.
Definition: FeaturesPlugin_Chamfer.h:79
static const std::string & D1_ID()
Attribute name of D1.
Definition: FeaturesPlugin_Chamfer.h:72
virtual void initAttributes()
Request for initialization of data model of the feature: adding all attributes.
Definition: FeaturesPlugin_Chamfer.cpp:77
FeaturesPlugin_Chamfer()
Use plugin manager for features creation.
Definition: FeaturesPlugin_Chamfer.cpp:73
static const std::string & ID()
Feature kind.
Definition: FeaturesPlugin_Chamfer.h:33
virtual const std::string & getKind()
Definition: FeaturesPlugin_Chamfer.h:40
static const std::string & D_ID()
Attribute name of D.
Definition: FeaturesPlugin_Chamfer.h:86
Base feature for the Fillet and the Chamfer operations which supports versioning.
Definition: FeaturesPlugin_VersionedChFi.h:37