1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
|
Usage
vtkGenericRenderWindowInteractor provides a way to translate
native mouse and keyboard events into vtk Events. By calling
the methods on this class, vtk events will be invoked. This
will allow scripting languages to use vtkInteractorStyles
and 3D widgets.
To create an instance of class
vtkGenericRenderWindowInteractor, simply invoke its
constructor as follows
obj = vtkGenericRenderWindowInteractor
Methods
The class vtkGenericRenderWindowInteractor has several
methods that can be used. They are listed below. Note that
the documentation is translated automatically from the VTK
sources, and may not be completely intelligible. When in
doubt, consult the VTK website. In the methods listed below,
obj is an instance of the vtkGenericRenderWindowInteractor
class.
* string = obj.GetClassName ()
* int = obj.IsA (string name)
* vtkGenericRenderWindowInteractor = obj.NewInstance ()
* vtkGenericRenderWindowInteractor = obj.SafeDownCast
(vtkObject o)
* obj.MouseMoveEvent () - Fire various events.
SetEventInformation should be called just prior to calling
any of these methods. These methods will Invoke the
corresponding vtk event.
* obj.RightButtonPressEvent () - Fire various events.
SetEventInformation should be called just prior to calling
any of these methods. These methods will Invoke the
corresponding vtk event.
* obj.RightButtonReleaseEvent () - Fire various events.
SetEventInformation should be called just prior to calling
any of these methods. These methods will Invoke the
corresponding vtk event.
* obj.LeftButtonPressEvent () - Fire various events.
SetEventInformation should be called just prior to calling
any of these methods. These methods will Invoke the
corresponding vtk event.
* obj.LeftButtonReleaseEvent () - Fire various events.
SetEventInformation should be called just prior to calling
any of these methods. These methods will Invoke the
corresponding vtk event.
* obj.MiddleButtonPressEvent () - Fire various events.
SetEventInformation should be called just prior to calling
any of these methods. These methods will Invoke the
corresponding vtk event.
* obj.MiddleButtonReleaseEvent () - Fire various events.
SetEventInformation should be called just prior to calling
any of these methods. These methods will Invoke the
corresponding vtk event.
* obj.MouseWheelForwardEvent () - Fire various events.
SetEventInformation should be called just prior to calling
any of these methods. These methods will Invoke the
corresponding vtk event.
* obj.MouseWheelBackwardEvent () - Fire various events.
SetEventInformation should be called just prior to calling
any of these methods. These methods will Invoke the
corresponding vtk event.
* obj.ExposeEvent () - Fire various events.
SetEventInformation should be called just prior to calling
any of these methods. These methods will Invoke the
corresponding vtk event.
* obj.ConfigureEvent () - Fire various events.
SetEventInformation should be called just prior to calling
any of these methods. These methods will Invoke the
corresponding vtk event.
* obj.EnterEvent () - Fire various events.
SetEventInformation should be called just prior to calling
any of these methods. These methods will Invoke the
corresponding vtk event.
* obj.LeaveEvent () - Fire various events.
SetEventInformation should be called just prior to calling
any of these methods. These methods will Invoke the
corresponding vtk event.
* obj.TimerEvent () - Fire various events.
SetEventInformation should be called just prior to calling
any of these methods. These methods will Invoke the
corresponding vtk event.
* obj.KeyPressEvent () - Fire various events.
SetEventInformation should be called just prior to calling
any of these methods. These methods will Invoke the
corresponding vtk event.
* obj.KeyReleaseEvent () - Fire various events.
SetEventInformation should be called just prior to calling
any of these methods. These methods will Invoke the
corresponding vtk event.
* obj.CharEvent () - Fire various events.
SetEventInformation should be called just prior to calling
any of these methods. These methods will Invoke the
corresponding vtk event.
* obj.ExitEvent () - Fire various events.
SetEventInformation should be called just prior to calling
any of these methods. These methods will Invoke the
corresponding vtk event.
* obj.SetTimerEventResetsTimer (int ) - Flag that indicates
whether the TimerEvent method should call ResetTimer to
simulate repeating timers with an endless stream of one
shot timers. By default this flag is on and all repeating
timers are implemented as a stream of sequential one shot
timers. If the observer of CreateTimerEvent actually
creates a "natively repeating" timer, setting this flag to
off will prevent (perhaps many many) unnecessary calls to
ResetTimer. Having the flag on by default means that
"natively one shot" timers can be either one shot or
repeating timers with no additional work. Also, "natively
repeating" timers still work with the default setting, but
with potentially many create and destroy calls.
* int = obj.GetTimerEventResetsTimer () - Flag that
indicates whether the TimerEvent method should call
ResetTimer to simulate repeating timers with an endless
stream of one shot timers. By default this flag is on and
all repeating timers are implemented as a stream of
sequential one shot timers. If the observer of
CreateTimerEvent actually creates a "natively repeating"
timer, setting this flag to off will prevent (perhaps many
many) unnecessary calls to ResetTimer. Having the flag on
by default means that "natively one shot" timers can be
either one shot or repeating timers with no additional
work. Also, "natively repeating" timers still work with
the default setting, but with potentially many create and
destroy calls.
* obj.TimerEventResetsTimerOn () - Flag that indicates
whether the TimerEvent method should call ResetTimer to
simulate repeating timers with an endless stream of one
shot timers. By default this flag is on and all repeating
timers are implemented as a stream of sequential one shot
timers. If the observer of CreateTimerEvent actually
creates a "natively repeating" timer, setting this flag to
off will prevent (perhaps many many) unnecessary calls to
ResetTimer. Having the flag on by default means that
"natively one shot" timers can be either one shot or
repeating timers with no additional work. Also, "natively
repeating" timers still work with the default setting, but
with potentially many create and destroy calls.
* obj.TimerEventResetsTimerOff () - Flag that indicates
whether the TimerEvent method should call ResetTimer to
simulate repeating timers with an endless stream of one
shot timers. By default this flag is on and all repeating
timers are implemented as a stream of sequential one shot
timers. If the observer of CreateTimerEvent actually
creates a "natively repeating" timer, setting this flag to
off will prevent (perhaps many many) unnecessary calls to
ResetTimer. Having the flag on by default means that
"natively one shot" timers can be either one shot or
repeating timers with no additional work. Also, "natively
repeating" timers still work with the default setting, but
with potentially many create and destroy calls.
* FreeMat_Documentation
* Visualization_Toolkit_Rendering_Classes
* Generated on Thu Jul 25 2013 17:18:35 for FreeMat by
doxygen_ 1.8.1.1
|