VTK  9.2.6
vtkOpenGLSkybox.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLSkybox.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 =========================================================================*/
26 #ifndef vtkOpenGLSkybox_h
27 #define vtkOpenGLSkybox_h
28 
29 #include "vtkNew.h" // for ivars
30 #include "vtkRenderingOpenGL2Module.h" // For export macro
31 #include "vtkSkybox.h"
32 
33 class vtkOpenGLActor;
35 
36 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLSkybox : public vtkSkybox
37 {
38 public:
39  static vtkOpenGLSkybox* New();
40  vtkTypeMacro(vtkOpenGLSkybox, vtkSkybox);
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
46  void Render(vtkRenderer* ren, vtkMapper* mapper) override;
47 
48 protected:
50  ~vtkOpenGLSkybox() override;
51 
54  float LastCameraPosition[3];
55 
56  void UpdateUniforms(vtkObject*, unsigned long, void*);
57 
61 
62 private:
63  vtkOpenGLSkybox(const vtkOpenGLSkybox&) = delete;
64  void operator=(const vtkOpenGLSkybox&) = delete;
65 };
66 
67 #endif
vtkNew< vtkOpenGLPolyDataMapper > CubeMapper
PolyDataMapper using OpenGL to render.
virtual void Render(vtkRenderer *, vtkMapper *)
This causes the actor to be rendered.
Definition: vtkActor.h:93
abstract base class for most VTK objects
Definition: vtkObject.h:62
abstract specification for renderers
Definition: vtkRenderer.h:72
OpenGL actor.
a simple class to control print indentation
Definition: vtkIndent.h:39
Renders a skybox environment.
Definition: vtkSkybox.h:31
OpenGL Skybox.
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:87
vtkNew< vtkOpenGLActor > OpenGLActor
static vtkSkybox * New()
vtkRenderer * CurrentRenderer
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.