Go to the documentation of this file.
28 #ifndef vtkContextInteractorStyle_h
29 #define vtkContextInteractorStyle_h
31 #include "vtkViewsContext2DModule.h"
145 void* clientdata,
void* calldata);
148 void* clientdata,
void* calldata);
data structure to represent mouse events.
virtual void OnKeyRelease()
Called when the user releases a key.
~vtkContextInteractorStyle()
void SetScene(vtkContextScene *scene)
Set the scene to forward user events to.
static vtkContextInteractorStyle * New()
vtkContextScene * GetScene()
Return the observed scene.
virtual void OnSelection(unsigned int rect[5])
Place holder for future implementation.
vtkMTimeType LastSceneRepaintMTime
virtual void OnMiddleButtonDown()
Called when the user clicks the mouse middle button.
virtual void OnMouseMove()
Called when the user moves the mouse Default behavior forwards the event to the observed scene.
abstract base class for most VTK objects
vtkWeakPointer< vtkContextScene > Scene
vtkNew< vtkCallbackCommand > InteractorCallbackCommand
void EndProcessingEvent()
Inform the interactor style that an event is finished to be processed.
virtual void OnMiddleButtonUp()
Called when the user releases the mouse middle button.
virtual void OnRightButtonUp()
Called when the user releases the mouse right button.
vtkTypeUInt64 vtkMTimeType
virtual void OnMouseWheelForward()
Called when the user moves the mouse wheel forward.
virtual void OnMouseWheelBackward()
Called when the user moves the mouse wheel backward.
Provides a 2D scene for vtkContextItem objects.
virtual void OnChar()
Handle key presses.
void BeginProcessingEvent()
Inform the interactor style that an event is being processed.
a simple class to control print indentation
static void ProcessSceneEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
static void ProcessInteractorEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
provide event-driven interface to the rendering window (defines trackball mode)
vtkContextInteractorStyle()
virtual void OnSceneModified()
Called when the scene is modified.
virtual void OnLeftButtonUp()
Called when the user releases the mouse left button.
virtual void OnLeftButtonDown()
Called when the user clicks the mouse left button.
An interactor for chart views.
vtkNew< vtkCallbackCommand > SceneCallbackCommand
bool TimerCallbackInitialized
virtual void OnRightButtonDown()
Called when the user clicks the mouse right button.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void OnKeyPress()
Called when the user presses a key.