VTK  9.2.6
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 =========================================================================*/
68 #ifndef vtkEquirectangularToCubeMapTexture_h
69 #define vtkEquirectangularToCubeMapTexture_h
70 
71 #include "vtkOpenGLTexture.h"
72 #include "vtkRenderingOpenGL2Module.h" // For export macro
73 
76 class vtkOpenGLTexture;
77 class vtkRenderWindow;
78 
79 class VTKRENDERINGOPENGL2_EXPORT vtkEquirectangularToCubeMapTexture : public vtkOpenGLTexture
80 {
81 public:
84  void PrintSelf(ostream& os, vtkIndent indent) override;
85 
87 
91  vtkGetObjectMacro(InputTexture, vtkOpenGLTexture);
93 
97  void Load(vtkRenderer*) override;
98 
102  void Render(vtkRenderer* ren) override { this->Load(ren); }
103 
105 
109  vtkGetMacro(CubeMapSize, unsigned int);
110  vtkSetMacro(CubeMapSize, unsigned int);
112 
120 
121 protected:
124 
125  unsigned int CubeMapSize = 512;
126  vtkOpenGLTexture* InputTexture = nullptr;
127 
128 private:
130  void operator=(const vtkEquirectangularToCubeMapTexture&) = delete;
131 };
132 
133 #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:119
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:182
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39