|
SHAPER
9.15.0
|
Interface for mouse events processing. More...

Public Member Functions | |
| virtual void | mouseMoved (ModuleBase_IViewWindow *theWindow, QMouseEvent *theEvent) |
| Processing the mouse move event in the viewer. More... | |
| virtual void | mousePressed (ModuleBase_IViewWindow *theWindow, QMouseEvent *theEvent) |
| Processing the mouse press event in the viewer. More... | |
| virtual void | mouseReleased (ModuleBase_IViewWindow *theWindow, QMouseEvent *theEvent) |
| Processing the mouse release event in the viewer. More... | |
| virtual void | mouseDoubleClick (ModuleBase_IViewWindow *theWindow, QMouseEvent *theEvent) |
| Processing the mouse double click event in the viewer. More... | |
| virtual void | setPreSelection (const std::shared_ptr< ModuleBase_ViewerPrs > &thePreSelected, ModuleBase_IViewWindow *theWnd, QMouseEvent *theEvent) |
| Fill preselection used in mouseReleased. More... | |
Static Public Member Functions | |
| 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. More... | |
Interface for mouse events processing.
|
inlinevirtual |
Processing the mouse move event in the viewer.
| theWindow | a view window |
| theEvent | a mouse event |
Reimplemented in PartSet_WidgetPoint2D, PartSet_WidgetFeaturePointSelector, and PartSet_WidgetBSplinePoints.
|
inlinevirtual |
Processing the mouse press event in the viewer.
| theWindow | a view window |
| theEvent | a mouse event |
|
inlinevirtual |
Processing the mouse release event in the viewer.
| theWindow | a view window |
| theEvent | a mouse event |
Reimplemented in PartSet_WidgetPoint2D, PartSet_WidgetFeaturePointSelector, and PartSet_WidgetBSplinePoints.
|
inlinevirtual |
Processing the mouse double click event in the viewer.
| theWindow | a view window |
| theEvent | a mouse event |
|
inlinevirtual |
Fill preselection used in mouseReleased.
Reimplemented in PartSet_WidgetPoint2D, and PartSet_WidgetFeaturePointSelector.
|
static |
Converts position of mouse cursor to local coordinates on sketch plane.
Snaps on-sketch-plane-coordinates to closest construction grid node.
| theEventPos | is position of mouse cursor. |
| theX | and |
| theY | are local coordinates on sketch plane. |
| theSnap | theX and theY are snapped to construction grid if both theSnap == true and snapping is enabled. |
| theHighlight | If point is snapped, highlight grid point. |
| theAddOffset | If true, serves as a remedy for odd crash during drawing of a line on a sketch. |