------------------------------------------------------------------------------
| 164 | |
| 165 | //------------------------------------------------------------------------------ |
| 166 | void 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 | //------------------------------------------------------------------------------ |
| 198 | void vtkInteractorStyleImage::OnLeftButtonDown() |
nothing calls this directly
no test coverage detected