File: vtkinteractorobserver.mdc

package info (click to toggle)
freemat 4.2%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 141,800 kB
  • ctags: 14,082
  • sloc: ansic: 126,788; cpp: 62,046; python: 2,080; perl: 1,255; sh: 1,146; yacc: 1,019; lex: 239; makefile: 100
file content (225 lines) | stat: -rw-r--r-- 11,267 bytes parent folder | download | duplicates (2)
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225

 Usage

vtkInteractorObserver is an abstract superclass for
subclasses that observe events invoked by
vtkRenderWindowInteractor. These subclasses are typically
things like 3D widgets; objects that interact with actors in
the scene, or interactively probe the scene for information.
vtkInteractorObserver defines the method SetInteractor() and
enables and disables the processing of events by the
vtkInteractorObserver. Use the methods EnabledOn() or
SetEnabled(1) to turn on the interactor observer, and the
methods EnabledOff() or SetEnabled(0) to turn off the
interactor. Initial value is 0.
To support interactive manipulation of objects, this class
(and subclasses) invoke the events StartInteractionEvent,
InteractionEvent, and EndInteractionEvent. These events are
invoked when the vtkInteractorObserver enters a state where
rapid response is desired: mouse motion, etc. The events can
be used, for example, to set the desired update frame rate
(StartInteractionEvent), operate on data or update a
pipeline (InteractionEvent), and set the desired frame rate
back to normal values (EndInteractionEvent). Two other
events, EnableEvent and DisableEvent, are invoked when the
interactor observer is enabled or disabled.
To create an instance of class vtkInteractorObserver, simply
invoke its constructor as follows

    obj = vtkInteractorObserver



 Methods

The class vtkInteractorObserver 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 vtkInteractorObserver class.

* string = obj.GetClassName ()
* int = obj.IsA (string name)
* vtkInteractorObserver = obj.NewInstance ()
* vtkInteractorObserver = obj.SafeDownCast (vtkObject o)
* obj.SetEnabled (int ) - Methods for turning the interactor
  observer on and off, and determining its state. All
  subclasses must provide the SetEnabled() method. Enabling
  a vtkInteractorObserver has the side effect of adding
  observers; disabling it removes the observers. Prior to
  enabling the vtkInteractorObserver you must set the render
  window interactor (via SetInteractor()). Initial value is
  0.
* int = obj.GetEnabled () - Methods for turning the
  interactor observer on and off, and determining its state.
  All subclasses must provide the SetEnabled() method.
  Enabling a vtkInteractorObserver has the side effect of
  adding observers; disabling it removes the observers.
  Prior to enabling the vtkInteractorObserver you must set
  the render window interactor (via SetInteractor()).
  Initial value is 0.
* obj.EnabledOn () - Methods for turning the interactor
  observer on and off, and determining its state. All
  subclasses must provide the SetEnabled() method. Enabling
  a vtkInteractorObserver has the side effect of adding
  observers; disabling it removes the observers. Prior to
  enabling the vtkInteractorObserver you must set the render
  window interactor (via SetInteractor()). Initial value is
  0.
* obj.EnabledOff () - Methods for turning the interactor
  observer on and off, and determining its state. All
  subclasses must provide the SetEnabled() method. Enabling
  a vtkInteractorObserver has the side effect of adding
  observers; disabling it removes the observers. Prior to
  enabling the vtkInteractorObserver you must set the render
  window interactor (via SetInteractor()). Initial value is
  0.
* obj.On () - Methods for turning the interactor observer on
  and off, and determining its state. All subclasses must
  provide the SetEnabled() method. Enabling a
  vtkInteractorObserver has the side effect of adding
  observers; disabling it removes the observers. Prior to
  enabling the vtkInteractorObserver you must set the render
  window interactor (via SetInteractor()). Initial value is
  0.
* obj.Off () - This method is used to associate the widget
  with the render window interactor. Observers of the
  appropriate events invoked in the render window interactor
  are set up as a result of this method invocation. The
  SetInteractor() method must be invoked prior to enabling
  the vtkInteractorObserver.
* obj.SetInteractor (vtkRenderWindowInteractor iren) - This
  method is used to associate the widget with the render
  window interactor. Observers of the appropriate events
  invoked in the render window interactor are set up as a
  result of this method invocation. The SetInteractor()
  method must be invoked prior to enabling the
  vtkInteractorObserver.
* vtkRenderWindowInteractor = obj.GetInteractor () - This
  method is used to associate the widget with the render
  window interactor. Observers of the appropriate events
  invoked in the render window interactor are set up as a
  result of this method invocation. The SetInteractor()
  method must be invoked prior to enabling the
  vtkInteractorObserver.
* obj.SetPriority (float ) - Set/Get the priority at which
  events are processed. This is used when multiple
  interactor observers are used simultaneously. The default
  value is 0.0 (lowest priority.) Note that when multiple
  interactor observer have the same priority, then the last
  observer added will process the event first. (Note: once
  the SetInteractor() method has been called, changing the
  priority does not effect event processing. You will have
  to SetInteractor(NULL), change priority, and then
  SetInteractor(iren) to have the priority take effect.)
