MCPcopy Create free account
hub / github.com/Kitware/VTK / OnMouseMove

Method OnMouseMove

Interaction/Style/vtkInteractorStyleImage.cxx:166–195  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

164
165//------------------------------------------------------------------------------
166void vtkInteractorStyleImage::OnMouseMove()
167{
168 int x = this->Interactor->GetEventPosition()[0];
169 int y = this->Interactor->GetEventPosition()[1];
170
171 switch (this->State)
172 {
173 case VTKIS_WINDOW_LEVEL:
174 this->FindPokedRenderer(x, y);
175 this->WindowLevel();
176 this->InvokeEvent(vtkCommand::InteractionEvent, nullptr);
177 break;
178
179 case VTKIS_PICK:
180 this->FindPokedRenderer(x, y);
181 this->Pick();
182 this->InvokeEvent(vtkCommand::InteractionEvent, nullptr);
183 break;
184
185 case VTKIS_SLICE:
186 this->FindPokedRenderer(x, y);
187 this->Slice();
188 this->InvokeEvent(vtkCommand::InteractionEvent, nullptr);
189 break;
190 }
191
192 // Call parent to handle all other states and perform additional work
193
194 this->Superclass::OnMouseMove();
195}
196
197//------------------------------------------------------------------------------
198void vtkInteractorStyleImage::OnLeftButtonDown()

Callers

nothing calls this directly

Calls 5

WindowLevelMethod · 0.95
PickMethod · 0.95
SliceMethod · 0.95
InvokeEventMethod · 0.80
FindPokedRendererMethod · 0.45

Tested by

no test coverage detected