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=========================================================================*/
29#ifndef vtkEquirectangularToCubeMapTexture_h
30#define vtkEquirectangularToCubeMapTexture_h
31
32#include "vtkOpenGLTexture.h"
33#include "vtkRenderingOpenGL2Module.h" // For export macro
34
38class vtkRenderWindow;
39
40class VTKRENDERINGOPENGL2_EXPORT vtkEquirectangularToCubeMapTexture : public vtkOpenGLTexture
41{
42public:
45 void PrintSelf(ostream& os, vtkIndent indent) override;
46
48
52 vtkGetObjectMacro(InputTexture, vtkOpenGLTexture);
54
58 void Load(vtkRenderer*) override;
59
63 void Render(vtkRenderer* ren) override { this->Load(ren); }
64
66
70 vtkGetMacro(CubeMapSize, unsigned int);
71 vtkSetMacro(CubeMapSize, unsigned int);
73
81
82protected:
85
86 unsigned int CubeMapSize = 512;
87 vtkOpenGLTexture* InputTexture = nullptr;
88
89private:
91 void operator=(const vtkEquirectangularToCubeMapTexture&) = delete;
92};
93
94#endif
compute a cubemap texture based on a standard equirectangular projection
void Render(vtkRenderer *ren) override
Implement base class method.
static vtkEquirectangularToCubeMapTexture * New()
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.
a simple class to control print indentation
Definition: vtkIndent.h:40
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