* float = obj.GetPriorityMinValue () - Set/Get the priority
  at which events are processed. This is used when multiple
  interactor observers are used simultaneously. The default
  value is 0.0 (lowest priority.) Note that when multiple
  interactor observer have the same priority, then the last
  observer added will process the event first. (Note: once
  the SetInteractor() method has been called, changing the
  priority does not effect event processing. You will have
  to SetInteractor(NULL), change priority, and then
  SetInteractor(iren) to have the priority take effect.)
* float = obj.GetPriorityMaxValue () - Set/Get the priority
  at which events are processed. This is used when multiple
  interactor observers are used simultaneously. The default
  value is 0.0 (lowest priority.) Note that when multiple
  interactor observer have the same priority, then the last
  observer added will process the event first. (Note: once
  the SetInteractor() method has been called, changing the
  priority does not effect event processing. You will have
  to SetInteractor(NULL), change priority, and then
  SetInteractor(iren) to have the priority take effect.)
* float = obj.GetPriority () - Set/Get the priority at which
  events are processed. This is used when multiple
  interactor observers are used simultaneously. The default
  value is 0.0 (lowest priority.) Note that when multiple
  interactor observer have the same priority, then the last
  observer added will process the event first. (Note: once
  the SetInteractor() method has been called, changing the
  priority does not effect event processing. You will have
  to SetInteractor(NULL), change priority, and then
  SetInteractor(iren) to have the priority take effect.)
* obj.SetKeyPressActivation (int ) - Enable/Disable of the
  use of a keypress to turn on and off the interactor
  observer. (By default, the keypress is 'i' for "interactor
  observer".) Set the KeyPressActivationValue to change
  which key activates the widget.)
* int = obj.GetKeyPressActivation () - Enable/Disable of the
  use of a keypress to turn on and off the interactor
  observer. (By default, the keypress is 'i' for "interactor
  observer".) Set the KeyPressActivationValue to change
  which key activates the widget.)
* obj.KeyPressActivationOn () - Enable/Disable of the use of
  a keypress to turn on and off the interactor observer. (By
  default, the keypress is 'i' for "interactor observer".)
  Set the KeyPressActivationValue to change which key
  activates the widget.)
* obj.KeyPressActivationOff () - Enable/Disable of the use
  of a keypress to turn on and off the interactor observer.
  (By default, the keypress is 'i' for "interactor
  observer".) Set the KeyPressActivationValue to change
  which key activates the widget.)
* obj.SetKeyPressActivationValue (char ) - Specify which key
  press value to use to activate the interactor observer (if
  key press activation is enabled). By default, the key
  press activation value is 'i'. Note: once the
  SetInteractor() method is invoked, changing the key press
  activation value will not affect the key press until
  SetInteractor(NULL)/SetInteractor(iren) is called.
* char = obj.GetKeyPressActivationValue () - Specify which
  key press value to use to activate the interactor observer
  (if key press activation is enabled). By default, the key
  press activation value is 'i'. Note: once the
  SetInteractor() method is invoked, changing the key press
  activation value will not affect the key press until
  SetInteractor(NULL)/SetInteractor(iren) is called.
* vtkRenderer = obj.GetDefaultRenderer () - Set/Get the
  default renderer to use when activating the interactor
  observer. Normally when the widget is activated
  (SetEnabled(1) or when keypress activation takes place),
  the renderer over which the mouse pointer is positioned is
  used. Alternatively, you can specify the renderer to bind
  the interactor to when the interactor observer is
  activated.
* obj.SetDefaultRenderer (vtkRenderer ) - Set/Get the
  default renderer to use when activating the interactor
  observer. Normally when the widget is activated
  (SetEnabled(1) or when keypress activation takes place),
  the renderer over which the mouse pointer is positioned is
  used. Alternatively, you can specify the renderer to bind
  the interactor to when the interactor observer is
  activated.
* vtkRenderer = obj.GetCurrentRenderer () - Set/Get the
  current renderer. Normally when the widget is activated
  (SetEnabled(1) or when keypress activation takes place),
  the renderer over which the mouse pointer is positioned is
  used and assigned to this Ivar. Alternatively, you might
  want to set the CurrentRenderer explicitly. WARNING: note
  that if the DefaultRenderer Ivar is set (see above), it
  will always override the parameter passed to
  SetCurrentRenderer, unless it is NULL. (i.e.,
  SetCurrentRenderer(foo) = SetCurrentRenderer
  (DefaultRenderer).
* obj.SetCurrentRenderer (vtkRenderer ) - Set/Get the
  current renderer. Normally when the widget is activated
  (SetEnabled(1) or when keypress activation takes place),
  the renderer over which the mouse pointer is positioned is
  used and assigned to this Ivar. Alternatively, you might
  want to set the CurrentRenderer explicitly. WARNING: note
  that if the DefaultRenderer Ivar is set (see above), it
  will always override the parameter passed to
  SetCurrentRenderer, unless it is NULL. (i.e.,
  SetCurrentRenderer(foo) = SetCurrentRenderer
  (DefaultRenderer).
* obj.OnChar () - Sets up the keypress-i event.


* FreeMat_Documentation
* Visualization_Toolkit_Rendering_Classes
* Generated on Thu Jul 25 2013 17:18:35 for FreeMat by
  doxygen_ 1.8.1.1