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 GetScenePos() const
vtkVector2i GetScreenPos() const
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.
vtkVector2i GetLastScreenPos() const
vtkVector2f GetLastPos() const
platform-independent render window interaction including picking and frame rate control.
vtkVector2i ScreenPos
Position of the mouse in screen coordinates.
vtkVector2f GetLastScenePos() const
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.
vtkRenderWindowInteractor * GetInteractor() const
Get the interactor for the mouse event.
void SetPos(const vtkVector2f &pos)
Set/get the position of the mouse in the item's coordinates.
Some derived classes for the different vectors commonly used.
vtkVector2f LastScenePos
`ScenePos'at the previous mouse event.
void SetScreenPos(const vtkVector2i &pos)
Set/get the position of the mouse in screen coordinates.
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.
vtkVector2f GetPos() const
void SetLastScreenPos(const vtkVector2i &pos)
Set/get the position of the mouse in screen coordinates.