#include <vtkRenderWindowInteractor.h>
Inheritance diagram for vtkRenderWindowInteractor:
vtkRenderWindowInteractor provides a platform-independent interaction mechanism for mouse/key/time events. It serves as a base class for platform-dependent implementations that handle routing of mouse/key/timer messages to vtkInteractorStyle and its subclasses. vtkRenderWindowInteractor also provides controls for picking, rendering frame rate, and headlights.
vtkRenderWindowInteractor has changed from previous implementations and now serves only as a shell to hold user preferences and route messages to vtkInteractorStyle. Callbacks are available for many Events. Platform specific subclasses should provide methods for CreateTimer/DestroyTimer, TerminateApp, and an event loop if required via Initialize/Start/Enable/Disable.
Definition at line 59 of file vtkRenderWindowInteractor.h.
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | UnRegister (vtkObjectBase *o) |
virtual vtkRenderer * | FindPokedRenderer (int, int) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Initialize () |
void | ReInitialize () |
virtual void | Start () |
virtual void | Enable () |
virtual void | Disable () |
virtual int | GetEnabled () |
void | SetRenderWindow (vtkRenderWindow *aren) |
virtual vtkRenderWindow * | GetRenderWindow () |
virtual void | UpdateSize (int x, int y) |
virtual int | CreateTimer (int) |
virtual int | DestroyTimer () |
virtual void | TerminateApp (void) |
virtual void | SetInteractorStyle (vtkInteractorObserver *) |
virtual vtkInteractorObserver * | GetInteractorStyle () |
virtual void | SetLightFollowCamera (int) |
virtual int | GetLightFollowCamera () |
virtual void | LightFollowCameraOn () |
virtual void | LightFollowCameraOff () |
virtual void | SetDesiredUpdateRate (double) |
virtual double | GetDesiredUpdateRate () |
virtual void | SetStillUpdateRate (double) |
virtual double | GetStillUpdateRate () |
virtual int | GetInitialized () |
virtual void | SetPicker (vtkAbstractPicker *) |
virtual vtkAbstractPicker * | GetPicker () |
virtual vtkAbstractPropPicker * | CreateDefaultPicker () |
virtual void | ExitCallback () |
virtual void | UserCallback () |
virtual void | StartPickCallback () |
virtual void | EndPickCallback () |
virtual void | GetMousePosition (int *x, int *y) |
void | HideCursor () |
void | ShowCursor () |
virtual void | Render () |
void | FlyTo (vtkRenderer *ren, double x, double y, double z) |
void | FlyTo (vtkRenderer *ren, double *x) |
void | FlyToImage (vtkRenderer *ren, double x, double y) |
void | FlyToImage (vtkRenderer *ren, double *x) |
virtual void | SetNumberOfFlyFrames (int) |
virtual int | GetNumberOfFlyFrames () |
virtual void | SetDolly (double) |
virtual double | GetDolly () |
virtual int * | GetEventPosition () |
virtual void | GetEventPosition (int &, int &) |
virtual void | GetEventPosition (int[2]) |
virtual int * | GetLastEventPosition () |
virtual void | GetLastEventPosition (int &, int &) |
virtual void | GetLastEventPosition (int[2]) |
virtual void | SetLastEventPosition (int, int) |
void | SetLastEventPosition (int[2]) |
virtual void | SetEventPosition (int x, int y) |
virtual void | SetEventPosition (int pos[2]) |
virtual void | SetEventPositionFlipY (int x, int y) |
virtual void | SetEventPositionFlipY (int pos[2]) |
virtual void | SetControlKey (int) |
virtual int | GetControlKey () |
virtual void | SetShiftKey (int) |
virtual int | GetShiftKey () |
virtual void | SetKeyCode (char) |
virtual char | GetKeyCode () |
virtual void | SetRepeatCount (int) |
virtual int | GetRepeatCount () |
virtual void | SetKeySym (const char *) |
virtual char * | GetKeySym () |
void | SetEventInformation (int x, int y, int ctrl=0, int shift=0, char keycode=0, int repeatcount=0, const char *keysym=0) |
void | SetEventInformationFlipY (int x, int y, int ctrl=0, int shift=0, char keycode=0, int repeatcount=0, const char *keysym=0) |
void | SetKeyEventInformation (int ctrl=0, int shift=0, char keycode=0, int repeatcount=0, const char *keysym=0) |
virtual void | SetSize (int, int) |
void | SetSize (int[2]) |
virtual int * | GetSize () |
virtual void | GetSize (int &, int &) |
virtual void | GetSize (int[2]) |
virtual void | SetEventSize (int, int) |
void | SetEventSize (int[2]) |
virtual int * | GetEventSize () |
virtual void | GetEventSize (int &, int &) |
virtual void | GetEventSize (int[2]) |
Static Public Member Functions | |
static vtkRenderWindowInteractor * | New () |
static int | IsTypeOf (const char *type) |
static vtkRenderWindowInteractor * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkRenderWindowInteractor () | |
~vtkRenderWindowInteractor () | |
Protected Attributes | |
vtkRenderWindow * | RenderWindow |
vtkInteractorObserver * | InteractorStyle |
vtkAbstractPicker * | Picker |
int | Initialized |
int | Enabled |
int | Style |
int | LightFollowCamera |
int | ActorMode |
double | DesiredUpdateRate |
double | StillUpdateRate |
int | ControlKey |
int | ShiftKey |
char | KeyCode |
int | RepeatCount |
char * | KeySym |
int | EventPosition [2] |
int | LastEventPosition [2] |
int | EventSize [2] |
int | Size [2] |
int | NumberOfFlyFrames |
double | Dolly |
|
Reimplemented from vtkObject. Reimplemented in vtkCarbonRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkGenericRenderWindowInteractor, vtkWin32RenderWindowInteractor, vtkXRenderWindowInteractor, and vtkXRenderWindowTclInteractor. Definition at line 63 of file vtkRenderWindowInteractor.h. |
|
|
|
|
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. Reimplemented from vtkObject. Reimplemented in vtkCarbonRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkGenericRenderWindowInteractor, vtkWin32RenderWindowInteractor, vtkXRenderWindowInteractor, and vtkXRenderWindowTclInteractor. |
|
Reimplemented from vtkObject. Reimplemented in vtkCarbonRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkGenericRenderWindowInteractor, vtkWin32RenderWindowInteractor, vtkXRenderWindowInteractor, and vtkXRenderWindowTclInteractor. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkCarbonRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkGenericRenderWindowInteractor, vtkWin32RenderWindowInteractor, vtkXRenderWindowInteractor, and vtkXRenderWindowTclInteractor. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkCarbonRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkGenericRenderWindowInteractor, vtkWin32RenderWindowInteractor, vtkXRenderWindowInteractor, and vtkXRenderWindowTclInteractor. |
|
Reimplemented from vtkObject. Reimplemented in vtkCarbonRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkGenericRenderWindowInteractor, vtkWin32RenderWindowInteractor, vtkXRenderWindowInteractor, and vtkXRenderWindowTclInteractor. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkObject. Reimplemented in vtkCarbonRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkGenericRenderWindowInteractor, vtkWin32RenderWindowInteractor, vtkXRenderWindowInteractor, and vtkXRenderWindowTclInteractor. |
|
Prepare for handling events. This must be called before the interactor will work. Reimplemented in vtkCarbonRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkWin32RenderWindowInteractor, vtkXRenderWindowInteractor, and vtkXRenderWindowTclInteractor. |
|
Definition at line 70 of file vtkRenderWindowInteractor.h. |
|
This Method detects loops of RenderWindow-Interactor, so objects are freed properly. Reimplemented from vtkObjectBase. |
|
Start the event loop. This is provided so that you do not have to implement your own event loop. You still can use your own event loop if you want. Initialize should be called before Start. Reimplemented in vtkCarbonRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkWin32RenderWindowInteractor, vtkXRenderWindowInteractor, and vtkXRenderWindowTclInteractor. Definition at line 81 of file vtkRenderWindowInteractor.h. |
|
Enable/Disable interactions. By default interactors are enabled when initialized. Initialize() must be called prior to enabling/disabling interaction. These methods are used when a window/widget is being shared by multiple renderers and interactors. This allows a "modal" display where one interactor is active when its data is to be displayed and all other interactors associated with the widget are disabled when their data is not displayed. Reimplemented in vtkCarbonRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkWin32RenderWindowInteractor, vtkXRenderWindowInteractor, and vtkXRenderWindowTclInteractor. Definition at line 91 of file vtkRenderWindowInteractor.h. References vtkObject::Modified(). |
|
Start the event loop. This is provided so that you do not have to implement your own event loop. You still can use your own event loop if you want. Initialize should be called before Start. Reimplemented in vtkCarbonRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkWin32RenderWindowInteractor, vtkXRenderWindowInteractor, and vtkXRenderWindowTclInteractor. Definition at line 92 of file vtkRenderWindowInteractor.h. References vtkObject::Modified(). |
|
Start the event loop. This is provided so that you do not have to implement your own event loop. You still can use your own event loop if you want. Initialize should be called before Start. |
|
Set/Get the rendering window being controlled by this object. |
|
Set/Get the rendering window being controlled by this object. |
|
Event loop notification member for Window size change Reimplemented in vtkXRenderWindowTclInteractor. |
|
Timer methods must be overridden by platform dependent subclasses. flag is passed to indicate if this is first timer set or an update as Win32 uses repeating timers, whereas X uses One shot more timer if flag==VTKXI_TIMER_FIRST Win32 and X should createtimer otherwise Win32 should exit and X should perform AddTimeOut() Reimplemented in vtkCarbonRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkGenericRenderWindowInteractor, vtkWin32RenderWindowInteractor, vtkXRenderWindowInteractor, and vtkXRenderWindowTclInteractor. Definition at line 111 of file vtkRenderWindowInteractor.h. |
|
Event loop notification member for Window size change Reimplemented in vtkCarbonRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkGenericRenderWindowInteractor, vtkWin32RenderWindowInteractor, vtkXRenderWindowInteractor, and vtkXRenderWindowTclInteractor. Definition at line 112 of file vtkRenderWindowInteractor.h. |
|
This function is called on 'q','e' keypress if exitmethod is not specified and should be overridden by platform dependent subclasses to provide a termination procedure if one is required. Reimplemented in vtkCarbonRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkWin32RenderWindowInteractor, vtkXRenderWindowInteractor, and vtkXRenderWindowTclInteractor. Definition at line 118 of file vtkRenderWindowInteractor.h. |
|
External switching between joystick/trackball/new? modes. |
|
This function is called on 'q','e' keypress if exitmethod is not specified and should be overridden by platform dependent subclasses to provide a termination procedure if one is required. |
|
Turn on/off the automatic repositioning of lights as the camera moves. |
|
Turn on/off the automatic repositioning of lights as the camera moves. |
|
Turn on/off the automatic repositioning of lights as the camera moves. |
|
Turn on/off the automatic repositioning of lights as the camera moves. |
|
Set/Get the desired update rate. This is used by vtkLODActor's to tell them how quickly they need to render. This update is in effect only when the camera is being rotated, or zoomed. When the interactor is still, the StillUpdateRate is used instead. |
|
Set/Get the desired update rate. This is used by vtkLODActor's to tell them how quickly they need to render. This update is in effect only when the camera is being rotated, or zoomed. When the interactor is still, the StillUpdateRate is used instead. |
|
Set/Get the desired update rate when movement has stopped. See the SetDesiredUpdateRate method. |
|
Set/Get the desired update rate when movement has stopped. See the SetDesiredUpdateRate method. |
|
See whether interactor has been initialized yet. |
|
Set/Get the object used to perform pick operations. In order to pick instances of vtkProp, the picker must be a subclass of vtkAbstractPropPicker, meaning that it can identify a particular instance of vtkProp. |
|
Set/Get the object used to perform pick operations. In order to pick instances of vtkProp, the picker must be a subclass of vtkAbstractPropPicker, meaning that it can identify a particular instance of vtkProp. |
|
Create default picker. Used to create one when none is specified. Default is an instance of vtkPropPicker. |
|
These methods correspond to the the Exit, User and Pick callbacks. They allow for the Style to invoke them. Reimplemented in vtkCarbonRenderWindowInteractor, vtkCocoaRenderWindowInteractor, and vtkWin32RenderWindowInteractor. |
|
Create default picker. Used to create one when none is specified. Default is an instance of vtkPropPicker. |
|
Create default picker. Used to create one when none is specified. Default is an instance of vtkPropPicker. |
|
Create default picker. Used to create one when none is specified. Default is an instance of vtkPropPicker. |
|
Get the current position of the mouse. Reimplemented in vtkXRenderWindowInteractor. Definition at line 178 of file vtkRenderWindowInteractor.h. |
|
Hide or show the mouse cursor, it is nice to be able to hide the default cursor if you want VTK to display a 3D cursor instead. |
|
Get the current position of the mouse. |
|
Render the scene. Just pass the render call on to the associated vtkRenderWindow. |
|
Given a position x, move the current camera's focal point to x. The movement is animated over the number of frames specified in NumberOfFlyFrames. The LOD desired frame rate is used. |
|
Render the scene. Just pass the render call on to the associated vtkRenderWindow. Definition at line 196 of file vtkRenderWindowInteractor.h. |
|
Render the scene. Just pass the render call on to the associated vtkRenderWindow. |
|
Render the scene. Just pass the render call on to the associated vtkRenderWindow. Definition at line 199 of file vtkRenderWindowInteractor.h. |
|
Set the number of frames to fly to when FlyTo is invoked. |
|
Set the number of frames to fly to when FlyTo is invoked. |
|
Set the total Dolly value to use when flying to (FlyTo()) a specified point. Negative values fly away from the point. |
|
Set the total Dolly value to use when flying to (FlyTo()) a specified point. Negative values fly away from the point. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. Definition at line 225 of file vtkRenderWindowInteractor.h. References vtkObject::Modified(). |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. Definition at line 238 of file vtkRenderWindowInteractor.h. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. Definition at line 242 of file vtkRenderWindowInteractor.h. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. Definition at line 246 of file vtkRenderWindowInteractor.h. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. |
|
Set/Get information about the current event. The current x,y position is in the EventPosition, and the previous event position is in LastEventPosition, updated automatically each time EventPosition is set using its Set() method. The other information is about key board input. |
|
Set all the event information in one call. Definition at line 264 of file vtkRenderWindowInteractor.h. References vtkObject::Modified(). |
|
Calls SetEventInformation, but flips the Y based on the current Size[1] value (i.e. y = this->Size[1] - y - 1). Definition at line 291 of file vtkRenderWindowInteractor.h. |
|
Set all the keyboard-related event information in one call. Definition at line 311 of file vtkRenderWindowInteractor.h. References vtkObject::Modified(). |
|
This methods sets the Size ivar of the interactor without actually changing the size of the window. Normally application programmers would use UpdateSize if anything. This is useful for letting someone else change the size of the rendering window and just letting the interactor know about the change. The current event width/height (if any) is in EventSize (Expose event, for example). |
|
This methods sets the Size ivar of the interactor without actually changing the size of the window. Normally application programmers would use UpdateSize if anything. This is useful for letting someone else change the size of the rendering window and just letting the interactor know about the change. The current event width/height (if any) is in EventSize (Expose event, for example). |
|
This methods sets the Size ivar of the interactor without actually changing the size of the window. Normally application programmers would use UpdateSize if anything. This is useful for letting someone else change the size of the rendering window and just letting the interactor know about the change. The current event width/height (if any) is in EventSize (Expose event, for example). |
|
This methods sets the Size ivar of the interactor without actually changing the size of the window. Normally application programmers would use UpdateSize if anything. This is useful for letting someone else change the size of the rendering window and just letting the interactor know about the change. The current event width/height (if any) is in EventSize (Expose event, for example). |
|
This methods sets the Size ivar of the interactor without actually changing the size of the window. Normally application programmers would use UpdateSize if anything. This is useful for letting someone else change the size of the rendering window and just letting the interactor know about the change. The current event width/height (if any) is in EventSize (Expose event, for example). |
|
This methods sets the Size ivar of the interactor without actually changing the size of the window. Normally application programmers would use UpdateSize if anything. This is useful for letting someone else change the size of the rendering window and just letting the interactor know about the change. The current event width/height (if any) is in EventSize (Expose event, for example). |
|
This methods sets the Size ivar of the interactor without actually changing the size of the window. Normally application programmers would use UpdateSize if anything. This is useful for letting someone else change the size of the rendering window and just letting the interactor know about the change. The current event width/height (if any) is in EventSize (Expose event, for example). |
|
This methods sets the Size ivar of the interactor without actually changing the size of the window. Normally application programmers would use UpdateSize if anything. This is useful for letting someone else change the size of the rendering window and just letting the interactor know about the change. The current event width/height (if any) is in EventSize (Expose event, for example). |
|
This methods sets the Size ivar of the interactor without actually changing the size of the window. Normally application programmers would use UpdateSize if anything. This is useful for letting someone else change the size of the rendering window and just letting the interactor know about the change. The current event width/height (if any) is in EventSize (Expose event, for example). |
|
This methods sets the Size ivar of the interactor without actually changing the size of the window. Normally application programmers would use UpdateSize if anything. This is useful for letting someone else change the size of the rendering window and just letting the interactor know about the change. The current event width/height (if any) is in EventSize (Expose event, for example). |
|
When an event occurs, we must determine which Renderer the event occurred within, since one RenderWindow may contain multiple renderers. |
|
Definition at line 351 of file vtkRenderWindowInteractor.h. |
|
Definition at line 352 of file vtkRenderWindowInteractor.h. |
|
Definition at line 355 of file vtkRenderWindowInteractor.h. |
|
Definition at line 357 of file vtkRenderWindowInteractor.h. |
|
Definition at line 358 of file vtkRenderWindowInteractor.h. |
|
Definition at line 359 of file vtkRenderWindowInteractor.h. |
|
Definition at line 360 of file vtkRenderWindowInteractor.h. |
|
Definition at line 361 of file vtkRenderWindowInteractor.h. |
|
Definition at line 362 of file vtkRenderWindowInteractor.h. |
|
Definition at line 363 of file vtkRenderWindowInteractor.h. |
|
Definition at line 366 of file vtkRenderWindowInteractor.h. |
|
Definition at line 367 of file vtkRenderWindowInteractor.h. |
|
Definition at line 368 of file vtkRenderWindowInteractor.h. |
|
Definition at line 369 of file vtkRenderWindowInteractor.h. |
|
Definition at line 370 of file vtkRenderWindowInteractor.h. |
|
Definition at line 371 of file vtkRenderWindowInteractor.h. |
|
Definition at line 372 of file vtkRenderWindowInteractor.h. |
|
Definition at line 373 of file vtkRenderWindowInteractor.h. |
|
Definition at line 374 of file vtkRenderWindowInteractor.h. |
|
Definition at line 377 of file vtkRenderWindowInteractor.h. |
|
Definition at line 378 of file vtkRenderWindowInteractor.h. |