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

Method OnRightButtonDown

Interaction/Style/vtkInteractorStyleUser.cxx:130–150  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

128
129//------------------------------------------------------------------------------
130void vtkInteractorStyleUser::OnRightButtonDown()
131{
132 this->Button = 3;
133
134 if (this->HasObserver(vtkCommand::RightButtonPressEvent))
135 {
136 int x = this->Interactor->GetEventPosition()[0];
137 int y = this->Interactor->GetEventPosition()[1];
138 this->CtrlKey = this->Interactor->GetControlKey();
139 this->ShiftKey = this->Interactor->GetShiftKey();
140 this->LastPos[0] = x;
141 this->LastPos[1] = y;
142 this->InvokeEvent(vtkCommand::RightButtonPressEvent, nullptr);
143 this->OldPos[0] = x;
144 this->OldPos[1] = y;
145 }
146 else
147 {
148 this->vtkInteractorStyle::OnRightButtonDown();
149 }
150}
151//------------------------------------------------------------------------------
152void vtkInteractorStyleUser::OnRightButtonUp()
153{

Callers

nothing calls this directly

Calls 2

HasObserverMethod · 0.80
InvokeEventMethod · 0.80

Tested by

no test coverage detected