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 vtkVector2f ScenePos
Position of the mouse the scene coordinate system.
vtkVector2f LastPos
`Pos' at the previous mouse event.
void SetScenePos(const vtkVector2f &pos)
Set/get the position of the mouse in scene coordinates.
int Button
Mouse button that caused the event, using the anonymous enumeration.
vtkVector2f Pos
Position of the mouse in item coordinate system.
vtkRenderWindowInteractor * Interactor
vtkVector2i LastScreenPos
`ScreenPos' at the previous mouse event.
platform-independent render window interaction including picking and frame rate control.
vtkVector2i ScreenPos
Position of the mouse in screen coordinates.
void SetButton(int button)
Set/get the mouse button that caused the event, with possible values being NO_BUTTON, LEFT_BUTTON, MIDDLE_BUTTON and RIGHT_BUTTON.
data structure to represent mouse events.
vtkVector2i GetScreenPos() const
void SetPos(const vtkVector2f &pos)
Set/get the position of the mouse in the item's coordinates.
vtkVector2f GetScenePos() const
Some derived classes for the different vectors commonly used.
vtkRenderWindowInteractor * GetInteractor() const
Get the interactor for the mouse event.
vtkVector2f LastScenePos
`ScenePos'at the previous mouse event.
void SetScreenPos(const vtkVector2i &pos)
Set/get the position of the mouse in screen coordinates.
vtkVector2f GetLastPos() const
vtkVector2f GetPos() const
vtkVector2f GetLastScenePos() const
void SetLastPos(const vtkVector2f &pos)
Set/get the position of the mouse in the item's coordinates.
void SetInteractor(vtkRenderWindowInteractor *interactor)
Set the interactor for the mouse event.
void SetLastScenePos(const vtkVector2f &pos)
Set/get the position of the mouse in scene coordinates.
vtkVector2i GetLastScreenPos() const
void SetLastScreenPos(const vtkVector2i &pos)
Set/get the position of the mouse in screen coordinates.