VTK
9.0.1
Rendering
Core
vtkStereoCompositor.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkStereoCompositor.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
27
#ifndef vtkStereoCompositor_h
28
#define vtkStereoCompositor_h
29
30
#include "
vtkObject.h
"
31
#include "vtkRenderingCoreModule.h"
// For export macro
32
33
class
vtkUnsignedCharArray
;
34
35
class
VTKRENDERINGCORE_EXPORT
vtkStereoCompositor
:
public
vtkObject
36
{
37
public
:
38
static
vtkStereoCompositor
*
New
();
39
vtkTypeMacro(
vtkStereoCompositor
,
vtkObject
);
40
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
41
43
49
bool
RedBlue(
vtkUnsignedCharArray
* rgbLeftNResult,
vtkUnsignedCharArray
* rgbRight);
50
51
bool
Anaglyph(
vtkUnsignedCharArray
* rgbLeftNResult,
vtkUnsignedCharArray
* rgbRight,
52
float
colorSaturation,
const
int
colorMask[2]);
53
54
bool
Interlaced(
55
vtkUnsignedCharArray
* rgbLeftNResult,
vtkUnsignedCharArray
* rgbRight,
const
int
size
[2]);
56
57
bool
Dresden(
58
vtkUnsignedCharArray
* rgbLeftNResult,
vtkUnsignedCharArray
* rgbRight,
const
int
size
[2]);
59
60
bool
Checkerboard(
61
vtkUnsignedCharArray
* rgbLeftNResult,
vtkUnsignedCharArray
* rgbRight,
const
int
size
[2]);
62
63
bool
SplitViewportHorizontal(
64
vtkUnsignedCharArray
* rgbLeftNResult,
vtkUnsignedCharArray
* rgbRight,
const
int
size
[2]);
66
67
protected
:
68
vtkStereoCompositor
();
69
~
vtkStereoCompositor
()
override
;
70
71
bool
Validate(
72
vtkUnsignedCharArray
* rgbLeft,
vtkUnsignedCharArray
* rgbRight,
const
int
*
size
=
nullptr
);
73
74
private
:
75
vtkStereoCompositor
(
const
vtkStereoCompositor
&) =
delete
;
76
void
operator=(
const
vtkStereoCompositor
&) =
delete
;
77
};
78
79
#endif
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition:
vtkUnsignedCharArray.h:35
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:62
vtkStereoCompositor
helper class to generate composited stereo images.
Definition:
vtkStereoCompositor.h:35
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkX3D::size
@ size
Definition:
vtkX3D.h:259
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject.h
Generated on Thu Jun 25 2020 08:30:58 for VTK by
1.8.17