20 #ifndef FeaturesPlugin_Fillet1D_H_
21 #define FeaturesPlugin_Fillet1D_H_
23 #include <FeaturesPlugin.h>
25 #include <GeomAPI_Shape.h>
26 #include <ModelAPI_Feature.h>
35 typedef std::map<GeomShapePtr, ListOfShape, GeomAPI_Shape::Comparator> MapShapeSubs;
39 inline static const std::string&
ID()
41 static const std::string MY_ID(
"Fillet1D");
46 FEATURESPLUGIN_EXPORT
virtual const std::string&
getKind()
52 inline static const std::string& CREATION_METHOD()
54 static std::string MY_CREATION_METHOD(
"creation_method");
55 return MY_CREATION_METHOD;
58 inline static const std::string CREATION_BY_WIRES()
60 static std::string MY_SINGLE_RADIUS(
"by_wires");
61 return MY_SINGLE_RADIUS;
64 inline static const std::string CREATION_BY_VERTICES()
66 static std::string MY_VARYING_RADIUS(
"by_vertices");
67 return MY_VARYING_RADIUS;
73 static const std::string MY_OBJECT_LIST_ID(
"main_wires");
74 return MY_OBJECT_LIST_ID;
80 static const std::string MY_OBJECT_LIST_ID(
"main_vertices");
81 return MY_OBJECT_LIST_ID;
87 static const std::string MY_RADIUS_ID(
"radius");
96 FEATURESPLUGIN_EXPORT
virtual void attributeChanged(
const std::string& theID);
99 FEATURESPLUGIN_EXPORT
virtual void execute();
107 bool baseShapes(ListOfShape& theWires, MapShapeSubs& theWireVertices);
111 bool performFillet(
const GeomShapePtr& theWire,
112 const ListOfShape& theVertices,
113 const int theResultIndex);
116 ListOfShape myFailedVertices;
Feature for appling fillet on vertices of 3D wire.
Definition: FeaturesPlugin_Fillet1D.h:34
static const std::string & ID()
Feature kind.
Definition: FeaturesPlugin_Fillet1D.h:39
static const std::string & RADIUS_ID()
Attribute name of radius.
Definition: FeaturesPlugin_Fillet1D.h:85
static const std::string & WIRE_LIST_ID()
Attribute name of selected wires.
Definition: FeaturesPlugin_Fillet1D.h:71
virtual FEATURESPLUGIN_EXPORT void attributeChanged(const std::string &theID)
Called on change of any argument-attribute of this object.
Definition: FeaturesPlugin_Fillet1D.cpp:71
virtual FEATURESPLUGIN_EXPORT void initAttributes()
Request for initialization of data model of the feature: adding all attributes.
Definition: FeaturesPlugin_Fillet1D.cpp:49
virtual FEATURESPLUGIN_EXPORT void execute()
Performs the fillet algorithm and stores it in the data structure.
Definition: FeaturesPlugin_Fillet1D.cpp:57
FeaturesPlugin_Fillet1D()
Use plugin manager for features creation.
Definition: FeaturesPlugin_Fillet1D.cpp:45
static const std::string & VERTEX_LIST_ID()
Attribute name of selected vertices.
Definition: FeaturesPlugin_Fillet1D.h:78
virtual FEATURESPLUGIN_EXPORT const std::string & getKind()
Definition: FeaturesPlugin_Fillet1D.h:46
Feature function that represents the particular functionality of this operation.
Definition: ModelAPI_Feature.h:41