VTK  9.2.6
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=========================================================================*/
24
25#ifndef vtkSkybox_h
26#define vtkSkybox_h
27
28#include "vtkActor.h"
29#include "vtkRenderingCoreModule.h" // For export macro
30
31class VTKRENDERINGCORE_EXPORT vtkSkybox : public vtkActor
32{
33public:
34 static vtkSkybox* New();
35 vtkTypeMacro(vtkSkybox, vtkActor);
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
43 double* GetBounds() override;
44
46
56 vtkGetMacro(Projection, int);
57 vtkSetMacro(Projection, int);
63
65
68 vtkSetVector4Macro(FloorPlane, float);
69 vtkGetVector4Macro(FloorPlane, float);
70 vtkSetVector3Macro(FloorRight, float);
71 vtkGetVector3Macro(FloorRight, float);
73
75
80 vtkGetMacro(GammaCorrect, bool);
81 vtkSetMacro(GammaCorrect, bool);
82 vtkBooleanMacro(GammaCorrect, bool);
84
85protected:
87 ~vtkSkybox() override;
88
90 float FloorPlane[4];
91 float FloorRight[3];
92
93 bool GammaCorrect = false;
94
95private:
96 vtkSkybox(const vtkSkybox&) = delete;
97 void operator=(const vtkSkybox&) = delete;
98};
99
100#endif // vtkSkybox_h
double * GetBounds() override
Return a reference to the Prop3D's composite transform.
a simple class to control print indentation
Definition vtkIndent.h:40
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:60
Projection
Set/Get the projection to be used.
Definition vtkSkybox.h:50
@ StereoSphere
Definition vtkSkybox.h:54
~vtkSkybox() override
void SetProjectionToCube()
Set/Get the projection to be used.
Definition vtkSkybox.h:58
virtual void SetProjection(int)
Set/Get the projection to be used.
bool GammaCorrect
Definition vtkSkybox.h:93
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
float FloorPlane[4]
Definition vtkSkybox.h:90
void SetProjectionToFloor()
Set/Get the projection to be used.
Definition vtkSkybox.h:61
float FloorRight[3]
Definition vtkSkybox.h:91
void SetProjectionToSphere()
Set/Get the projection to be used.
Definition vtkSkybox.h:59