VTK  9.0.1
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 
30 class vtkOpenGLActor;
32 
33 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLSkybox : public vtkSkybox
34 {
35 public:
36  static vtkOpenGLSkybox* New();
37  vtkTypeMacro(vtkOpenGLSkybox, vtkSkybox);
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
43  void Render(vtkRenderer* ren, vtkMapper* mapper) override;
44 
45 protected:
47  ~vtkOpenGLSkybox() override;
48 
50  float LastCameraPosition[3];
51 
52  void UpdateUniforms(vtkObject*, unsigned long, void*);
53 
57 
58 private:
59  vtkOpenGLSkybox(const vtkOpenGLSkybox&) = delete;
60  void operator=(const vtkOpenGLSkybox&) = delete;
61 };
62 
63 #endif
vtkOpenGLSkybox::OpenGLActor
vtkNew< vtkOpenGLActor > OpenGLActor
Definition: vtkOpenGLSkybox.h:55
vtkOpenGLSkybox::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:54
vtkOpenGLSkybox::CurrentRenderer
vtkRenderer * CurrentRenderer
Definition: vtkOpenGLSkybox.h:56
vtkOpenGLSkybox::UpdateUniforms
void UpdateUniforms(vtkObject *, unsigned long, void *)
vtkOpenGLSkybox::vtkOpenGLSkybox
vtkOpenGLSkybox()
vtkSkybox
Renders a skybox environment.
Definition: vtkSkybox.h:29
vtkMapper
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:81
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkNew< vtkOpenGLPolyDataMapper >
vtkOpenGLSkybox::~vtkOpenGLSkybox
~vtkOpenGLSkybox() override
vtkOpenGLSkybox::CubeMapper
vtkNew< vtkOpenGLPolyDataMapper > CubeMapper
Definition: vtkOpenGLSkybox.h:54
vtkSkybox.h
vtkOpenGLSkybox
OpenGL Skybox.
Definition: vtkOpenGLSkybox.h:34
vtkNew.h
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:59
vtkOpenGLSkybox::Render
void Render(vtkRenderer *ren, vtkMapper *mapper) override
Actual Skybox render method.
vtkOpenGLSkybox::New
static vtkOpenGLSkybox * New()
vtkOpenGLActor
OpenGL actor.
Definition: vtkOpenGLActor.h:35
vtkOpenGLPolyDataMapper
PolyDataMapper using OpenGL to render.
Definition: vtkOpenGLPolyDataMapper.h:52
vtkOpenGLSkybox::LastProjection
int LastProjection
Definition: vtkOpenGLSkybox.h:49