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

Method Initialize

Rendering/VR/vtkVRRenderWindowInteractor.cxx:35–59  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

33
34//------------------------------------------------------------------------------
35void vtkVRRenderWindowInteractor::Initialize()
36{
37 if (this->Initialized)
38 {
39 return;
40 }
41
42 // Make sure we have a RenderWindow
43 if (!this->RenderWindow)
44 {
45 vtkErrorMacro(<< "No render window defined!");
46 return;
47 }
48
49 // Get the info we need from the RenderWindow
50 vtkVRRenderWindow* renWin = vtkVRRenderWindow::SafeDownCast(this->RenderWindow);
51 int* size;
52 size = renWin->GetSize();
53 renWin->GetPosition();
54 this->Enable();
55 this->Size[0] = size[0];
56 this->Size[1] = size[1];
57
58 this->Initialized = 1;
59}
60
61//------------------------------------------------------------------------------
62void vtkVRRenderWindowInteractor::ProcessEvents()

Callers

nothing calls this directly

Calls 3

GetSizeMethod · 0.45
GetPositionMethod · 0.45
EnableMethod · 0.45

Tested by

no test coverage detected