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 boost::shared_ptr<SketchPlugin_Feature> aFeature =
35 boost::dynamic_pointer_cast<SketchPlugin_Feature>(feature());
36 return aFeature->preview()->impl<TopoDS_Shape>();
40 * Perform the operation start and emit signal about visualization of the operation preview
42 void PartSet_OperationSketchBase::startOperation()
44 ModuleBase_PropPanelOperation::startOperation();
46 emit visualizePreview(true);
50 * Perform the operation stop and emit signal about visualization stop of the operation preview
52 void PartSet_OperationSketchBase::stopOperation()
54 ModuleBase_PropPanelOperation::stopOperation();
56 emit visualizePreview(false);