VTK
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 "vtkRenderingOpenGL2Module.h" // For export macro
27 #include "vtkSkybox.h"
28 #include "vtkNew.h" // for ivars
29 
31 
33 class vtkOpenGLRenderer;
34 class vtkMatrix4x4;
35 class vtkMatrix3x3;
36 
37 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLSkybox : public vtkSkybox
38 {
39 public:
40  static vtkOpenGLSkybox *New();
41  vtkTypeMacro(vtkOpenGLSkybox, vtkSkybox);
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
47  void Render(vtkRenderer *ren, vtkMapper *mapper) override;
48 
49  void GetKeyMatrices(vtkMatrix4x4 *&WCVCMatrix, vtkMatrix3x3 *&normalMatrix);
50 
51 protected:
53  ~vtkOpenGLSkybox() override;
54 
59 
61 
62 private:
63  vtkOpenGLSkybox(const vtkOpenGLSkybox&) = delete;
64  void operator=(const vtkOpenGLSkybox&) = delete;
65 };
66 
67 #endif
vtkNew< vtkOpenGLPolyDataMapper > CubeMapper
a PolyDataMapper for the OpenGL library
virtual void Render(vtkRenderer *, vtkMapper *)
This causes the actor to be rendered.
Definition: vtkActor.h:90
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:41
record modification and/or execution time
Definition: vtkTimeStamp.h:35
abstract specification for renderers
Definition: vtkRenderer.h:63
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:60
vtkTimeStamp KeyMatrixTime
vtkTransform * NormalTransform
a simple class to control print indentation
Definition: vtkIndent.h:39
Renders a skybox environment.
Definition: vtkSkybox.h:28
Key for integer values in vtkInformation.
OpenGL Skybox.
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:83
vtkMatrix3x3 * NormalMatrix
static vtkSkybox * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
OpenGL renderer.
represent and manipulate 3x3 transformation matrices
Definition: vtkMatrix3x3.h:36
vtkMatrix4x4 * MCWCMatrix