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=========================================================================*/
65#ifndef vtkEquirectangularToCubeMapTexture_h
66#define vtkEquirectangularToCubeMapTexture_h
67
68#include "vtkOpenGLTexture.h"
69#include "vtkRenderingOpenGL2Module.h" // For export macro
70
74class vtkRenderWindow;
75
76class VTKRENDERINGOPENGL2_EXPORT vtkEquirectangularToCubeMapTexture : public vtkOpenGLTexture
77{
78public:
81 void PrintSelf(ostream& os, vtkIndent indent) override;
82
84
88 vtkGetObjectMacro(InputTexture, vtkOpenGLTexture);
90
94 void Load(vtkRenderer*) override;
95
99 void Render(vtkRenderer* ren) override { this->Load(ren); }
100
102
106 vtkGetMacro(CubeMapSize, unsigned int);
107 vtkSetMacro(CubeMapSize, unsigned int);
109
117
118protected:
121
122 unsigned int CubeMapSize = 512;
123 vtkOpenGLTexture* InputTexture = nullptr;
124
125private:
127 void operator=(const vtkEquirectangularToCubeMapTexture&) = delete;
128};
129
130#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:113
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:173
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36