------------------------------------------------------------------------------
| 182 | |
| 183 | //------------------------------------------------------------------------------ |
| 184 | void vtkCoordinateFrameWidget::PickOriginAction(vtkAbstractWidget* w) |
| 185 | { |
| 186 | vtkCoordinateFrameWidget* self = reinterpret_cast<vtkCoordinateFrameWidget*>(w); |
| 187 | |
| 188 | int X = self->Interactor->GetEventPosition()[0]; |
| 189 | int Y = self->Interactor->GetEventPosition()[1]; |
| 190 | |
| 191 | self->InvokeEvent(vtkCommand::StartInteractionEvent, nullptr); |
| 192 | bool newOriginPicked = self->GetCoordinateFrameRepresentation()->PickOrigin( |
| 193 | X, Y, self->Interactor->GetControlKey() == 1); |
| 194 | self->InvokeEvent(vtkCommand::InteractionEvent, nullptr); |
| 195 | self->EventCallbackCommand->SetAbortFlag(1); |
| 196 | self->InvokeEvent(vtkCommand::EndInteractionEvent, nullptr); |
| 197 | if (newOriginPicked) |
| 198 | { |
| 199 | self->Render(); |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | //------------------------------------------------------------------------------ |
| 204 | void vtkCoordinateFrameWidget::PickNormalAction(vtkAbstractWidget* w) |
nothing calls this directly
no test coverage detected