VTK
9.1.0
|
platform-independent render window interaction including picking and frame rate control. More...
#include <vtkRenderWindowInteractor.h>
Public Types | |
enum | { OneShotTimer = 1 , RepeatingTimer } |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual vtkTypeBool | IsA (const char *type) |
Return 1 if this class is the same type of (or a subclass of) the named class. More... | |
vtkRenderWindowInteractor * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Methods invoked by print to print information about the object including superclasses. More... | |
void | UnRegister (vtkObjectBase *o) override |
This Method detects loops of RenderWindow-Interactor, so objects are freed properly. More... | |
virtual void | Start () |
Start the event loop. More... | |
virtual void | ProcessEvents () |
Run the event loop and return. More... | |
virtual bool | GetDone () |
Is the interactor loop done. More... | |
virtual void | SetDone (bool) |
virtual void | Enable () |
Enable/Disable interactions. More... | |
virtual void | Disable () |
virtual int | GetEnabled () |
virtual void | UpdateSize (int x, int y) |
Event loop notification member for window size change. More... | |
virtual int | CreateTimer (int timerType) |
This class provides two groups of methods for manipulating timers. More... | |
virtual int | DestroyTimer () |
int | CreateRepeatingTimer (unsigned long duration) |
Create a repeating timer, with the specified duration (in milliseconds). More... | |
int | CreateOneShotTimer (unsigned long duration) |
Create a one shot timer, with the specified duration (in milliseconds). More... | |
int | IsOneShotTimer (int timerId) |
Query whether the specified timerId is a one shot timer. More... | |
unsigned long | GetTimerDuration (int timerId) |
Get the duration (in milliseconds) for the specified timerId. More... | |
int | ResetTimer (int timerId) |
Reset the specified timer. More... | |
int | DestroyTimer (int timerId) |
Destroy the timer specified by timerId. More... | |
virtual int | GetVTKTimerId (int platformTimerId) |
Get the VTK timer ID that corresponds to the supplied platform ID. More... | |
virtual void | TerminateApp (void) |
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. More... | |
virtual vtkAbstractPropPicker * | CreateDefaultPicker () |
Create default picker. More... | |
virtual void | GetMousePosition (int *x, int *y) |
Get the current position of the mouse. More... | |
virtual void | Render () |
Render the scene. More... | |
virtual int * | GetEventPositions (int pointerIndex) |
virtual int * | GetLastEventPositions (int pointerIndex) |
virtual void | SetEventPosition (int x, int y, int pointerIndex) |
virtual void | SetEventPosition (int pos[2], int pointerIndex) |
virtual void | SetEventPositionFlipY (int x, int y, int pointerIndex) |
virtual void | SetEventPositionFlipY (int pos[2], int pointerIndex) |
virtual vtkRenderer * | FindPokedRenderer (int, int) |
When an event occurs, we must determine which Renderer the event occurred within, since one RenderWindow may contain multiple renderers. More... | |
vtkObserverMediator * | GetObserverMediator () |
Return the object used to mediate between vtkInteractorObservers contending for resources. More... | |
virtual void | Initialize () |
Prepare for handling events and set the Enabled flag to true. More... | |
void | ReInitialize () |
Prepare for handling events and set the Enabled flag to true. More... | |
virtual void | EnableRenderOn () |
Enable/Disable whether vtkRenderWindowInteractor::Render() calls this->RenderWindow->Render(). More... | |
virtual void | EnableRenderOff () |
Enable/Disable whether vtkRenderWindowInteractor::Render() calls this->RenderWindow->Render(). More... | |
virtual void | SetEnableRender (bool) |
Enable/Disable whether vtkRenderWindowInteractor::Render() calls this->RenderWindow->Render(). More... | |
virtual bool | GetEnableRender () |
Enable/Disable whether vtkRenderWindowInteractor::Render() calls this->RenderWindow->Render(). More... | |
void | SetRenderWindow (vtkRenderWindow *aren) |
Set/Get the rendering window being controlled by this object. More... | |
virtual vtkRenderWindow * | GetRenderWindow () |
Set/Get the rendering window being controlled by this object. More... | |
void | SetHardwareWindow (vtkHardwareWindow *aren) |
Set/Get the hardware window being controlled by this object. More... | |
virtual vtkHardwareWindow * | GetHardwareWindow () |
Set/Get the hardware window being controlled by this object. More... | |
virtual void | SetTimerDuration (unsigned long) |
Specify the default timer interval (in milliseconds). More... | |
virtual unsigned long | GetTimerDuration () |
Specify the default timer interval (in milliseconds). More... | |
virtual void | SetTimerEventId (int) |
These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent. More... | |
virtual int | GetTimerEventId () |
These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent. More... | |
virtual void | SetTimerEventType (int) |
These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent. More... | |
virtual int | GetTimerEventType () |
These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent. More... | |
virtual void | SetTimerEventDuration (int) |
These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent. More... | |
virtual int | GetTimerEventDuration () |
These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent. More... | |
virtual void | SetTimerEventPlatformId (int) |
These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent. More... | |
virtual int | GetTimerEventPlatformId () |
These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent. More... | |
virtual void | SetInteractorStyle (vtkInteractorObserver *) |
External switching between joystick/trackball/new? modes. More... | |
virtual vtkInteractorObserver * | GetInteractorStyle () |
External switching between joystick/trackball/new? modes. More... | |
virtual void | SetLightFollowCamera (vtkTypeBool) |
Turn on/off the automatic repositioning of lights as the camera moves. More... | |
virtual vtkTypeBool | GetLightFollowCamera () |
Turn on/off the automatic repositioning of lights as the camera moves. More... | |
virtual void | LightFollowCameraOn () |
Turn on/off the automatic repositioning of lights as the camera moves. More... | |
virtual void | LightFollowCameraOff () |
Turn on/off the automatic repositioning of lights as the camera moves. More... | |
virtual void | SetDesiredUpdateRate (double) |
Set/Get the desired update rate. More... | |
virtual double | GetDesiredUpdateRate () |
Set/Get the desired update rate. More... | |
virtual void | SetStillUpdateRate (double) |
Set/Get the desired update rate when movement has stopped. More... | |
virtual double | GetStillUpdateRate () |
Set/Get the desired update rate when movement has stopped. More... | |
virtual int | GetInitialized () |
See whether interactor has been initialized yet. More... | |
virtual void | SetPicker (vtkAbstractPicker *) |
Set/Get the object used to perform pick operations. More... | |
virtual vtkAbstractPicker * | GetPicker () |
Set/Get the object used to perform pick operations. More... | |
virtual void | SetPickingManager (vtkPickingManager *) |
Set the picking manager. More... | |
virtual vtkPickingManager * | GetPickingManager () |
Set the picking manager. More... | |
virtual void | ExitCallback () |
These methods correspond to the Exit, User and Pick callbacks. More... | |
virtual void | UserCallback () |
These methods correspond to the Exit, User and Pick callbacks. More... | |
virtual void | StartPickCallback () |
These methods correspond to the Exit, User and Pick callbacks. More... | |
virtual void | EndPickCallback () |
These methods correspond to the Exit, User and Pick callbacks. More... | |
void | HideCursor () |
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. More... | |
void | ShowCursor () |
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. More... | |
void | FlyTo (vtkRenderer *ren, double x, double y, double z) |
Given a position x, move the current camera's focal point to x. More... | |
void | FlyTo (vtkRenderer *ren, double *x) |
Given a position x, move the current camera's focal point to x. More... | |
void | FlyToImage (vtkRenderer *ren, double x, double y) |
Given a position x, move the current camera's focal point to x. More... | |
void | FlyToImage (vtkRenderer *ren, double *x) |
Given a position x, move the current camera's focal point to x. More... | |
virtual void | SetNumberOfFlyFrames (int) |
Set the number of frames to fly to when FlyTo is invoked. More... | |
virtual int | GetNumberOfFlyFrames () |
Set the number of frames to fly to when FlyTo is invoked. More... | |
virtual void | SetDolly (double) |
Set the total Dolly value to use when flying to (FlyTo()) a specified point. More... | |
virtual double | GetDolly () |
Set the total Dolly value to use when flying to (FlyTo()) a specified point. More... | |
virtual int * | GetEventPosition () |
Set/Get information about the current event. More... | |
virtual void | GetEventPosition (int &, int &) |
Set/Get information about the current event. More... | |
virtual void | GetEventPosition (int[2]) |
Set/Get information about the current event. More... | |
virtual int * | GetLastEventPosition () |
Set/Get information about the current event. More... | |
virtual void | GetLastEventPosition (int &, int &) |
Set/Get information about the current event. More... | |
virtual void | GetLastEventPosition (int[2]) |
Set/Get information about the current event. More... | |
virtual void | SetLastEventPosition (int, int) |
Set/Get information about the current event. More... | |
void | SetLastEventPosition (int[2]) |
Set/Get information about the current event. More... | |
virtual void | SetEventPosition (int x, int y) |
Set/Get information about the current event. More... | |
virtual void | SetEventPosition (int pos[2]) |
Set/Get information about the current event. More... | |
virtual void | SetEventPositionFlipY (int x, int y) |
Set/Get information about the current event. More... | |
virtual void | SetEventPositionFlipY (int pos[2]) |
Set/Get information about the current event. More... | |
virtual void | SetAltKey (int) |
Set/get whether alt modifier key was pressed. More... | |
virtual int | GetAltKey () |
Set/get whether alt modifier key was pressed. More... | |
virtual void | SetControlKey (int) |
Set/get whether control modifier key was pressed. More... | |
virtual int | GetControlKey () |
Set/get whether control modifier key was pressed. More... | |
virtual void | SetShiftKey (int) |
Set/get whether shift modifier key was pressed. More... | |
virtual int | GetShiftKey () |
Set/get whether shift modifier key was pressed. More... | |
virtual void | SetKeyCode (char) |
Set/get the key code for the key that was pressed. More... | |
virtual char | GetKeyCode () |
Set/get the key code for the key that was pressed. More... | |
virtual void | SetRepeatCount (int) |
Set/get the repear count for the key or mouse event. More... | |
virtual int | GetRepeatCount () |
Set/get the repear count for the key or mouse event. More... | |
virtual void | SetKeySym (const char *) |
Set/get the key symbol for the key that was pressed. More... | |
virtual char * | GetKeySym () |
Set/get the key symbol for the key that was pressed. More... | |
virtual void | SetPointerIndex (int) |
Set/get the index of the most recent pointer to have an event. More... | |
virtual int | GetPointerIndex () |
Set/get the index of the most recent pointer to have an event. More... | |
void | SetRotation (double rotation) |
Set/get the rotation for the gesture in degrees, update LastRotation. More... | |
virtual double | GetRotation () |
Set/get the rotation for the gesture in degrees, update LastRotation. More... | |
virtual double | GetLastRotation () |
Set/get the rotation for the gesture in degrees, update LastRotation. More... | |
void | SetScale (double scale) |
Set/get the scale for the gesture, updates LastScale. More... | |
virtual double | GetScale () |
Set/get the scale for the gesture, updates LastScale. More... | |
virtual double | GetLastScale () |
Set/get the scale for the gesture, updates LastScale. More... | |
void | SetTranslation (double val[2]) |
Set/get the translation for pan/swipe gestures, update LastTranslation. More... | |
virtual double * | GetTranslation () |
Set/get the translation for pan/swipe gestures, update LastTranslation. More... | |
virtual void | GetTranslation (double &, double &) |
Set/get the translation for pan/swipe gestures, update LastTranslation. More... | |
virtual void | GetTranslation (double[2]) |
Set/get the translation for pan/swipe gestures, update LastTranslation. More... | |
virtual double * | GetLastTranslation () |
Set/get the translation for pan/swipe gestures, update LastTranslation. More... | |
virtual void | GetLastTranslation (double &, double &) |
Set/get the translation for pan/swipe gestures, update LastTranslation. More... | |
virtual void | GetLastTranslation (double[2]) |
Set/get the translation for pan/swipe gestures, update LastTranslation. More... | |
void | SetEventInformation (int x, int y, int ctrl, int shift, char keycode, int repeatcount, const char *keysym, int pointerIndex) |
Set all the event information in one call. More... | |
void | SetEventInformation (int x, int y, int ctrl=0, int shift=0, char keycode=0, int repeatcount=0, const char *keysym=nullptr) |
Set all the event information in one call. More... | |
void | SetEventInformationFlipY (int x, int y, int ctrl, int shift, char keycode, int repeatcount, const char *keysym, int pointerIndex) |
Calls SetEventInformation, but flips the Y based on the current Size[1] value (i.e. More... | |
void | SetEventInformationFlipY (int x, int y, int ctrl=0, int shift=0, char keycode=0, int repeatcount=0, const char *keysym=nullptr) |
Calls SetEventInformation, but flips the Y based on the current Size[1] value (i.e. More... | |
void | SetKeyEventInformation (int ctrl=0, int shift=0, char keycode=0, int repeatcount=0, const char *keysym=nullptr) |
Set all the keyboard-related event information in one call. More... | |
virtual void | SetSize (int, int) |
This methods sets the Size ivar of the interactor without actually changing the size of the window. More... | |
void | SetSize (int[2]) |
This methods sets the Size ivar of the interactor without actually changing the size of the window. More... | |
virtual int * | GetSize () |
This methods sets the Size ivar of the interactor without actually changing the size of the window. More... | |
virtual void | GetSize (int &, int &) |
This methods sets the Size ivar of the interactor without actually changing the size of the window. More... | |
virtual void | GetSize (int[2]) |
This methods sets the Size ivar of the interactor without actually changing the size of the window. More... | |
virtual void | SetEventSize (int, int) |
This methods sets the Size ivar of the interactor without actually changing the size of the window. More... | |
void | SetEventSize (int[2]) |
This methods sets the Size ivar of the interactor without actually changing the size of the window. More... | |
virtual int * | GetEventSize () |
This methods sets the Size ivar of the interactor without actually changing the size of the window. More... | |
virtual void | GetEventSize (int &, int &) |
This methods sets the Size ivar of the interactor without actually changing the size of the window. More... | |
virtual void | GetEventSize (int[2]) |
This methods sets the Size ivar of the interactor without actually changing the size of the window. More... | |
virtual void | SetUseTDx (bool) |
Use a 3DConnexion device. More... | |
virtual bool | GetUseTDx () |
Use a 3DConnexion device. More... | |
virtual void | MouseMoveEvent () |
Fire various events. More... | |
virtual void | RightButtonPressEvent () |
Fire various events. More... | |
virtual void | RightButtonReleaseEvent () |
Fire various events. More... | |
virtual void | LeftButtonPressEvent () |
Fire various events. More... | |
virtual void | LeftButtonReleaseEvent () |
Fire various events. More... | |
virtual void | MiddleButtonPressEvent () |
Fire various events. More... | |
virtual void | MiddleButtonReleaseEvent () |
Fire various events. More... | |
virtual void | MouseWheelForwardEvent () |
Fire various events. More... | |
virtual void | MouseWheelBackwardEvent () |
Fire various events. More... | |
virtual void | MouseWheelLeftEvent () |
Fire various events. More... | |
virtual void | MouseWheelRightEvent () |
Fire various events. More... | |
virtual void | ExposeEvent () |
Fire various events. More... | |
virtual void | ConfigureEvent () |
Fire various events. More... | |
virtual void | EnterEvent () |
Fire various events. More... | |
virtual void | LeaveEvent () |
Fire various events. More... | |
virtual void | KeyPressEvent () |
Fire various events. More... | |
virtual void | KeyReleaseEvent () |
Fire various events. More... | |
virtual void | CharEvent () |
Fire various events. More... | |
virtual void | ExitEvent () |
Fire various events. More... | |
virtual void | FourthButtonPressEvent () |
Fire various events. More... | |
virtual void | FourthButtonReleaseEvent () |
Fire various events. More... | |
virtual void | FifthButtonPressEvent () |
Fire various events. More... | |
virtual void | FifthButtonReleaseEvent () |
Fire various events. More... | |
virtual void | StartPinchEvent () |
Fire various gesture based events. More... | |
virtual void | PinchEvent () |
Fire various gesture based events. More... | |
virtual void | EndPinchEvent () |
Fire various gesture based events. More... | |
virtual void | StartRotateEvent () |
Fire various gesture based events. More... | |
virtual void | RotateEvent () |
Fire various gesture based events. More... | |
virtual void | EndRotateEvent () |
Fire various gesture based events. More... | |
virtual void | StartPanEvent () |
Fire various gesture based events. More... | |
virtual void | PanEvent () |
Fire various gesture based events. More... | |
virtual void | EndPanEvent () |
Fire various gesture based events. More... | |
virtual void | TapEvent () |
Fire various gesture based events. More... | |
virtual void | LongTapEvent () |
Fire various gesture based events. More... | |
virtual void | SwipeEvent () |
Fire various gesture based events. More... | |
virtual void | SetRecognizeGestures (bool) |
Convert multitouch events into gestures. More... | |
virtual bool | GetRecognizeGestures () |
Convert multitouch events into gestures. More... | |
virtual int | GetPointersDownCount () |
When handling gestures you can query this value to determine how many pointers are down for the gesture this is useful for pan gestures for example. More... | |
void | ClearContact (size_t contactID) |
Most multitouch systems use persistent contact/pointer ids to track events/motion during multitouch events. More... | |
int | GetPointerIndexForContact (size_t contactID) |
Most multitouch systems use persistent contact/pointer ids to track events/motion during multitouch events. More... | |
int | GetPointerIndexForExistingContact (size_t contactID) |
Most multitouch systems use persistent contact/pointer ids to track events/motion during multitouch events. More... | |
bool | IsPointerIndexSet (int i) |
Most multitouch systems use persistent contact/pointer ids to track events/motion during multitouch events. More... | |
void | ClearPointerIndex (int i) |
Most multitouch systems use persistent contact/pointer ids to track events/motion during multitouch events. More... | |
Public Member Functions inherited from vtkObject | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
Turn debugging output on. More... | |
virtual void | DebugOff () |
Turn debugging output off. More... | |
bool | GetDebug () |
Get the value of the debug flag. More... | |
void | SetDebug (bool debugFlag) |
Set the value of the debug flag. More... | |
virtual void | Modified () |
Update the modification time for this object. More... | |
virtual vtkMTimeType | GetMTime () |
Return this object's modified time. More... | |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Methods invoked by print to print information about the object including superclasses. More... | |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
vtkTypeBool | HasObserver (unsigned long event) |
vtkTypeBool | HasObserver (const char *event) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkCommand * | GetCommand (unsigned long tag) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObserver (vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObservers (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObservers (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkTypeBool | HasObserver (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkTypeBool | HasObserver (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Allow user to set the AbortFlagOn() with the return value of the callback method. More... | |
int | InvokeEvent (unsigned long event, void *callData) |
This method invokes an event and return whether the event was aborted or not. More... | |
int | InvokeEvent (const char *event, void *callData) |
This method invokes an event and return whether the event was aborted or not. More... | |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
Return the class name as a string. More... | |
virtual vtkTypeBool | IsA (const char *name) |
Return 1 if this class is the same type of (or a subclass of) the named class. More... | |
virtual vtkIdType | GetNumberOfGenerationsFromBase (const char *name) |
Given the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class). More... | |
virtual void | Delete () |
Delete a VTK object. More... | |
virtual void | FastDelete () |
Delete a reference to this object. More... | |
void | InitializeObjectBase () |
void | Print (ostream &os) |
Print an object to an ostream. More... | |
virtual void | Register (vtkObjectBase *o) |
Increase the reference count (mark as used by another object). More... | |
virtual void | UnRegister (vtkObjectBase *o) |
Decrease the reference count (release by another object). More... | |
int | GetReferenceCount () |
Return the current reference count of this object. More... | |
void | SetReferenceCount (int) |
Sets the reference count. More... | |
bool | GetIsInMemkind () const |
A local state flag that remembers whether this object lives in the normal or extended memory space. More... | |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
Static Public Member Functions | |
static vtkRenderWindowInteractor * | New () |
static vtkTypeBool | IsTypeOf (const char *type) |
static vtkRenderWindowInteractor * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkObject | |
static vtkObject * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More... | |
static void | BreakOnError () |
This method is called when vtkErrorMacro executes. More... | |
static void | SetGlobalWarningDisplay (int val) |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static void | GlobalWarningDisplayOn () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static void | GlobalWarningDisplayOff () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static int | GetGlobalWarningDisplay () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
Static Public Member Functions inherited from vtkObjectBase | |
static vtkTypeBool | IsTypeOf (const char *name) |
Return 1 if this class type is the same type of (or a subclass of) the named class. More... | |
static vtkIdType | GetNumberOfGenerationsFromBaseType (const char *name) |
Given a the name of a base class of this class type, return the distance of inheritance between this class type and the named class (how many generations of inheritance are there between this class and the named class). More... | |
static vtkObjectBase * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More... | |
static void | SetMemkindDirectory (const char *directoryname) |
The name of a directory, ideally mounted -o dax, to memory map an extended memory space within. More... | |
static bool | GetUsingMemkind () |
A global state flag that controls whether vtkObjects are constructed in the usual way (the default) or within the extended memory space. More... | |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkRenderWindowInteractor () | |
~vtkRenderWindowInteractor () override | |
virtual vtkPickingManager * | CreateDefaultPickingManager () |
Create default pickingManager. More... | |
void | GrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr) |
void | ReleaseFocus () |
virtual void | StartEventLoop () |
Run the event loop (does not return until TerminateApp is called). More... | |
virtual void | RecognizeGesture (vtkCommand::EventIds) |
virtual int | InternalCreateTimer (int timerId, int timerType, unsigned long duration) |
Internal methods for creating and destroying timers that must be implemented by subclasses. More... | |
virtual int | InternalDestroyTimer (int platformTimerId) |
Internal methods for creating and destroying timers that must be implemented by subclasses. More... | |
int | GetCurrentTimerId () |
Internal methods for creating and destroying timers that must be implemented by subclasses. More... | |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
~vtkObject () override | |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr) |
These methods allow a command to exclusively grab all events. More... | |
void | InternalReleaseFocus () |
These methods allow a command to exclusively grab all events. More... | |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) |
virtual void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Friends | |
class | vtkInteractorEventRecorder |
class | vtkInteractorObserver |
These methods allow the interactor to control which events are processed. More... | |
struct | vtkTimerStruct |
Additional Inherited Members | |
Static Protected Member Functions inherited from vtkObjectBase | |
static vtkMallocingFunction | GetCurrentMallocFunction () |
static vtkReallocingFunction | GetCurrentReallocFunction () |
static vtkFreeingFunction | GetCurrentFreeFunction () |
static vtkFreeingFunction | GetAlternateFreeFunction () |
platform-independent render window interaction including picking and frame rate control.
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 vtkInteractorObserver 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 manipulating timers, TerminateApp, and an event loop if required via Initialize/Start/Enable/Disable.
Definition at line 182 of file vtkRenderWindowInteractor.h.
Definition at line 189 of file vtkRenderWindowInteractor.h.
anonymous enum |
Enumerator | |
---|---|
OneShotTimer | |
RepeatingTimer |
Definition at line 353 of file vtkRenderWindowInteractor.h.
|
protected |
|
overrideprotected |
|
static |
|
static |
|
virtual |
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 vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObjectBase.
Reimplemented in QVTKInteractor, vtkRenderWindowInteractor3D, vtkOpenVRRenderWindowInteractor, vtkAndroidRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkGenericRenderWindowInteractor, vtkIOSRenderWindowInteractor, vtkSDL2RenderWindowInteractor, vtkWin32RenderWindowInteractor, and vtkXRenderWindowInteractor.
|
static |
|
protectedvirtual |
Reimplemented in QVTKInteractor, vtkRenderWindowInteractor3D, vtkOpenVRRenderWindowInteractor, vtkAndroidRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkGenericRenderWindowInteractor, vtkIOSRenderWindowInteractor, vtkSDL2RenderWindowInteractor, vtkWin32RenderWindowInteractor, and vtkXRenderWindowInteractor.
vtkRenderWindowInteractor * vtkRenderWindowInteractor::NewInstance | ( | ) | const |
|
overridevirtual |
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 vtkOpenVRRenderWindowInteractor, vtkRenderWindowInteractor3D, vtkAndroidRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkGenericRenderWindowInteractor, vtkIOSRenderWindowInteractor, vtkSDL2RenderWindowInteractor, vtkWin32RenderWindowInteractor, and vtkXRenderWindowInteractor.
|
virtual |
Prepare for handling events and set the Enabled flag to true.
This will be called automatically by Start() if the interactor is not initialized, but it can be called manually if you need to perform any operations between initialization and the start of the event loop.
Reimplemented in vtkOpenVRRenderWindowInteractor, QVTKInteractor, vtkAndroidRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkIOSRenderWindowInteractor, vtkSDL2RenderWindowInteractor, vtkWin32RenderWindowInteractor, and vtkXRenderWindowInteractor.
|
inline |
Prepare for handling events and set the Enabled flag to true.
This will be called automatically by Start() if the interactor is not initialized, but it can be called manually if you need to perform any operations between initialization and the start of the event loop.
Definition at line 201 of file vtkRenderWindowInteractor.h.
|
overridevirtual |
This Method detects loops of RenderWindow-Interactor, so objects are freed properly.
Reimplemented from vtkObjectBase.
|
virtual |
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.
Reimplemented in QVTKInteractor.
|
inlinevirtual |
Run the event loop and return.
This is provided so that you can implement your own event loop but yet use the vtk event handling as well.
Reimplemented in vtkOpenVRRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkSDL2RenderWindowInteractor, vtkWin32RenderWindowInteractor, and vtkXRenderWindowInteractor.
Definition at line 227 of file vtkRenderWindowInteractor.h.
|
virtual |
Is the interactor loop done.
|
virtual |
|
inlinevirtual |
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 vtkRenderWindowInteractor3D, vtkAndroidRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkIOSRenderWindowInteractor, vtkWin32RenderWindowInteractor, and vtkXRenderWindowInteractor.
Definition at line 244 of file vtkRenderWindowInteractor.h.
|
inlinevirtual |
Reimplemented in vtkRenderWindowInteractor3D, vtkAndroidRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkIOSRenderWindowInteractor, vtkWin32RenderWindowInteractor, and vtkXRenderWindowInteractor.
Definition at line 249 of file vtkRenderWindowInteractor.h.
|
virtual |
|
virtual |
Enable/Disable whether vtkRenderWindowInteractor::Render() calls this->RenderWindow->Render().
|
virtual |
Enable/Disable whether vtkRenderWindowInteractor::Render() calls this->RenderWindow->Render().
|
virtual |
Enable/Disable whether vtkRenderWindowInteractor::Render() calls this->RenderWindow->Render().
|
virtual |
Enable/Disable whether vtkRenderWindowInteractor::Render() calls this->RenderWindow->Render().
void vtkRenderWindowInteractor::SetRenderWindow | ( | vtkRenderWindow * | aren | ) |
Set/Get the rendering window being controlled by this object.
|
virtual |
Set/Get the rendering window being controlled by this object.
void vtkRenderWindowInteractor::SetHardwareWindow | ( | vtkHardwareWindow * | aren | ) |
Set/Get the hardware window being controlled by this object.
For opengl the hardware window is not used as the opengl subclasses of RenderWindow provide the functionality.
|
virtual |
Set/Get the hardware window being controlled by this object.
For opengl the hardware window is not used as the opengl subclasses of RenderWindow provide the functionality.
|
virtual |
Event loop notification member for window size change.
Window size is measured in pixels.
If the size has changed, this method will fire vtkCommand::WindowResizeEvent.
Reimplemented in vtkXRenderWindowInteractor.
|
virtual |
This class provides two groups of methods for manipulating timers.
The first group (CreateTimer(timerType) and DestroyTimer()) implicitly use an internal timer id (and are present for backward compatibility). The second group (CreateRepeatingTimer(long),CreateOneShotTimer(long), ResetTimer(int),DestroyTimer(int)) use timer ids so multiple timers can be independently managed. In the first group, the CreateTimer() method takes an argument indicating whether the timer is created the first time (timerType==VTKI_TIMER_FIRST) or whether it is being reset (timerType==VTKI_TIMER_UPDATE). (In initial implementations of VTK this was how one shot and repeating timers were managed.) In the second group, the create methods take a timer duration argument (in milliseconds) and return a timer id. Thus the ResetTimer(timerId) and DestroyTimer(timerId) methods take this timer id and operate on the timer as appropriate. Methods are also available for determining
|
virtual |
int vtkRenderWindowInteractor::CreateRepeatingTimer | ( | unsigned long | duration | ) |
Create a repeating timer, with the specified duration (in milliseconds).
int vtkRenderWindowInteractor::CreateOneShotTimer | ( | unsigned long | duration | ) |
Create a one shot timer, with the specified duration (in milliseconds).
int vtkRenderWindowInteractor::IsOneShotTimer | ( | int | timerId | ) |
Query whether the specified timerId is a one shot timer.
unsigned long vtkRenderWindowInteractor::GetTimerDuration | ( | int | timerId | ) |
Get the duration (in milliseconds) for the specified timerId.
int vtkRenderWindowInteractor::ResetTimer | ( | int | timerId | ) |
Reset the specified timer.
int vtkRenderWindowInteractor::DestroyTimer | ( | int | timerId | ) |
Destroy the timer specified by timerId.
|
virtual |
Get the VTK timer ID that corresponds to the supplied platform ID.
|
virtual |
Specify the default timer interval (in milliseconds).
(This is used in conjunction with the timer methods described previously, e.g., CreateTimer() uses this value; and CreateRepeatingTimer(duration) and CreateOneShotTimer(duration) use the default value if the parameter "duration" is less than or equal to zero.) Care must be taken when adjusting the timer interval from the default value of 10 milliseconds–it may adversely affect the interactors.
|
virtual |
Specify the default timer interval (in milliseconds).
(This is used in conjunction with the timer methods described previously, e.g., CreateTimer() uses this value; and CreateRepeatingTimer(duration) and CreateOneShotTimer(duration) use the default value if the parameter "duration" is less than or equal to zero.) Care must be taken when adjusting the timer interval from the default value of 10 milliseconds–it may adversely affect the interactors.
|
virtual |
These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent.
The caller of CreateTimerEvent sets up TimerEventId, TimerEventType and TimerEventDuration. The observer of CreateTimerEvent should set up an appropriate platform specific timer based on those values and set the TimerEventPlatformId before returning. The caller of DestroyTimerEvent sets up TimerEventPlatformId. The observer of DestroyTimerEvent should simply destroy the platform specific timer created by CreateTimerEvent. See vtkGenericRenderWindowInteractor's InternalCreateTimer and InternalDestroyTimer for an example.
|
virtual |
These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent.
The caller of CreateTimerEvent sets up TimerEventId, TimerEventType and TimerEventDuration. The observer of CreateTimerEvent should set up an appropriate platform specific timer based on those values and set the TimerEventPlatformId before returning. The caller of DestroyTimerEvent sets up TimerEventPlatformId. The observer of DestroyTimerEvent should simply destroy the platform specific timer created by CreateTimerEvent. See vtkGenericRenderWindowInteractor's InternalCreateTimer and InternalDestroyTimer for an example.
|
virtual |
These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent.
The caller of CreateTimerEvent sets up TimerEventId, TimerEventType and TimerEventDuration. The observer of CreateTimerEvent should set up an appropriate platform specific timer based on those values and set the TimerEventPlatformId before returning. The caller of DestroyTimerEvent sets up TimerEventPlatformId. The observer of DestroyTimerEvent should simply destroy the platform specific timer created by CreateTimerEvent. See vtkGenericRenderWindowInteractor's InternalCreateTimer and InternalDestroyTimer for an example.
|
virtual |
These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent.
The caller of CreateTimerEvent sets up TimerEventId, TimerEventType and TimerEventDuration. The observer of CreateTimerEvent should set up an appropriate platform specific timer based on those values and set the TimerEventPlatformId before returning. The caller of DestroyTimerEvent sets up TimerEventPlatformId. The observer of DestroyTimerEvent should simply destroy the platform specific timer created by CreateTimerEvent. See vtkGenericRenderWindowInteractor's InternalCreateTimer and InternalDestroyTimer for an example.
|
virtual |
These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent.
The caller of CreateTimerEvent sets up TimerEventId, TimerEventType and TimerEventDuration. The observer of CreateTimerEvent should set up an appropriate platform specific timer based on those values and set the TimerEventPlatformId before returning. The caller of DestroyTimerEvent sets up TimerEventPlatformId. The observer of DestroyTimerEvent should simply destroy the platform specific timer created by CreateTimerEvent. See vtkGenericRenderWindowInteractor's InternalCreateTimer and InternalDestroyTimer for an example.
|
virtual |
These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent.
The caller of CreateTimerEvent sets up TimerEventId, TimerEventType and TimerEventDuration. The observer of CreateTimerEvent should set up an appropriate platform specific timer based on those values and set the TimerEventPlatformId before returning. The caller of DestroyTimerEvent sets up TimerEventPlatformId. The observer of DestroyTimerEvent should simply destroy the platform specific timer created by CreateTimerEvent. See vtkGenericRenderWindowInteractor's InternalCreateTimer and InternalDestroyTimer for an example.
|
virtual |
These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent.
The caller of CreateTimerEvent sets up TimerEventId, TimerEventType and TimerEventDuration. The observer of CreateTimerEvent should set up an appropriate platform specific timer based on those values and set the TimerEventPlatformId before returning. The caller of DestroyTimerEvent sets up TimerEventPlatformId. The observer of DestroyTimerEvent should simply destroy the platform specific timer created by CreateTimerEvent. See vtkGenericRenderWindowInteractor's InternalCreateTimer and InternalDestroyTimer for an example.
|
virtual |
These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent.
The caller of CreateTimerEvent sets up TimerEventId, TimerEventType and TimerEventDuration. The observer of CreateTimerEvent should set up an appropriate platform specific timer based on those values and set the TimerEventPlatformId before returning. The caller of DestroyTimerEvent sets up TimerEventPlatformId. The observer of DestroyTimerEvent should simply destroy the platform specific timer created by CreateTimerEvent. See vtkGenericRenderWindowInteractor's InternalCreateTimer and InternalDestroyTimer for an example.
|
inlinevirtual |
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 QVTKInteractor, vtkCocoaRenderWindowInteractor, vtkIOSRenderWindowInteractor, vtkXRenderWindowInteractor, vtkAndroidRenderWindowInteractor, vtkSDL2RenderWindowInteractor, and vtkWin32RenderWindowInteractor.
Definition at line 401 of file vtkRenderWindowInteractor.h.
|
virtual |
External switching between joystick/trackball/new? modes.
Initial value is a vtkInteractorStyleSwitch object.
|
virtual |
External switching between joystick/trackball/new? modes.
Initial value is a vtkInteractorStyleSwitch object.
|
virtual |
Turn on/off the automatic repositioning of lights as the camera moves.
Default is On.
|
virtual |
Turn on/off the automatic repositioning of lights as the camera moves.
Default is On.
|
virtual |
Turn on/off the automatic repositioning of lights as the camera moves.
Default is On.
|
virtual |
Turn on/off the automatic repositioning of lights as the camera moves.
Default is On.
|
virtual |
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. The default is 15.
|
virtual |
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. The default is 15.
|
virtual |
Set/Get the desired update rate when movement has stopped.
For the non-still update rate, see the SetDesiredUpdateRate method. The default is 0.0001
|
virtual |
Set/Get the desired update rate when movement has stopped.
For the non-still update rate, see the SetDesiredUpdateRate method. The default is 0.0001
|
virtual |
See whether interactor has been initialized yet.
Default is 0.
|
virtual |
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.
|
virtual |
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.
|
virtual |
Create default picker.
Used to create one when none is specified. Default is an instance of vtkPropPicker.
|
virtual |
Set the picking manager.
Set/Get the object used to perform operations through the interactor By default, a valid but disabled picking manager is instantiated.
|
virtual |
Set the picking manager.
Set/Get the object used to perform operations through the interactor By default, a valid but disabled picking manager is instantiated.
|
virtual |
These methods correspond to the Exit, User and Pick callbacks.
They allow for the Style to invoke them.
Reimplemented in vtkOpenVRRenderWindowInteractor, vtkAndroidRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkIOSRenderWindowInteractor, vtkSDL2RenderWindowInteractor, and vtkWin32RenderWindowInteractor.
|
virtual |
These methods correspond to the Exit, User and Pick callbacks.
They allow for the Style to invoke them.
|
virtual |
These methods correspond to the Exit, User and Pick callbacks.
They allow for the Style to invoke them.
|
virtual |
These methods correspond to the Exit, User and Pick callbacks.
They allow for the Style to invoke them.
|
inlinevirtual |
Get the current position of the mouse.
Reimplemented in vtkXRenderWindowInteractor.
Definition at line 493 of file vtkRenderWindowInteractor.h.
void vtkRenderWindowInteractor::HideCursor | ( | ) |
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.
void vtkRenderWindowInteractor::ShowCursor | ( | ) |
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.
|
virtual |
Render the scene.
Just pass the render call on to the associated vtkRenderWindow.
void vtkRenderWindowInteractor::FlyTo | ( | vtkRenderer * | ren, |
double | x, | ||
double | y, | ||
double | z | ||
) |
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.
|
inline |
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.
Definition at line 521 of file vtkRenderWindowInteractor.h.
void vtkRenderWindowInteractor::FlyToImage | ( | vtkRenderer * | ren, |
double | x, | ||
double | y | ||
) |
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.
|
inline |
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.
Definition at line 523 of file vtkRenderWindowInteractor.h.
|
virtual |
Set the number of frames to fly to when FlyTo is invoked.
|
virtual |
Set the number of frames to fly to when FlyTo is invoked.
|
virtual |
Set the total Dolly value to use when flying to (FlyTo()) a specified point.
Negative values fly away from the point.
|
virtual |
Set the total Dolly value to use when flying to (FlyTo()) a specified point.
Negative values fly away from the point.
|
virtual |
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. Mouse positions are measured in pixels. The other information is about key board input.
|
virtual |
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. Mouse positions are measured in pixels. The other information is about key board input.
|
virtual |
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. Mouse positions are measured in pixels. The other information is about key board input.
|
virtual |
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. Mouse positions are measured in pixels. The other information is about key board input.
|
virtual |
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. Mouse positions are measured in pixels. The other information is about key board input.
|
virtual |
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. Mouse positions are measured in pixels. The other information is about key board input.
|
virtual |
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. Mouse positions are measured in pixels. The other information is about key board input.
void vtkRenderWindowInteractor::SetLastEventPosition | ( | int | [2] | ) |
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. Mouse positions are measured in pixels. The other information is about key board input.
|
inlinevirtual |
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. Mouse positions are measured in pixels. The other information is about key board input.
Definition at line 555 of file vtkRenderWindowInteractor.h.
|
inlinevirtual |
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. Mouse positions are measured in pixels. The other information is about key board input.
Definition at line 569 of file vtkRenderWindowInteractor.h.
|
inlinevirtual |
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. Mouse positions are measured in pixels. The other information is about key board input.
Definition at line 570 of file vtkRenderWindowInteractor.h.
|
inlinevirtual |
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. Mouse positions are measured in pixels. The other information is about key board input.
Definition at line 574 of file vtkRenderWindowInteractor.h.
|
inlinevirtual |
Definition at line 577 of file vtkRenderWindowInteractor.h.
|
inlinevirtual |
Definition at line 585 of file vtkRenderWindowInteractor.h.
|
inlinevirtual |
Definition at line 593 of file vtkRenderWindowInteractor.h.
|
inlinevirtual |
Definition at line 619 of file vtkRenderWindowInteractor.h.
|
inlinevirtual |
Definition at line 623 of file vtkRenderWindowInteractor.h.
|
inlinevirtual |
Definition at line 627 of file vtkRenderWindowInteractor.h.
|
virtual |
Set/get whether alt modifier key was pressed.
|
virtual |
Set/get whether alt modifier key was pressed.
|
virtual |
Set/get whether control modifier key was pressed.
|
virtual |
Set/get whether control modifier key was pressed.
|
virtual |
Set/get whether shift modifier key was pressed.
|
virtual |
Set/get whether shift modifier key was pressed.
|
virtual |
Set/get the key code for the key that was pressed.
|
virtual |
Set/get the key code for the key that was pressed.
|
virtual |
Set/get the repear count for the key or mouse event.
This specifies how many times a key has been pressed.
|
virtual |
Set/get the repear count for the key or mouse event.
This specifies how many times a key has been pressed.
|
virtual |
Set/get the key symbol for the key that was pressed.
This is the key symbol as defined by the relevant X headers. On X based platforms this corresponds to the installed X server, whereas on other platforms the native key codes are translated into a string representation.
|
virtual |
Set/get the key symbol for the key that was pressed.
This is the key symbol as defined by the relevant X headers. On X based platforms this corresponds to the installed X server, whereas on other platforms the native key codes are translated into a string representation.
|
virtual |
Set/get the index of the most recent pointer to have an event.
|
virtual |
Set/get the index of the most recent pointer to have an event.
void vtkRenderWindowInteractor::SetRotation | ( | double | rotation | ) |
Set/get the rotation for the gesture in degrees, update LastRotation.
|
virtual |
Set/get the rotation for the gesture in degrees, update LastRotation.
|
virtual |
Set/get the rotation for the gesture in degrees, update LastRotation.
void vtkRenderWindowInteractor::SetScale | ( | double | scale | ) |
Set/get the scale for the gesture, updates LastScale.
|
virtual |
Set/get the scale for the gesture, updates LastScale.
|
virtual |
Set/get the scale for the gesture, updates LastScale.
void vtkRenderWindowInteractor::SetTranslation | ( | double | val[2] | ) |
Set/get the translation for pan/swipe gestures, update LastTranslation.
|
virtual |
Set/get the translation for pan/swipe gestures, update LastTranslation.
|
virtual |
Set/get the translation for pan/swipe gestures, update LastTranslation.
|
virtual |
Set/get the translation for pan/swipe gestures, update LastTranslation.
|
virtual |
Set/get the translation for pan/swipe gestures, update LastTranslation.
|
virtual |
Set/get the translation for pan/swipe gestures, update LastTranslation.
|
virtual |
Set/get the translation for pan/swipe gestures, update LastTranslation.
|
inline |
Set all the event information in one call.
Definition at line 723 of file vtkRenderWindowInteractor.h.
|
inline |
Set all the event information in one call.
Definition at line 738 of file vtkRenderWindowInteractor.h.
|
inline |
Calls SetEventInformation, but flips the Y based on the current Size[1] value (i.e.
y = this->Size[1] - y - 1).
Definition at line 750 of file vtkRenderWindowInteractor.h.
|
inline |
Calls SetEventInformation, but flips the Y based on the current Size[1] value (i.e.
y = this->Size[1] - y - 1).
Definition at line 756 of file vtkRenderWindowInteractor.h.
|
inline |
Set all the keyboard-related event information in one call.
Definition at line 767 of file vtkRenderWindowInteractor.h.
|
virtual |
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). Window size is measured in pixels.
void vtkRenderWindowInteractor::SetSize | ( | int | [2] | ) |
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). Window size is measured in pixels.
|
virtual |
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). Window size is measured in pixels.
|
virtual |
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). Window size is measured in pixels.
|
virtual |
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). Window size is measured in pixels.
|
virtual |
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). Window size is measured in pixels.
void vtkRenderWindowInteractor::SetEventSize | ( | int | [2] | ) |
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). Window size is measured in pixels.
|
virtual |
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). Window size is measured in pixels.
|
virtual |
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). Window size is measured in pixels.
|
virtual |
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). Window size is measured in pixels.
|
virtual |
When an event occurs, we must determine which Renderer the event occurred within, since one RenderWindow may contain multiple renderers.
vtkObserverMediator * vtkRenderWindowInteractor::GetObserverMediator | ( | ) |
Return the object used to mediate between vtkInteractorObservers contending for resources.
Multiple interactor observers will often request different resources (e.g., cursor shape); the mediator uses a strategy to provide the resource based on priority of the observer plus the particular request (default versus non-default cursor shape).
|
virtual |
Use a 3DConnexion device.
Initial value is false. If VTK is not build with the TDx option, this is no-op. If VTK is build with the TDx option, and a device is not connected, a warning is emitted. It is must be called before the first Render to be effective, otherwise it is ignored.
|
virtual |
Use a 3DConnexion device.
Initial value is false. If VTK is not build with the TDx option, this is no-op. If VTK is build with the TDx option, and a device is not connected, a warning is emitted. It is must be called before the first Render to be effective, otherwise it is ignored.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
Reimplemented in vtkRenderWindowInteractor3D.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
Reimplemented in vtkRenderWindowInteractor3D.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
Reimplemented in vtkRenderWindowInteractor3D.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
Reimplemented in vtkRenderWindowInteractor3D.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various events.
SetEventInformation should be called just prior to calling any of these methods. These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various gesture based events.
These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various gesture based events.
These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various gesture based events.
These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various gesture based events.
These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various gesture based events.
These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various gesture based events.
These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various gesture based events.
These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various gesture based events.
These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various gesture based events.
These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various gesture based events.
These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various gesture based events.
These methods will Invoke the corresponding vtk event.
|
virtual |
Fire various gesture based events.
These methods will Invoke the corresponding vtk event.
|
virtual |
Convert multitouch events into gestures.
When this is on (its default) multitouch events received by this interactor will be converted into gestures by VTK. If turned off the raw multitouch events will be passed down.
|
virtual |
Convert multitouch events into gestures.
When this is on (its default) multitouch events received by this interactor will be converted into gestures by VTK. If turned off the raw multitouch events will be passed down.
|
virtual |
When handling gestures you can query this value to determine how many pointers are down for the gesture this is useful for pan gestures for example.
void vtkRenderWindowInteractor::ClearContact | ( | size_t | contactID | ) |
Most multitouch systems use persistent contact/pointer ids to track events/motion during multitouch events.
We keep an array that maps these system dependent contact ids to our pointer index These functions return -1 if the ID is not found or if there is no more room for contacts
int vtkRenderWindowInteractor::GetPointerIndexForContact | ( | size_t | contactID | ) |
Most multitouch systems use persistent contact/pointer ids to track events/motion during multitouch events.
We keep an array that maps these system dependent contact ids to our pointer index These functions return -1 if the ID is not found or if there is no more room for contacts
int vtkRenderWindowInteractor::GetPointerIndexForExistingContact | ( | size_t | contactID | ) |
Most multitouch systems use persistent contact/pointer ids to track events/motion during multitouch events.
We keep an array that maps these system dependent contact ids to our pointer index These functions return -1 if the ID is not found or if there is no more room for contacts
bool vtkRenderWindowInteractor::IsPointerIndexSet | ( | int | i | ) |
Most multitouch systems use persistent contact/pointer ids to track events/motion during multitouch events.
We keep an array that maps these system dependent contact ids to our pointer index These functions return -1 if the ID is not found or if there is no more room for contacts
void vtkRenderWindowInteractor::ClearPointerIndex | ( | int | i | ) |
Most multitouch systems use persistent contact/pointer ids to track events/motion during multitouch events.
We keep an array that maps these system dependent contact ids to our pointer index These functions return -1 if the ID is not found or if there is no more room for contacts
|
protectedvirtual |
Create default pickingManager.
Used to create one when none is specified. Default is an instance of vtkPickingManager.
|
inlineprotected |
Definition at line 984 of file vtkRenderWindowInteractor.h.
|
inlineprotected |
Definition at line 988 of file vtkRenderWindowInteractor.h.
|
protectedvirtual |
Internal methods for creating and destroying timers that must be implemented by subclasses.
InternalCreateTimer() returns a platform-specific timerId and InternalDestroyTimer() returns non-zero value on success.
Reimplemented in vtkOpenVRRenderWindowInteractor, QVTKInteractor, vtkAndroidRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkGenericRenderWindowInteractor, vtkIOSRenderWindowInteractor, vtkSDL2RenderWindowInteractor, vtkWin32RenderWindowInteractor, and vtkXRenderWindowInteractor.
|
protectedvirtual |
Internal methods for creating and destroying timers that must be implemented by subclasses.
InternalCreateTimer() returns a platform-specific timerId and InternalDestroyTimer() returns non-zero value on success.
Reimplemented in vtkOpenVRRenderWindowInteractor, QVTKInteractor, vtkAndroidRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkGenericRenderWindowInteractor, vtkIOSRenderWindowInteractor, vtkSDL2RenderWindowInteractor, vtkWin32RenderWindowInteractor, and vtkXRenderWindowInteractor.
|
protected |
Internal methods for creating and destroying timers that must be implemented by subclasses.
InternalCreateTimer() returns a platform-specific timerId and InternalDestroyTimer() returns non-zero value on success.
|
inlineprotectedvirtual |
Run the event loop (does not return until TerminateApp is called).
Reimplemented in vtkOpenVRRenderWindowInteractor, vtkAndroidRenderWindowInteractor, vtkCocoaRenderWindowInteractor, vtkIOSRenderWindowInteractor, vtkSDL2RenderWindowInteractor, vtkWin32RenderWindowInteractor, and vtkXRenderWindowInteractor.
Definition at line 1019 of file vtkRenderWindowInteractor.h.
|
protectedvirtual |
Reimplemented in vtkRenderWindowInteractor3D.
|
friend |
Definition at line 185 of file vtkRenderWindowInteractor.h.
|
friend |
These methods allow the interactor to control which events are processed.
When the GrabFocus() method is called, then only events that the supplied vtkCommands have registered are invoked. (This method is typically used by widgets, i.e., subclasses of vtkInteractorObserver, to grab events once an event sequence begins.) Note that the friend declaration is done here to avoid doing so in the superclass vtkObject.
Definition at line 983 of file vtkRenderWindowInteractor.h.
|
friend |
Definition at line 996 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 918 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 919 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 920 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 923 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 924 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 926 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 934 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 935 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 936 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 937 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 938 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 939 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 940 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 941 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 944 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 945 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 946 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 947 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 948 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 949 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 950 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 951 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 952 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 953 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 954 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 955 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 956 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 957 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 958 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 959 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 960 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 961 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 962 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 963 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 965 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 966 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 967 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 969 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 972 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 973 of file vtkRenderWindowInteractor.h.
|
protected |
Widget mediators are used to resolve contention for cursors and other resources.
Definition at line 993 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 997 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 998 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 1014 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 1021 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 1025 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 1026 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 1027 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 1029 of file vtkRenderWindowInteractor.h.
|
protected |
Definition at line 1030 of file vtkRenderWindowInteractor.h.