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

Method GetWindowTitleFromAPI

Rendering/OpenVR/vtkOpenVRRenderWindow.cxx:338–349  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

336
337//------------------------------------------------------------------------------
338std::string vtkOpenVRRenderWindow::GetWindowTitleFromAPI()
339{
340 std::string strDriver = "No Driver";
341 std::string strDisplay = "No Display";
342
343 strDriver = this->GetTrackedDeviceString(
344 this->HMD, vr::k_unTrackedDeviceIndex_Hmd, vr::Prop_TrackingSystemName_String);
345 strDisplay = this->GetTrackedDeviceString(
346 this->HMD, vr::k_unTrackedDeviceIndex_Hmd, vr::Prop_SerialNumber_String);
347
348 return "VTK -" + strDriver + " " + strDisplay;
349}
350
351//------------------------------------------------------------------------------
352void vtkOpenVRRenderWindow::Initialize()

Callers 1

InitializeMethod · 0.95

Calls 1

Tested by

no test coverage detected