VTK  9.1.0
vtkEquirectangularToCubeMapTexture.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkEquirectangularToCubeMapTexture.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 vtkEquirectangularToCubeMapTexture_h
27 #define vtkEquirectangularToCubeMapTexture_h
28 
29 #include "vtkOpenGLTexture.h"
30 #include "vtkRenderingOpenGL2Module.h" // For export macro
31 
34 class vtkOpenGLTexture;
35 class vtkRenderWindow;
36 
37 class VTKRENDERINGOPENGL2_EXPORT vtkEquirectangularToCubeMapTexture : public vtkOpenGLTexture
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
49  vtkGetObjectMacro(InputTexture, vtkOpenGLTexture);
51 
55  void Load(vtkRenderer*) override;
56 
60  void Render(vtkRenderer* ren) override { this->Load(ren); }
61 
63 
67  vtkGetMacro(CubeMapSize, unsigned int);
68  vtkSetMacro(CubeMapSize, unsigned int);
70 
78 
79 protected:
82 
83  unsigned int CubeMapSize = 512;
84  vtkOpenGLTexture* InputTexture = nullptr;
85 
86 private:
88  void operator=(const vtkEquirectangularToCubeMapTexture&) = delete;
89 };
90 
91 #endif
compute a cubemap texture based on a standard equirectangular projection
void Render(vtkRenderer *ren) override
Implement base class method.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Load(vtkRenderer *) override
Implement base class method.
void SetInputTexture(vtkOpenGLTexture *texture)
Get/Set the input equirectangular 2D texture.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this texture.
static vtkEquirectangularToCubeMapTexture * New()
a simple class to control print indentation
Definition: vtkIndent.h:34
Internal class which encapsulates OpenGL FramebufferObject.
OpenGL rendering window.
OpenGL texture map.
void Load(vtkRenderer *) override
Implement base class method.
create a window for renderers to draw into
abstract specification for renderers
Definition: vtkRenderer.h:73
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39