------------------------------------------------------------------------------
| 202 | |
| 203 | //------------------------------------------------------------------------------ |
| 204 | void vtkCoordinateFrameWidget::PickNormalAction(vtkAbstractWidget* w) |
| 205 | { |
| 206 | vtkCoordinateFrameWidget* self = reinterpret_cast<vtkCoordinateFrameWidget*>(w); |
| 207 | |
| 208 | int X = self->Interactor->GetEventPosition()[0]; |
| 209 | int Y = self->Interactor->GetEventPosition()[1]; |
| 210 | |
| 211 | self->InvokeEvent(vtkCommand::StartInteractionEvent, nullptr); |
| 212 | bool newNormalPicked = self->GetCoordinateFrameRepresentation()->PickNormal( |
| 213 | X, Y, self->Interactor->GetControlKey() == 1); |
| 214 | self->InvokeEvent(vtkCommand::InteractionEvent, nullptr); |
| 215 | self->EventCallbackCommand->SetAbortFlag(1); |
| 216 | self->InvokeEvent(vtkCommand::EndInteractionEvent, nullptr); |
| 217 | if (newNormalPicked) |
| 218 | { |
| 219 | self->Render(); |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | //------------------------------------------------------------------------------ |
| 224 | void vtkCoordinateFrameWidget::PickDirectionPointAction(vtkAbstractWidget* w) |
nothing calls this directly
no test coverage detected