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

Method OnMouseMove

Interaction/Style/vtkInteractorStyleTrackballActor.cxx:35–72  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

33
34//------------------------------------------------------------------------------
35void vtkInteractorStyleTrackballActor::OnMouseMove()
36{
37 int x = this->Interactor->GetEventPosition()[0];
38 int y = this->Interactor->GetEventPosition()[1];
39
40 switch (this->State)
41 {
42 case VTKIS_ROTATE:
43 this->FindPokedRenderer(x, y);
44 this->Rotate();
45 this->InvokeEvent(vtkCommand::InteractionEvent, nullptr);
46 break;
47
48 case VTKIS_PAN:
49 this->FindPokedRenderer(x, y);
50 this->Pan();
51 this->InvokeEvent(vtkCommand::InteractionEvent, nullptr);
52 break;
53
54 case VTKIS_DOLLY:
55 this->FindPokedRenderer(x, y);
56 this->Dolly();
57 this->InvokeEvent(vtkCommand::InteractionEvent, nullptr);
58 break;
59
60 case VTKIS_SPIN:
61 this->FindPokedRenderer(x, y);
62 this->Spin();
63 this->InvokeEvent(vtkCommand::InteractionEvent, nullptr);
64 break;
65
66 case VTKIS_USCALE:
67 this->FindPokedRenderer(x, y);
68 this->UniformScale();
69 this->InvokeEvent(vtkCommand::InteractionEvent, nullptr);
70 break;
71 }
72}
73
74//------------------------------------------------------------------------------
75void vtkInteractorStyleTrackballActor::OnLeftButtonDown()

Callers

nothing calls this directly

Calls 7

RotateMethod · 0.95
PanMethod · 0.95
DollyMethod · 0.95
SpinMethod · 0.95
UniformScaleMethod · 0.95
InvokeEventMethod · 0.80
FindPokedRendererMethod · 0.45

Tested by

no test coverage detected