------------------------------------------------------------------------------ Handle Ray drawing and update ------------------------------------------------------------------------------
| 1139 | // Handle Ray drawing and update |
| 1140 | //------------------------------------------------------------------------------ |
| 1141 | void vtkVRInteractorStyle::ShowRay(vtkEventDataDevice controller) |
| 1142 | { |
| 1143 | vtkVRRenderWindow* renWin = vtkVRRenderWindow::SafeDownCast(this->Interactor->GetRenderWindow()); |
| 1144 | if (!renWin || |
| 1145 | (controller != vtkEventDataDevice::LeftController && |
| 1146 | controller != vtkEventDataDevice::RightController)) |
| 1147 | { |
| 1148 | return; |
| 1149 | } |
| 1150 | |
| 1151 | vtkVRModel* cmodel = renWin->GetModelForDevice(controller); |
| 1152 | if (cmodel) |
| 1153 | { |
| 1154 | cmodel->SetShowRay(true); |
| 1155 | } |
| 1156 | } |
| 1157 | |
| 1158 | //------------------------------------------------------------------------------ |
| 1159 | void vtkVRInteractorStyle::HideRay(vtkEventDataDevice controller) |
nothing calls this directly
no test coverage detected