VTK  9.6.20260123
vtkIndependentViewerCollection.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2// SPDX-License-Identifier: BSD-3-Clause
14
15#ifndef vtkIndependentViewerCollection_h
16#define vtkIndependentViewerCollection_h
17
18#include "vtkObject.h"
19#include "vtkRenderingParallelModule.h" //needed for exports
20
21#include <memory> // needed for std::unique_ptr
22
23VTK_ABI_NAMESPACE_BEGIN
24class VTKRENDERINGPARALLEL_EXPORT vtkIndependentViewerCollection : public vtkObject
25{
26public:
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
31 // API needed by proxy/wrapping infrastructure (due to 'repeat_command="1"')
32
38
44
51 void SetEyeTransform(int i, const double* vals);
52
59 void GetEyeTransform(int i, std::vector<double>& valuesOut);
60
66
72
79 void SetEyeSeparation(int i, double separation);
80
87 double GetEyeSeparation(int i);
88
89 // Convenience API
90
98 void SetEyeTransform(int i, const std::vector<double>& vals);
99
106
111
112protected:
115
116private:
118 void operator=(const vtkIndependentViewerCollection&) = delete;
119
120 class vtkInternals;
121 std::unique_ptr<vtkInternals> Internals;
122};
123
124VTK_ABI_NAMESPACE_END
125#endif
a simple class to control print indentation
Definition vtkIndent.h:108
void GetEyeTransform(int i, std::vector< double > &valuesOut)
Get the ith eye transform matrix as a vector of doubles.
static vtkIndependentViewerCollection * New()
int GetNumberOfIndependentViewers()
Get the number of independent viewers.
int GetNumberOfEyeTransforms()
Return the number of eye transform matrices (the number of independent viewers).
void SetEyeSeparation(int i, double separation)
Set the eye separation of the ith independent viewer.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetEyeTransform(int i, const double *vals)
Set the eye transform matrix of the ith independent viewer.
void SetNumberOfIndependentViewers(int n)
Set the number of independent viewers.
double GetEyeSeparation(int i)
Get the ith eye separation as a vector of doubles.
void SetEyeTransform(int i, const std::vector< double > &vals)
Set the eye transform for the ith indpendent viewer, given a vector of matrix values.
void SetNumberOfEyeSeparations(int n)
Set the number of eye separations (the number of independent viewers).
void SetNumberOfEyeTransforms(int n)
Set the number of eye transform matrices (the number of independent viewers).
~vtkIndependentViewerCollection() override
int GetNumberOfEyeSeparations()
Return the number of eye separations (the number of independent viewers).