------------------------------------------------------------------------------
| 204 | |
| 205 | //------------------------------------------------------------------------------ |
| 206 | void vtkDisplaySizedImplicitPlaneWidget::PickOriginAction(vtkAbstractWidget* w) |
| 207 | { |
| 208 | vtkDisplaySizedImplicitPlaneWidget* self = |
| 209 | reinterpret_cast<vtkDisplaySizedImplicitPlaneWidget*>(w); |
| 210 | |
| 211 | int X = self->Interactor->GetEventPosition()[0]; |
| 212 | int Y = self->Interactor->GetEventPosition()[1]; |
| 213 | |
| 214 | // Invoke all the events associated with moving the plane |
| 215 | self->InvokeEvent(vtkCommand::StartInteractionEvent, nullptr); |
| 216 | bool newOriginPicked = self->GetDisplaySizedImplicitPlaneRepresentation()->PickOrigin( |
| 217 | X, Y, self->Interactor->GetControlKey() == 1); |
| 218 | self->InvokeEvent(vtkCommand::InteractionEvent, nullptr); |
| 219 | self->EventCallbackCommand->SetAbortFlag(1); |
| 220 | self->InvokeEvent(vtkCommand::EndInteractionEvent, nullptr); |
| 221 | if (newOriginPicked) |
| 222 | { |
| 223 | self->Render(); |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | //------------------------------------------------------------------------------ |
| 228 | void vtkDisplaySizedImplicitPlaneWidget::PickNormalAction(vtkAbstractWidget* w) |
nothing calls this directly
no test coverage detected