VTK
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 =========================================================================*/
22 #ifndef vtkSkybox_h
23 #define vtkSkybox_h
24 
25 #include "vtkRenderingCoreModule.h" // For export macro
26 #include "vtkActor.h"
27 
28 class VTKRENDERINGCORE_EXPORT vtkSkybox: public vtkActor
29 {
30 public:
31  static vtkSkybox* New();
32  vtkTypeMacro(vtkSkybox, vtkActor)
33  void PrintSelf(ostream &os, vtkIndent indent) override;
34 
39  using Superclass::GetBounds;
40  double *GetBounds() override;
41 
43  {
47  };
48  vtkGetMacro(Projection, int);
49  vtkSetMacro(Projection, int);
50  void SetProjectionToCube() { this->SetProjection(vtkSkybox::Cube); }
51  void SetProjectionToSphere() {this->SetProjection(vtkSkybox::Sphere); }
52  void SetProjectionToFloor() {this->SetProjection(vtkSkybox::Floor); }
53 
57  vtkSetVector4Macro(FloorPlane, float);
58  vtkGetVector4Macro(FloorPlane, float);
59 
60  vtkSetVector3Macro(FloorRight, float);
61  vtkGetVector3Macro(FloorRight, float);
62 
63 protected:
64  vtkSkybox();
65  ~vtkSkybox() override;
66 
68  float FloorPlane[4];
69  float FloorRight[3];
70 
71 private:
72  vtkSkybox(const vtkSkybox&) = delete;
73  void operator=(const vtkSkybox&) = delete;
74 };
75 
76 #endif // vtkSkybox_h
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:46
static vtkActor * New()
Creates an actor with the following defaults: origin(0,0,0) position=(0,0,0) scale=(1,1,1) visibility=1 pickable=1 dragable=1 orientation=(0,0,0).
void SetProjectionToSphere()
Definition: vtkSkybox.h:51
a simple class to control print indentation
Definition: vtkIndent.h:39
Renders a skybox environment.
Definition: vtkSkybox.h:28
int Projection
Definition: vtkSkybox.h:67
void SetProjectionToCube()
Definition: vtkSkybox.h:50
void SetProjectionToFloor()
Definition: vtkSkybox.h:52