------------------------------------------------------------------------------
| 33 | |
| 34 | //------------------------------------------------------------------------------ |
| 35 | void 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 | //------------------------------------------------------------------------------ |
| 62 | void vtkVRRenderWindowInteractor::ProcessEvents() |
nothing calls this directly
no test coverage detected