SHAPER  9.12.0
PartSet_MouseProcessor Class Reference

This is an interface to allow processing of mouse events. More...

Inheritance diagram for PartSet_MouseProcessor:
Inheritance graph

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...
 

Detailed Description

This is an interface to allow processing of mouse events.

Implementation of necessary methods should be done in a child.

Member Function Documentation

◆ mouseMoved()

virtual void PartSet_MouseProcessor::mouseMoved ( ModuleBase_IViewWindow theWindow,
QMouseEvent *  theEvent 
)
inlinevirtual

Processing the mouse move event in the viewer.

Parameters
theWindowa view window
theEventa mouse event

Reimplemented in PartSet_WidgetPoint2D, PartSet_WidgetFeaturePointSelector, and PartSet_WidgetBSplinePoints.

◆ mousePressed()

virtual void PartSet_MouseProcessor::mousePressed ( ModuleBase_IViewWindow theWindow,
QMouseEvent *  theEvent 
)
inlinevirtual

Processing the mouse press event in the viewer.

Parameters
theWindowa view window
theEventa mouse event

◆ mouseReleased()

virtual void PartSet_MouseProcessor::mouseReleased ( ModuleBase_IViewWindow theWindow,
QMouseEvent *  theEvent 
)
inlinevirtual

Processing the mouse release event in the viewer.

Parameters
theWindowa view window
theEventa mouse event

Reimplemented in PartSet_WidgetPoint2D, PartSet_WidgetFeaturePointSelector, and PartSet_WidgetBSplinePoints.

◆ mouseDoubleClick()

virtual void PartSet_MouseProcessor::mouseDoubleClick ( ModuleBase_IViewWindow theWindow,
QMouseEvent *  theEvent 
)
inlinevirtual

Processing the mouse double click event in the viewer.

Parameters
theWindowa view window
theEventa mouse event

◆ setPreSelection()

virtual void PartSet_MouseProcessor::setPreSelection ( const std::shared_ptr< ModuleBase_ViewerPrs > &  thePreSelected,
ModuleBase_IViewWindow theWnd,
QMouseEvent *  theEvent 
)
inlinevirtual

Fill preselection used in mouseReleased.

Reimplemented in PartSet_WidgetPoint2D, and PartSet_WidgetFeaturePointSelector.