20 #ifndef FeaturesPlugin_VersionedChFi_H_
21 #define FeaturesPlugin_VersionedChFi_H_
23 #include "FeaturesPlugin.h"
25 #include <GeomAPI_Shape.h>
26 #include <GeomAPI_ShapeHierarchy.h>
28 #include <ModelAPI_Feature.h>
40 FEATURESPLUGIN_EXPORT
virtual void execute();
46 void initVersion(
const std::shared_ptr<ModelAPI_Attribute>& theObjectsAttr);
49 bool processAttribute(
const std::shared_ptr<ModelAPI_Attribute>& theAttribute,
59 virtual std::shared_ptr<GeomAlgoAPI_MakeShape>
Base feature for the Fillet and the Chamfer operations which supports versioning.
Definition: FeaturesPlugin_VersionedChFi.h:37
void initVersion(const std::shared_ptr< ModelAPI_Attribute > &theObjectsAttr)
Initialize the version for the newly created feature.
Definition: FeaturesPlugin_VersionedChFi.cpp:48
virtual void execute()
Performs the fillet algorithm and stores it in the data structure.
Definition: FeaturesPlugin_VersionedChFi.cpp:56
virtual std::shared_ptr< GeomAlgoAPI_MakeShape > performOperation(const GeomShapePtr &theSolid, const ListOfShape &theEdges)=0
Run chamfer/fillet operation and returns the modification algorithm if succeed.
bool processAttribute(const std::shared_ptr< ModelAPI_Attribute > &theAttribute, GeomAPI_ShapeHierarchy &theObjects)
Process SelectionList attribute and fill the objects hierarchy.
Definition: FeaturesPlugin_VersionedChFi.cpp:109
virtual std::shared_ptr< ModelAPI_Attribute > objectsAttribute()=0
Return attribute storing the selected objects of the operation.
virtual const std::string & modifiedShapePrefix() const =0
Return name of modified shape prefix name.
Storage for the hierarchy of shapes and their parents (compounds or compsolids)
Definition: GeomAPI_ShapeHierarchy.h:34
Interface to the root class of all topological shapes constructions.
Definition: GeomAlgoAPI_MakeShape.h:35
Feature function that represents the particular functionality of this operation.
Definition: ModelAPI_Feature.h:41