X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_OperationSketchBase.cpp;h=4113c3cba83fbab23eed59174fbd7e08d98cb4a3;hb=1d7a043abfadf964bf38802e8adb5a4773fec900;hp=04d5be75679729c374a514f9a97eb67dff3aeaf6;hpb=6861e302bc1262afc17afc626b050295333a3af1;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_OperationSketchBase.cpp b/src/PartSet/PartSet_OperationSketchBase.cpp index 04d5be756..4113c3cba 100644 --- a/src/PartSet/PartSet_OperationSketchBase.cpp +++ b/src/PartSet/PartSet_OperationSketchBase.cpp @@ -1,57 +1,53 @@ +// File: PartSet_OperationSketchBase.cpp +// Created: 20 Apr 2014 +// Author: Natalia ERMOLAEVA + #include #include +#include + #ifdef _DEBUG #include #endif using namespace std; -/*! - \brief Constructor - \param theId an feature index - \param theParent the object parent - */ PartSet_OperationSketchBase::PartSet_OperationSketchBase(const QString& theId, QObject* theParent) -: ModuleBase_PropPanelOperation(theId, theParent) +: ModuleBase_Operation(theId, theParent) { } -/*! - * \brief Destructor - */ PartSet_OperationSketchBase::~PartSet_OperationSketchBase() { } -/** - * Returns the feature preview shape - */ -const TopoDS_Shape& PartSet_OperationSketchBase::preview() const +boost::shared_ptr PartSet_OperationSketchBase::preview( + boost::shared_ptr theFeature) const { boost::shared_ptr aFeature = - boost::dynamic_pointer_cast(feature()); - return aFeature->preview()->impl(); + boost::dynamic_pointer_cast(theFeature); + return aFeature->preview(); } -/*! - * Perform the operation start and emit signal about visualization of the operation preview - */ -void PartSet_OperationSketchBase::startOperation() +boost::shared_ptr PartSet_OperationSketchBase::createFeature() { - ModuleBase_PropPanelOperation::startOperation(); - - emit visualizePreview(true); + boost::shared_ptr aFeature = ModuleBase_Operation::createFeature(); + emit featureConstructed(aFeature, FM_Activation); + return aFeature; } -/*! - * Perform the operation stop and emit signal about visualization stop of the operation preview - */ -void PartSet_OperationSketchBase::stopOperation() -{ - ModuleBase_PropPanelOperation::stopOperation(); - emit visualizePreview(false); +void PartSet_OperationSketchBase::mousePressed(QMouseEvent* theEvent, Handle_V3d_View theView) +{ +} +void PartSet_OperationSketchBase::mouseReleased(QMouseEvent* theEvent, Handle_V3d_View theView, + const std::list& theSelected) +{ +} +void PartSet_OperationSketchBase::mouseMoved(QMouseEvent* theEvent, Handle(V3d_View) theView, + const std::list& theSelected) +{ }