20 #ifndef PartSet_MouseProcessor_H
21 #define PartSet_MouseProcessor_H
28 #pragma warning(disable: 4100)
46 QMouseEvent* theEvent) {}
51 QMouseEvent* theEvent) {}
56 QMouseEvent* theEvent) {}
61 QMouseEvent* theEvent) {}
64 virtual void setPreSelection(
const std::shared_ptr<ModuleBase_ViewerPrs>& thePreSelected,
66 QMouseEvent* theEvent) {}
78 const std::shared_ptr<ModelAPI_CompositeFeature>& theSketch,
80 const QPoint& theEventPos,
81 double& theX,
double& theY,
83 bool theHighlight =
false,
84 bool theAddOffset =
false
Feature that consists of other features: like sketcher with edges inside.
Definition: ModelAPI_CompositeFeature.h:33
Interface to ViewWindow object which contains 3d scene.
Definition: ModuleBase_IViewWindow.h:34
Class which provides access to Workshop object services.
Definition: ModuleBase_IWorkshop.h:48
Presentation.
Definition: ModuleBase_ViewerPrs.h:37
Interface for mouse events processing.
Definition: PartSet_MouseProcessor.h:40
virtual void mouseDoubleClick(ModuleBase_IViewWindow *theWindow, QMouseEvent *theEvent)
Processing the mouse double click event in the viewer.
Definition: PartSet_MouseProcessor.h:60
static bool convertPointToLocal(ModuleBase_IWorkshop *theWorkshop, const std::shared_ptr< ModelAPI_CompositeFeature > &theSketch, ModuleBase_IViewWindow *theWindow, const QPoint &theEventPos, double &theX, double &theY, bool theSnap=true, bool theHighlight=false, bool theAddOffset=false)
Converts position of mouse cursor to local coordinates on sketch plane.
Definition: PartSet_MouseProcessor.cpp:50
virtual void mouseMoved(ModuleBase_IViewWindow *theWindow, QMouseEvent *theEvent)
Processing the mouse move event in the viewer.
Definition: PartSet_MouseProcessor.h:45
virtual void mousePressed(ModuleBase_IViewWindow *theWindow, QMouseEvent *theEvent)
Processing the mouse press event in the viewer.
Definition: PartSet_MouseProcessor.h:50
virtual void setPreSelection(const std::shared_ptr< ModuleBase_ViewerPrs > &thePreSelected, ModuleBase_IViewWindow *theWnd, QMouseEvent *theEvent)
Fill preselection used in mouseReleased.
Definition: PartSet_MouseProcessor.h:64
virtual void mouseReleased(ModuleBase_IViewWindow *theWindow, QMouseEvent *theEvent)
Processing the mouse release event in the viewer.
Definition: PartSet_MouseProcessor.h:55