VTK  9.1.0
vtkSkybox.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkSkybox.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=========================================================================*/
31#ifndef vtkSkybox_h
32#define vtkSkybox_h
33
34#include "vtkActor.h"
35#include "vtkRenderingCoreModule.h" // For export macro
36
37class VTKRENDERINGCORE_EXPORT vtkSkybox : public vtkActor
38{
39public:
40 static vtkSkybox* New();
41 vtkTypeMacro(vtkSkybox, vtkActor);
42 void PrintSelf(ostream& os, vtkIndent indent) override;
43
49 double* GetBounds() override;
50
52
56 {
60 StereoSphere
61 };
62 vtkGetMacro(Projection, int);
63 vtkSetMacro(Projection, int);
64 void SetProjectionToCube() { this->SetProjection(vtkSkybox::Cube); }
65 void SetProjectionToSphere() { this->SetProjection(vtkSkybox::Sphere); }
67 void SetProjectionToFloor() { this->SetProjection(vtkSkybox::Floor); }
69
71
74 vtkSetVector4Macro(FloorPlane, float);
75 vtkGetVector4Macro(FloorPlane, float);
76 vtkSetVector3Macro(FloorRight, float);
77 vtkGetVector3Macro(FloorRight, float);
79
81
86 vtkGetMacro(GammaCorrect, bool);
87 vtkSetMacro(GammaCorrect, bool);
88 vtkBooleanMacro(GammaCorrect, bool);
90
91protected:
93 ~vtkSkybox() override;
94
96 float FloorPlane[4];
97 float FloorRight[3];
98
99 bool GammaCorrect = false;
100
101private:
102 vtkSkybox(const vtkSkybox&) = delete;
103 void operator=(const vtkSkybox&) = delete;
104};
105
106#endif // vtkSkybox_h
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:55
a simple class to control print indentation
Definition: vtkIndent.h:43
Renders a skybox environment.
Definition: vtkSkybox.h:38
double * GetBounds() override
Return a reference to the Prop3D's composite transform.
static vtkSkybox * New()
void SetProjectionToStereoSphere()
Set/Get the projection to be used.
Definition: vtkSkybox.h:66
Projection
Set/Get the projection to be used.
Definition: vtkSkybox.h:56
@ StereoSphere
Definition: vtkSkybox.h:60
~vtkSkybox() override
void SetProjectionToCube()
Set/Get the projection to be used.
Definition: vtkSkybox.h:64
int Projection
Definition: vtkSkybox.h:95
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetProjectionToFloor()
Set/Get the projection to be used.
Definition: vtkSkybox.h:67
void SetProjectionToSphere()
Set/Get the projection to be used.
Definition: vtkSkybox.h:65
void GetBounds(T a, double bds[6])