Go to the documentation of this file.
31 #ifndef vtkContextMouseEvent_h
32 #define vtkContextMouseEvent_h
34 #include "vtkRenderingContext2DModule.h"
72 this->Interactor = interactor;
81 return this->Interactor;
131 int GetModifiers()
const;
173 #endif // vtkContextMouseEvent_h
data structure to represent mouse events.
vtkVector2i ScreenPos
Position of the mouse in screen coordinates.
vtkVector2f Pos
Position of the mouse in item coordinate system.
void SetLastScenePos(const vtkVector2f &pos)
Set/get the position of the mouse in scene coordinates.
void SetLastScreenPos(const vtkVector2i &pos)
Set/get the position of the mouse in screen coordinates.
void SetScreenPos(const vtkVector2i &pos)
Set/get the position of the mouse in screen coordinates.
vtkVector2i LastScreenPos
‘ScreenPos’ at the previous mouse event.
vtkVector2i GetScreenPos() const
vtkVector2f LastScenePos
`ScenePos'at the previous mouse event.
void SetLastPos(const vtkVector2f &pos)
Set/get the position of the mouse in the item's coordinates.
void SetPos(const vtkVector2f &pos)
Set/get the position of the mouse in the item's coordinates.
vtkVector2f GetScenePos() const
void SetInteractor(vtkRenderWindowInteractor *interactor)
Set the interactor for the mouse event.
vtkVector2f GetPos() const
void SetButton(int button)
Set/get the mouse button that caused the event, with possible values being NO_BUTTON,...
vtkVector2f GetLastPos() const
platform-independent render window interaction including picking and frame rate control.
vtkVector2f ScenePos
Position of the mouse the scene coordinate system.
vtkVector2f GetLastScenePos() const
vtkRenderWindowInteractor * GetInteractor() const
Get the interactor for the mouse event.
vtkVector2i GetLastScreenPos() const
int Button
Mouse button that caused the event, using the anonymous enumeration.
Some derived classes for the different vectors commonly used.
vtkVector2f LastPos
‘Pos’ at the previous mouse event.
void SetScenePos(const vtkVector2f &pos)
Set/get the position of the mouse in scene coordinates.
vtkRenderWindowInteractor * Interactor