1 #include <PartSet_OperationSketchBase.h>
3 #include <SketchPlugin_Feature.h>
13 \param theId an feature index
14 \param theParent the object parent
16 PartSet_OperationSketchBase::PartSet_OperationSketchBase(const QString& theId,
18 : ModuleBase_PropPanelOperation(theId, theParent)
25 PartSet_OperationSketchBase::~PartSet_OperationSketchBase()
30 * Returns the feature preview shape
32 const TopoDS_Shape& PartSet_OperationSketchBase::preview() const
34 shared_ptr<SketchPlugin_Feature> aFeature = dynamic_pointer_cast<SketchPlugin_Feature>(feature());
35 return *(static_cast<TopoDS_Shape*>(aFeature->preview()->implementation()));
39 * Perform the operation start and emit signal about visualization of the operation preview
41 void PartSet_OperationSketchBase::startOperation()
43 ModuleBase_PropPanelOperation::startOperation();
45 emit visualizePreview(true);
49 * Perform the operation stop and emit signal about visualization stop of the operation preview
51 void PartSet_OperationSketchBase::stopOperation()
53 ModuleBase_PropPanelOperation::stopOperation();
55 emit visualizePreview(false);