1 // File: PartSet_OperationSketchBase.cpp
2 // Created: 20 Apr 2014
3 // Author: Natalia ERMOLAEVA
5 #include <PartSet_OperationSketchBase.h>
7 #include <SketchPlugin_Feature.h>
15 PartSet_OperationSketchBase::PartSet_OperationSketchBase(const QString& theId,
17 : ModuleBase_Operation(theId, theParent)
21 PartSet_OperationSketchBase::~PartSet_OperationSketchBase()
25 boost::shared_ptr<GeomAPI_Shape> PartSet_OperationSketchBase::preview(
26 boost::shared_ptr<ModelAPI_Feature> theFeature) const
28 boost::shared_ptr<SketchPlugin_Feature> aFeature =
29 boost::dynamic_pointer_cast<SketchPlugin_Feature>(theFeature);
30 return aFeature->preview();
33 boost::shared_ptr<ModelAPI_Feature> PartSet_OperationSketchBase::createFeature()
35 boost::shared_ptr<ModelAPI_Feature> aFeature = ModuleBase_Operation::createFeature();
36 emit featureConstructed(aFeature, FM_Activation);