VTK  9.1.0
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=========================================================================*/
23#ifndef vtkOpenGLSkybox_h
24#define vtkOpenGLSkybox_h
25
26#include "vtkNew.h" // for ivars
27#include "vtkRenderingOpenGL2Module.h" // For export macro
28#include "vtkSkybox.h"
29
30class vtkOpenGLActor;
32
33class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLSkybox : public vtkSkybox
34{
35public:
37 vtkTypeMacro(vtkOpenGLSkybox, vtkSkybox);
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
43 void Render(vtkRenderer* ren, vtkMapper* mapper) override;
44
45protected:
47 ~vtkOpenGLSkybox() override;
48
51 float LastCameraPosition[3];
52
53 void UpdateUniforms(vtkObject*, unsigned long, void*);
54
58
59private:
60 vtkOpenGLSkybox(const vtkOpenGLSkybox&) = delete;
61 void operator=(const vtkOpenGLSkybox&) = delete;
62};
63
64#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:171
Allocate and hold a VTK object.
Definition: vtkNew.h:165
abstract base class for most VTK objects
Definition: vtkObject.h:82
OpenGL actor.
PolyDataMapper using OpenGL to render.
OpenGL Skybox.
vtkRenderer * CurrentRenderer
vtkNew< vtkOpenGLPolyDataMapper > CubeMapper
void UpdateUniforms(vtkObject *, unsigned long, void *)
static vtkOpenGLSkybox * New()
~vtkOpenGLSkybox() override
vtkNew< vtkOpenGLActor > OpenGLActor
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Render(vtkRenderer *ren, vtkMapper *mapper) override
Actual Skybox render method.
abstract specification for renderers
Definition: vtkRenderer.h:182
Renders a skybox environment.
Definition: vtkSkybox.h:138