VTK
|
an X event driven interface for a RenderWindow More...
#include <vtkXRenderWindowInteractor.h>
Public Types | |
typedef vtkRenderWindowInteractor | Superclass |
typedef vtkRenderWindowInteractor | Superclass |
![]() | |
enum | { OneShotTimer =1 , RepeatingTimer } |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
Return 1 if this class is the same type of (or a subclass of) the named class. More... | |
vtkXRenderWindowInteractor * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
virtual void | Initialize () |
Initializes the event handlers without an XtAppContext. More... | |
void | TerminateApp () |
Break the event loop on 'q','e' keypress. More... | |
virtual int | GetBreakLoopFlag () |
The BreakLoopFlag is checked in the Start() method. More... | |
void | SetBreakLoopFlag (int) |
void | BreakLoopFlagOff () |
void | BreakLoopFlagOn () |
virtual void | Initialize (XtAppContext app) |
Initializes the event handlers using an XtAppContext that you have provided. More... | |
virtual XtAppContext | GetApp () |
virtual void | Enable () |
Enable/Disable interactions. More... | |
virtual void | Disable () |
virtual void | UpdateSize (int, int) |
Update the Size data member and set the associated RenderWindow's size. More... | |
virtual void | SetWidget (Widget) |
Specify the Xt widget to use for interaction. More... | |
Widget | GetWidget () |
virtual void | SetTopLevelShell (Widget) |
This method will store the top level shell widget for the interactor. More... | |
Widget | GetTopLevelShell () |
virtual void | GetMousePosition (int *x, int *y) |
Re-defines virtual function to get mouse position by querying X-server. More... | |
virtual int | IsA (const char *type) |
Return 1 if this class is the same type of (or a subclass of) the named class. More... | |
vtkXRenderWindowInteractor * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
virtual void | Initialize () |
Initializes the event handlers without an XtAppContext. More... | |
void | TerminateApp () |
Break the event loop on 'q','e' keypress. More... | |
virtual int | GetBreakLoopFlag () |
The BreakLoopFlag is checked in the Start() method. More... | |
void | SetBreakLoopFlag (int) |
void | BreakLoopFlagOff () |
void | BreakLoopFlagOn () |
virtual void | Initialize (XtAppContext app) |
Initializes the event handlers using an XtAppContext that you have provided. More... | |
virtual XtAppContext | GetApp () |
virtual void | Enable () |
Enable/Disable interactions. More... | |
virtual void | Disable () |
virtual void | UpdateSize (int, int) |
Update the Size data member and set the associated RenderWindow's size. More... | |
virtual void | SetWidget (Widget) |
Specify the Xt widget to use for interaction. More... | |
Widget | GetWidget () |
virtual void | SetTopLevelShell (Widget) |
This method will store the top level shell widget for the interactor. More... | |
Widget | GetTopLevelShell () |
virtual void | GetMousePosition (int *x, int *y) |
Re-defines virtual function to get mouse position by querying X-server. More... | |
![]() | |
vtkRenderWindowInteractor * | NewInstance () const |
void | ReInitialize () |
virtual void | UnRegister (vtkObjectBase *o) |
This Method detects loops of RenderWindow-Interactor, so objects are freed properly. More... | |
virtual void | Start () |
Start the event loop. More... | |
virtual int | GetEnabled () |
virtual void | EnableRenderOn () |
Enable/Disable whether vtkRenderWindowInteractor::Render() calls this->RenderWindow->Render(). More... | |
virtual void | EnableRenderOff () |
virtual void | SetEnableRender (bool) |
virtual bool | GetEnableRender () |
void | SetRenderWindow (vtkRenderWindow *aren) |
Set/Get the rendering window being controlled by this object. More... | |
virtual vtkRenderWindow * | GetRenderWindow () |
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 duretion (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 | SetTimerDuration (unsigned long) |
Specify the default timer interval (in milliseconds). More... | |
virtual unsigned long | GetTimerDuration () |
virtual void | SetTimerEventId (int) |
These methods are used to communicate information about the currently firing CreateTimerEvent or DestroyTimerEvent. More... | |
virtual int | GetTimerEventId () |
virtual void | SetTimerEventType (int) |
virtual int | GetTimerEventType () |
virtual void | SetTimerEventDuration (int) |
virtual int | GetTimerEventDuration () |
virtual void | SetTimerEventPlatformId (int) |
virtual int | GetTimerEventPlatformId () |
virtual void | SetInteractorStyle (vtkInteractorObserver *) |
External switching between joystick/trackball/new? modes. More... | |
virtual vtkInteractorObserver * | GetInteractorStyle () |
virtual void | SetLightFollowCamera (int) |
Turn on/off the automatic repositioning of lights as the camera moves. More... | |
virtual int | GetLightFollowCamera () |
virtual void | LightFollowCameraOn () |
virtual void | LightFollowCameraOff () |
virtual void | SetDesiredUpdateRate (double) |
Set/Get the desired update rate. More... | |
virtual double | GetDesiredUpdateRate () |
virtual void | SetStillUpdateRate (double) |
Set/Get the desired update rate when movement has stopped. More... | |
virtual double | GetStillUpdateRate () |
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 () |
virtual vtkAbstractPropPicker * | CreateDefaultPicker () |
Create default picker. More... | |
virtual void | SetPickingManager (vtkPickingManager *) |
Set the picking manager. More... | |
virtual vtkPickingManager * | GetPickingManager () |
virtual void | ExitCallback () |
These methods correspond to the the Exit, User and Pick callbacks. More... | |
virtual void | UserCallback () |
virtual void | StartPickCallback () |
virtual void | EndPickCallback () |
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 () |
virtual void | Render () |
Render the scene. 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) |
void | FlyToImage (vtkRenderer *ren, double x, double y) |
void | FlyToImage (vtkRenderer *ren, double *x) |
virtual void | SetNumberOfFlyFrames (int) |
Set the number of frames to fly to when FlyTo is invoked. More... | |
virtual int | GetNumberOfFlyFrames () |
virtual void | SetDolly (double) |
Set the total Dolly value to use when flying to (FlyTo()) a specified point. More... | |
virtual double | GetDolly () |
virtual int * | GetEventPosition () |
Set/Get information about the current event. More... | |
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 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 void | SetAltKey (int) |
Set/get whether alt modifier key was pressed. More... | |
virtual int | GetAltKey () |
virtual void | SetControlKey (int) |
Set/get whether control modifier key was pressed. More... | |
virtual int | GetControlKey () |
virtual void | SetShiftKey (int) |
Set/get whether shift modifier key was pressed. More... | |
virtual int | GetShiftKey () |
virtual void | SetKeyCode (char) |
Set/get the key code for the key that was pressed. More... | |
virtual char | GetKeyCode () |
virtual void | SetRepeatCount (int) |
Set/get the repear count for the key or mouse event. More... | |
virtual int | GetRepeatCount () |
virtual void | SetKeySym (const char *) |
Set/get the key symbol for the key that was pressed. More... | |
virtual char * | GetKeySym () |
virtual void | SetPointerIndex (int) |
Set/get the index of the most recent pointer to have an event. More... | |
virtual int | GetPointerIndex () |
void | SetRotation (double val) |
Set/get the rotation for the gesture in degrees, update LastRotation. More... | |
virtual double | GetRotation () |
virtual double | GetLastRotation () |
void | SetScale (double val) |
Set/get the scale for the gesture, updates LastScale. More... | |
virtual double | GetScale () |
virtual double | GetLastScale () |
void | SetTranslation (double val[2]) |
Set/get the tranlation for pan/swipe gestures, update LastTranslation. More... | |
virtual double * | GetTranslation () |
virtual void | GetTranslation (double &, double &) |
virtual void | GetTranslation (double[2]) |
virtual double * | GetLastTranslation () |
virtual void | GetLastTranslation (double &, double &) |
virtual void | GetLastTranslation (double[2]) |
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=0) |
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=0) |
void | SetKeyEventInformation (int ctrl=0, int shift=0, char keycode=0, int repeatcount=0, const char *keysym=0) |
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]) |
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]) |
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 | SetUseTDx (bool) |
Use a 3DConnexion device. More... | |
virtual bool | GetUseTDx () |
virtual void | MouseMoveEvent () |
Fire various events. More... | |
virtual void | RightButtonPressEvent () |
virtual void | RightButtonReleaseEvent () |
virtual void | LeftButtonPressEvent () |
virtual void | LeftButtonReleaseEvent () |
virtual void | MiddleButtonPressEvent () |
virtual void | MiddleButtonReleaseEvent () |
virtual void | MouseWheelForwardEvent () |
virtual void | MouseWheelBackwardEvent () |
virtual void | ExposeEvent () |
virtual void | ConfigureEvent () |
virtual void | EnterEvent () |
virtual void | LeaveEvent () |
virtual void | KeyPressEvent () |
virtual void | KeyReleaseEvent () |
virtual void | CharEvent () |
virtual void | ExitEvent () |
virtual void | StartPinchEvent () |
Fire various gesture based events. More... | |
virtual void | PinchEvent () |
virtual void | EndPinchEvent () |
virtual void | StartRotateEvent () |
virtual void | RotateEvent () |
virtual void | EndRotateEvent () |
virtual void | StartPanEvent () |
virtual void | PanEvent () |
virtual void | EndPanEvent () |
virtual void | TapEvent () |
virtual void | LongTapEvent () |
virtual void | SwipeEvent () |
virtual void | SetRecognizeGestures (bool) |
Convert multitouch events into gestures. More... | |
virtual bool | GetRecognizeGestures () |
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) |
int | GetPointerIndexForExistingContact (size_t contactID) |
bool | IsPointerIndexSet (int i) |
void | ClearPointerIndex (int i) |
![]() | |
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... | |
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) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
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) |
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) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
Return the class name as a string. 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 | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
virtual void | Register (vtkObjectBase *o) |
Increase the reference count (mark as used by another object). More... | |
int | GetReferenceCount () |
Return the current reference count of this object. More... | |
void | SetReferenceCount (int) |
Sets the reference count. More... | |
void | PrintRevisions (ostream &) |
Legacy. More... | |
Static Public Member Functions | |
static vtkXRenderWindowInteractor * | New () |
static int | IsTypeOf (const char *type) |
static vtkXRenderWindowInteractor * | SafeDownCast (vtkObjectBase *o) |
static vtkXRenderWindowInteractor * | New () |
static int | IsTypeOf (const char *type) |
static vtkXRenderWindowInteractor * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static vtkRenderWindowInteractor * | New () |
static int | IsTypeOf (const char *type) |
static vtkRenderWindowInteractor * | SafeDownCast (vtkObjectBase *o) |
![]() | |
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 () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
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 vtkObjectBase * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More... | |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkXRenderWindowInteractor () | |
~vtkXRenderWindowInteractor () | |
virtual void | StartEventLoop () |
This will start up the X event loop and never return. More... | |
virtual int | InternalCreateTimer (int timerId, int timerType, unsigned long duration) |
X-specific internal timer methods. More... | |
virtual int | InternalDestroyTimer (int platformTimerId) |
XtIntervalId | AddTimeOut (XtAppContext app_context, unsigned long interval, XtTimerCallbackProc proc, XtPointer client_data) |
void | Timer (XtPointer client_data, XtIntervalId *id) |
void | Callback (Widget w, XtPointer client_data, XEvent *event, Boolean *ctd) |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkXRenderWindowInteractor () | |
~vtkXRenderWindowInteractor () | |
virtual int | InternalCreateTimer (int timerId, int timerType, unsigned long duration) |
X-specific internal timer methods. More... | |
virtual int | InternalDestroyTimer (int platformTimerId) |
XtIntervalId | AddTimeOut (XtAppContext app_context, unsigned long interval, XtTimerCallbackProc proc, XtPointer client_data) |
void | Timer (XtPointer client_data, XtIntervalId *id) |
void | Callback (Widget w, XtPointer client_data, XEvent *event, Boolean *ctd) |
virtual void | StartEventLoop () |
This will start up the X event loop and never return. More... | |
![]() | |
vtkRenderWindowInteractor () | |
~vtkRenderWindowInteractor () | |
virtual vtkPickingManager * | CreateDefaultPickingManager () |
Create default pickingManager. More... | |
void | GrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | ReleaseFocus () |
int | GetCurrentTimerId () |
virtual void | RecognizeGesture (vtkCommand::EventIds) |
![]() | |
vtkObject () | |
~vtkObject () override | |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
These methods allow a command to exclusively grab all events. More... | |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Static Protected Attributes | |
static XtAppContext | App |
static int | NumAppInitialized |
static int | BreakLoopFlag |
Friends | |
void | vtkXRenderWindowInteractorCallback (Widget, XtPointer, XEvent *, Boolean *) |
Functions that are used internally. More... | |
void | vtkXRenderWindowInteractorTimer (XtPointer, XtIntervalId *) |
void | vtkXRenderWindowInteractorCallback (Widget, XtPointer, XEvent *, Boolean *) |
Functions that are used internally. More... | |
void | vtkXRenderWindowInteractorTimer (XtPointer, XtIntervalId *) |
an X event driven interface for a RenderWindow
vtkXRenderWindowInteractor is a convenience object that provides event bindings to common graphics functions. For example, camera and actor functions such as zoom-in/zoom-out, azimuth, roll, and pan. IT is one of the window system specific subclasses of vtkRenderWindowInteractor. Please see vtkRenderWindowInteractor documentation for event bindings.
I've been though this and deleted all I think should go, tried to create the basic structure and if you're lucky it might even work! but frankly I doubt it
vtkXRenderWindowInteractor is a convenience object that provides event bindings to common graphics functions. For example, camera and actor functions such as zoom-in/zoom-out, azimuth, roll, and pan. IT is one of the window system specific subclasses of vtkRenderWindowInteractor. Please see vtkRenderWindowInteractor documentation for event bindings.
I've been though this and deleted all I think should go, tried to create the basic structure and if you're lucky it might even work! but frankly I doubt it
Definition at line 51 of file vtkXRenderWindowInteractor.h.
Definition at line 55 of file vtkXRenderWindowInteractor.h.
Definition at line 58 of file vtkXRenderWindowInteractor.h.
|
protected |
|
protected |
|
protected |
|
protected |
|
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 vtkRenderWindowInteractor.
Reimplemented in vtkXRenderWindowTclInteractor, and vtkXRenderWindowTclInteractor.
|
static |
|
protectedvirtual |
Reimplemented from vtkRenderWindowInteractor.
Reimplemented in vtkXRenderWindowTclInteractor, and vtkXRenderWindowTclInteractor.
vtkXRenderWindowInteractor* vtkXRenderWindowInteractor::NewInstance | ( | ) | const |
|
virtual |
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 vtkRenderWindowInteractor.
Reimplemented in vtkXRenderWindowTclInteractor, and vtkXRenderWindowTclInteractor.
|
virtual |
Initializes the event handlers without an XtAppContext.
This is good for when you don't have a user interface, but you still want to have mouse interaction.
Reimplemented from vtkRenderWindowInteractor.
Reimplemented in vtkXRenderWindowTclInteractor, and vtkXRenderWindowTclInteractor.
|
virtual |
Break the event loop on 'q','e' keypress.
Want more ???
Reimplemented from vtkRenderWindowInteractor.
|
virtual |
The BreakLoopFlag is checked in the Start() method.
Setting it to anything other than zero will cause the interactor loop to terminate and return to the calling function.
void vtkXRenderWindowInteractor::SetBreakLoopFlag | ( | int | ) |
void vtkXRenderWindowInteractor::BreakLoopFlagOff | ( | ) |
void vtkXRenderWindowInteractor::BreakLoopFlagOn | ( | ) |
|
virtual |
Initializes the event handlers using an XtAppContext that you have provided.
This assumes that you want to own the event loop.
Reimplemented in vtkXRenderWindowTclInteractor, and vtkXRenderWindowTclInteractor.
|
virtual |
|
virtual |
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 from vtkRenderWindowInteractor.
Reimplemented in vtkXRenderWindowTclInteractor, and vtkXRenderWindowTclInteractor.
|
virtual |
Reimplemented from vtkRenderWindowInteractor.
Reimplemented in vtkXRenderWindowTclInteractor, and vtkXRenderWindowTclInteractor.
Update the Size data member and set the associated RenderWindow's size.
Reimplemented from vtkRenderWindowInteractor.
|
virtual |
Specify the Xt widget to use for interaction.
This method is one of a couple steps that are required for setting up a vtkRenderWindowInteractor as a widget inside of another user interface. You do not need to use this method if the render window will be a stand-alone window. This is only used when you want the render window to be a subwindow within a larger user interface. In that case, you must tell the render window what X display id to use, and then ask the render window what depth, visual and colormap it wants. Then, you must create an Xt TopLevelShell with those settings. Then you can create the rest of your user interface as a child of the TopLevelShell you created. Eventually, you will create a drawing area or some other widget to serve as the rendering window. You must use the SetWidget method to tell this Interactor about that widget. It's X and it's not terribly easy, but it looks cool.
|
inline |
Definition at line 130 of file vtkXRenderWindowInteractor.h.
|
virtual |
This method will store the top level shell widget for the interactor.
This method and the method invocation sequence applies for: 1 vtkRenderWindow-Interactor pair in a nested widget hierarchy multiple vtkRenderWindow-Interactor pairs in the same top level shell It is not needed for 1 vtkRenderWindow-Interactor pair as the direct child of a top level shell multiple vtkRenderWindow-Interactor pairs, each in its own top level shell
The method, along with EnterNotify event, changes the keyboard focus among the widgets/vtkRenderWindow(s) so the Interactor(s) can receive the proper keyboard events. The following calls need to be made: vtkRenderWindow's display ID need to be set to the top level shell's display ID. vtkXRenderWindowInteractor's Widget has to be set to the vtkRenderWindow's container widget vtkXRenderWindowInteractor's TopLevel has to be set to the top level shell widget note that the procedure for setting up render window in a widget needs to be followed. See vtkRenderWindowInteractor's SetWidget method.
If multiple vtkRenderWindow-Interactor pairs in SEPARATE windows are desired, do not set the display ID (Interactor will create them as needed. Alternatively, create and set distinct DisplayID for each vtkRenderWindow. Using the same display ID without setting the parent widgets will cause the display to be reinitialized every time an interactor is initialized), do not set the widgets (so the render windows would be in their own windows), and do not set TopLevelShell (each has its own top level shell already)
|
inline |
Definition at line 164 of file vtkXRenderWindowInteractor.h.
Re-defines virtual function to get mouse position by querying X-server.
Reimplemented from vtkRenderWindowInteractor.
|
protectedvirtual |
This will start up the X event loop and never return.
If you call this method it will loop processing X events until the application is exited.
Reimplemented from vtkRenderWindowInteractor.
|
protectedvirtual |
X-specific internal timer methods.
See the superclass for detailed documentation.
Reimplemented from vtkRenderWindowInteractor.
Reimplemented in vtkXRenderWindowTclInteractor, and vtkXRenderWindowTclInteractor.
|
protectedvirtual |
Reimplemented from vtkRenderWindowInteractor.
Reimplemented in vtkXRenderWindowTclInteractor, and vtkXRenderWindowTclInteractor.
|
protected |
|
protected |
|
protected |
|
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 vtkRenderWindowInteractor.
Reimplemented in vtkXRenderWindowTclInteractor, and vtkXRenderWindowTclInteractor.
|
static |
|
protectedvirtual |
Reimplemented from vtkRenderWindowInteractor.
Reimplemented in vtkXRenderWindowTclInteractor, and vtkXRenderWindowTclInteractor.
vtkXRenderWindowInteractor* vtkXRenderWindowInteractor::NewInstance | ( | ) | const |
|
virtual |
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 vtkRenderWindowInteractor.
Reimplemented in vtkXRenderWindowTclInteractor.
|
virtual |
Initializes the event handlers without an XtAppContext.
This is good for when you don't have a user interface, but you still want to have mouse interaction.
Reimplemented from vtkRenderWindowInteractor.
Reimplemented in vtkXRenderWindowTclInteractor, and vtkXRenderWindowTclInteractor.
|
virtual |
Break the event loop on 'q','e' keypress.
Want more ???
Reimplemented from vtkRenderWindowInteractor.
|
virtual |
The BreakLoopFlag is checked in the Start() method.
Setting it to anything other than zero will cause the interactor loop to terminate and return to the calling function.
void vtkXRenderWindowInteractor::SetBreakLoopFlag | ( | int | ) |
void vtkXRenderWindowInteractor::BreakLoopFlagOff | ( | ) |
void vtkXRenderWindowInteractor::BreakLoopFlagOn | ( | ) |
|
virtual |
Initializes the event handlers using an XtAppContext that you have provided.
This assumes that you want to own the event loop.
Reimplemented in vtkXRenderWindowTclInteractor, and vtkXRenderWindowTclInteractor.
|
virtual |
|
virtual |
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 from vtkRenderWindowInteractor.
Reimplemented in vtkXRenderWindowTclInteractor, and vtkXRenderWindowTclInteractor.
|
virtual |
Reimplemented from vtkRenderWindowInteractor.
Reimplemented in vtkXRenderWindowTclInteractor, and vtkXRenderWindowTclInteractor.
Update the Size data member and set the associated RenderWindow's size.
Reimplemented from vtkRenderWindowInteractor.
|
virtual |
Specify the Xt widget to use for interaction.
This method is one of a couple steps that are required for setting up a vtkRenderWindowInteractor as a widget inside of another user interface. You do not need to use this method if the render window will be a stand-alone window. This is only used when you want the render window to be a subwindow within a larger user interface. In that case, you must tell the render window what X display id to use, and then ask the render window what depth, visual and colormap it wants. Then, you must create an Xt TopLevelShell with those settings. Then you can create the rest of your user interface as a child of the TopLevelShell you created. Eventually, you will create a drawing area or some other widget to serve as the rendering window. You must use the SetWidget method to tell this Interactor about that widget. It's X and it's not terribly easy, but it looks cool.
|
inline |
Definition at line 133 of file vtkXRenderWindowInteractor.h.
|
virtual |
This method will store the top level shell widget for the interactor.
This method and the method invocation sequence applies for: 1 vtkRenderWindow-Interactor pair in a nested widget hierarchy multiple vtkRenderWindow-Interactor pairs in the same top level shell It is not needed for 1 vtkRenderWindow-Interactor pair as the direct child of a top level shell multiple vtkRenderWindow-Interactor pairs, each in its own top level shell
The method, along with EnterNotify event, changes the keyboard focus among the widgets/vtkRenderWindow(s) so the Interactor(s) can receive the proper keyboard events. The following calls need to be made: vtkRenderWindow's display ID need to be set to the top level shell's display ID. vtkXRenderWindowInteractor's Widget has to be set to the vtkRenderWindow's container widget vtkXRenderWindowInteractor's TopLevel has to be set to the top level shell widget note that the procedure for setting up render window in a widget needs to be followed. See vtkRenderWindowInteractor's SetWidget method.
If multiple vtkRenderWindow-Interactor pairs in SEPARATE windows are desired, do not set the display ID (Interactor will create them as needed. Alternatively, create and set distinct DisplayID for each vtkRenderWindow. Using the same display ID without setting the parent widgets will cause the display to be reinitialized every time an interactor is initialized), do not set the widgets (so the render windows would be in their own windows), and do not set TopLevelShell (each has its own top level shell already)
|
inline |
Definition at line 167 of file vtkXRenderWindowInteractor.h.
Re-defines virtual function to get mouse position by querying X-server.
Reimplemented from vtkRenderWindowInteractor.
|
protectedvirtual |
X-specific internal timer methods.
See the superclass for detailed documentation.
Reimplemented from vtkRenderWindowInteractor.
Reimplemented in vtkXRenderWindowTclInteractor, and vtkXRenderWindowTclInteractor.
|
protectedvirtual |
Reimplemented from vtkRenderWindowInteractor.
Reimplemented in vtkXRenderWindowTclInteractor, and vtkXRenderWindowTclInteractor.
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
This will start up the X event loop and never return.
If you call this method it will loop processing X events until the application is exited.
Reimplemented from vtkRenderWindowInteractor.
|
friend |
Functions that are used internally.
|
friend |
|
friend |
Functions that are used internally.
|
friend |
|
staticprotected |
Definition at line 186 of file vtkXRenderWindowInteractor.h.
|
staticprotected |
Definition at line 187 of file vtkXRenderWindowInteractor.h.
|
protected |
Definition at line 189 of file vtkXRenderWindowInteractor.h.
|
protected |
Definition at line 190 of file vtkXRenderWindowInteractor.h.
|
protected |
Definition at line 191 of file vtkXRenderWindowInteractor.h.
|
protected |
Definition at line 192 of file vtkXRenderWindowInteractor.h.
|
protected |
Definition at line 193 of file vtkXRenderWindowInteractor.h.
|
protected |
Definition at line 194 of file vtkXRenderWindowInteractor.h.
|
protected |
Definition at line 195 of file vtkXRenderWindowInteractor.h.
|
protected |
Definition at line 196 of file vtkXRenderWindowInteractor.h.
|
protected |
Definition at line 197 of file vtkXRenderWindowInteractor.h.
|
protected |
Definition at line 198 of file vtkXRenderWindowInteractor.h.
|
staticprotected |
Definition at line 221 of file vtkXRenderWindowInteractor.h.