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

Method PickNormalAction

Interaction/Widgets/vtkCoordinateFrameWidget.cxx:204–221  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

202
203//------------------------------------------------------------------------------
204void 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//------------------------------------------------------------------------------
224void vtkCoordinateFrameWidget::PickDirectionPointAction(vtkAbstractWidget* w)

Callers

nothing calls this directly

Calls 3

InvokeEventMethod · 0.80
RenderMethod · 0.65
PickNormalMethod · 0.45

Tested by

no test coverage detected