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

Method ShowRay

Rendering/VR/vtkVRInteractorStyle.cxx:1141–1156  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Handle Ray drawing and update ------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1139// Handle Ray drawing and update
1140//------------------------------------------------------------------------------
1141void 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//------------------------------------------------------------------------------
1159void vtkVRInteractorStyle::HideRay(vtkEventDataDevice controller)

Callers

nothing calls this directly

Calls 3

GetModelForDeviceMethod · 0.80
SetShowRayMethod · 0.80
GetRenderWindowMethod · 0.45

Tested by

no test coverage detected