VTK  9.3.1
vtkStereoCompositor.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
15 #ifndef vtkStereoCompositor_h
16 #define vtkStereoCompositor_h
17 
18 #include "vtkObject.h"
19 #include "vtkRenderingCoreModule.h" // For export macro
20 
21 VTK_ABI_NAMESPACE_BEGIN
23 
24 class VTKRENDERINGCORE_EXPORT vtkStereoCompositor : public vtkObject
25 {
26 public:
27  static vtkStereoCompositor* New();
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
32 
38  bool RedBlue(vtkUnsignedCharArray* rgbLeftNResult, vtkUnsignedCharArray* rgbRight);
39 
40  bool Anaglyph(vtkUnsignedCharArray* rgbLeftNResult, vtkUnsignedCharArray* rgbRight,
41  float colorSaturation, const int colorMask[2]);
42 
43  bool Interlaced(
44  vtkUnsignedCharArray* rgbLeftNResult, vtkUnsignedCharArray* rgbRight, const int size[2]);
45 
46  bool Dresden(
47  vtkUnsignedCharArray* rgbLeftNResult, vtkUnsignedCharArray* rgbRight, const int size[2]);
48 
49  bool Checkerboard(
50  vtkUnsignedCharArray* rgbLeftNResult, vtkUnsignedCharArray* rgbRight, const int size[2]);
51 
52  bool SplitViewportHorizontal(
53  vtkUnsignedCharArray* rgbLeftNResult, vtkUnsignedCharArray* rgbRight, const int size[2]);
55 
56 protected:
58  ~vtkStereoCompositor() override;
59 
60  bool Validate(
61  vtkUnsignedCharArray* rgbLeft, vtkUnsignedCharArray* rgbRight, const int* size = nullptr);
62 
63 private:
65  void operator=(const vtkStereoCompositor&) = delete;
66 };
67 
68 VTK_ABI_NAMESPACE_END
69 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:51
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
dynamic, self-adjusting array of unsigned char
helper class to generate composited stereo images.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...