-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvtkWin32OpenGLMultiChannelRenderWindow.cxx
More file actions
69 lines (54 loc) · 2.11 KB
/
vtkWin32OpenGLMultiChannelRenderWindow.cxx
File metadata and controls
69 lines (54 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*=========================================================================
Name: vtkWin32OpenGLMultiChannelRenderWindow.cxx
Author: David Borland, The Renaissance Computing Institute (RENCI)
Copyright: The Renaissance Computing Institute (RENCI)
License: Licensed under the RENCI Open Source Software License v. 1.0.
See included License.txt or
http://www.renci.org/resources/open-source-software-license
for details.
=========================================================================*/
#include "vtkWin32OpenGLMultiChannelRenderWindow.h"
#include "vtkCamera.h"
#include "vtkMultiChannelRenderWindowHelper.h"
#include "vtkObjectFactory.h"
#include "vtkRendererCollection.h"
vtkCxxRevisionMacro(vtkWin32OpenGLMultiChannelRenderWindow, "$Revision: 1.0 $");
vtkStandardNewMacro(vtkWin32OpenGLMultiChannelRenderWindow);
vtkCxxSetObjectMacro(vtkWin32OpenGLMultiChannelRenderWindow, Helper, vtkMultiChannelRenderWindowHelper);
//----------------------------------------------------------------------------
vtkWin32OpenGLMultiChannelRenderWindow::vtkWin32OpenGLMultiChannelRenderWindow()
{
this->Helper = NULL;
}
//----------------------------------------------------------------------------
vtkWin32OpenGLMultiChannelRenderWindow::~vtkWin32OpenGLMultiChannelRenderWindow()
{
if (this->Helper)
{
this->Helper->UnRegister(this);
}
}
//----------------------------------------------------------------------------
void vtkWin32OpenGLMultiChannelRenderWindow::DoStereoRender()
{
if (this->Helper->GetChannels()->GetNumberOfItems() == 0)
{
// Default rendering
vtkWin32OpenGLRenderWindow::DoStereoRender();
}
else
{
this->Start();
this->Helper->Render(this->Renderers);
}
}
//----------------------------------------------------------------------------
void vtkWin32OpenGLMultiChannelRenderWindow::PrintSelf(ostream& os, vtkIndent indent)
{
this->Superclass::PrintSelf(os,indent);
if (this->Helper)
{
os << indent << "Helper:\n";
this->Helper->PrintSelf(os,indent.GetNextIndent());
}
}