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=========================================================================*/
131#ifndef vtkSkybox_h
132#define vtkSkybox_h
133
134#include "vtkActor.h"
135#include "vtkRenderingCoreModule.h" // For export macro
136
137class VTKRENDERINGCORE_EXPORT vtkSkybox : public vtkActor
138{
139public:
140 static vtkSkybox* New();
141 vtkTypeMacro(vtkSkybox, vtkActor);
142 void PrintSelf(ostream& os, vtkIndent indent) override;
143
149 double* GetBounds() override;
150
152
156 {
160 StereoSphere
161 };
162 vtkGetMacro(Projection, int);
163 vtkSetMacro(Projection, int);
164 void SetProjectionToCube() { this->SetProjection(vtkSkybox::Cube); }
165 void SetProjectionToSphere() { this->SetProjection(vtkSkybox::Sphere); }
167 void SetProjectionToFloor() { this->SetProjection(vtkSkybox::Floor); }
169
171
174 vtkSetVector4Macro(FloorPlane, float);
175 vtkGetVector4Macro(FloorPlane, float);
176 vtkSetVector3Macro(FloorRight, float);
177 vtkGetVector3Macro(FloorRight, float);
179
181
186 vtkGetMacro(GammaCorrect, bool);
187 vtkSetMacro(GammaCorrect, bool);
188 vtkBooleanMacro(GammaCorrect, bool);
190
191protected:
193 ~vtkSkybox() override;
194
196 float FloorPlane[4];
197 float FloorRight[3];
198
199 bool GammaCorrect = false;
200
201private:
202 vtkSkybox(const vtkSkybox&) = delete;
203 void operator=(const vtkSkybox&) = delete;
204};
205
206#endif // vtkSkybox_h
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
a simple class to control print indentation
Definition: vtkIndent.h:113
Renders a skybox environment.
Definition: vtkSkybox.h:138
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:166
Projection
Set/Get the projection to be used.
Definition: vtkSkybox.h:156
@ StereoSphere
Definition: vtkSkybox.h:160
~vtkSkybox() override
void SetProjectionToCube()
Set/Get the projection to be used.
Definition: vtkSkybox.h:164
int Projection
Definition: vtkSkybox.h:195
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:167
void SetProjectionToSphere()
Set/Get the projection to be used.
Definition: vtkSkybox.h:165
void GetBounds(T a, double bds[6])