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.
void OnLeftButtonUp() override
Called when the user releases the mouse left button.
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
abstract base class for most VTK objects
vtkWeakPointer< vtkContextScene > Scene
void OnChar() override
Handle key presses.
void OnKeyPress() override
Called when the user presses a key.
vtkNew< vtkCallbackCommand > InteractorCallbackCommand
void EndProcessingEvent()
Inform the interactor style that an event is finished to be processed.
void OnMouseWheelForward() override
Called when the user moves the mouse wheel forward.
void OnMouseMove() override
Called when the user moves the mouse Default behavior forwards the event to the observed scene.
Provides a 2D scene for vtkContextItem objects.
void BeginProcessingEvent()
Inform the interactor style that an event is being processed.
void OnMouseWheelBackward() override
Called when the user moves the mouse wheel backward.
a simple class to control print indentation
static void ProcessSceneEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
void OnRightButtonUp() override
Called when the user releases the mouse right button.
~vtkContextInteractorStyle() override
static void ProcessInteractorEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
void OnRightButtonDown() override
Called when the user clicks the mouse right button.
void OnKeyRelease() override
Called when the user releases a key.
provide event-driven interface to the rendering window (defines trackball mode)
vtkContextInteractorStyle()
virtual void OnSceneModified()
Called when the scene is modified.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void OnLeftButtonDown() override
Called when the user clicks the mouse left button.
void OnMiddleButtonUp() override
Called when the user releases the mouse middle button.
An interactor for chart views.
vtkNew< vtkCallbackCommand > SceneCallbackCommand
bool TimerCallbackInitialized
void OnMiddleButtonDown() override
Called when the user clicks the mouse middle button.
vtkTypeUInt32 vtkMTimeType