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 =========================================================================*/
34 #ifndef vtkSkybox_h
35 #define vtkSkybox_h
36 
37 #include "vtkActor.h"
38 #include "vtkRenderingCoreModule.h" // For export macro
39 
40 class VTKRENDERINGCORE_EXPORT vtkSkybox : public vtkActor
41 {
42 public:
43  static vtkSkybox* New();
44  vtkTypeMacro(vtkSkybox, vtkActor);
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
52  double* GetBounds() override;
53 
55 
59  {
63  StereoSphere
64  };
65  vtkGetMacro(Projection, int);
66  vtkSetMacro(Projection, int);
67  void SetProjectionToCube() { this->SetProjection(vtkSkybox::Cube); }
68  void SetProjectionToSphere() { this->SetProjection(vtkSkybox::Sphere); }
69  void SetProjectionToStereoSphere() { this->SetProjection(vtkSkybox::StereoSphere); }
70  void SetProjectionToFloor() { this->SetProjection(vtkSkybox::Floor); }
72 
74 
77  vtkSetVector4Macro(FloorPlane, float);
78  vtkGetVector4Macro(FloorPlane, float);
79  vtkSetVector3Macro(FloorRight, float);
80  vtkGetVector3Macro(FloorRight, float);
82 
84 
89  vtkGetMacro(GammaCorrect, bool);
90  vtkSetMacro(GammaCorrect, bool);
91  vtkBooleanMacro(GammaCorrect, bool);
93 
94 protected:
96  ~vtkSkybox() override;
97 
99  float FloorPlane[4];
100  float FloorRight[3];
101 
102  bool GammaCorrect = false;
103 
104 private:
105  vtkSkybox(const vtkSkybox&) = delete;
106  void operator=(const vtkSkybox&) = delete;
107 };
108 
109 #endif // vtkSkybox_h
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:61
a simple class to control print indentation
Definition: vtkIndent.h:49
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
Renders a skybox environment.
Definition: vtkSkybox.h:41
void SetProjectionToStereoSphere()
Set/Get the projection to be used.
Definition: vtkSkybox.h:69
Projection
Set/Get the projection to be used.
Definition: vtkSkybox.h:59
@ StereoSphere
Definition: vtkSkybox.h:63
~vtkSkybox() override
void SetProjectionToCube()
Set/Get the projection to be used.
Definition: vtkSkybox.h:67
int Projection
Definition: vtkSkybox.h:98
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double * GetBounds() override
Return a reference to the Prop3D's composite transform.
void SetProjectionToFloor()
Set/Get the projection to be used.
Definition: vtkSkybox.h:70
static vtkSkybox * New()
void SetProjectionToSphere()
Set/Get the projection to be used.
Definition: vtkSkybox.h:68