VTK  9.5.20250807
vtkEquirectangularToCubeMapTexture.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
17#ifndef vtkEquirectangularToCubeMapTexture_h
18#define vtkEquirectangularToCubeMapTexture_h
19
20#include "vtkOpenGLTexture.h"
21#include "vtkRenderingOpenGL2Module.h" // For export macro
22
23VTK_ABI_NAMESPACE_BEGIN
27class vtkRenderWindow;
28
29class VTKRENDERINGOPENGL2_EXPORT vtkEquirectangularToCubeMapTexture : public vtkOpenGLTexture
30{
31public:
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35
37
41 vtkGetObjectMacro(InputTexture, vtkOpenGLTexture);
43
47 void Load(vtkRenderer*) override;
48
52 void Render(vtkRenderer* ren) override { this->Load(ren); }
53
55
59 vtkGetMacro(CubeMapSize, unsigned int);
60 vtkSetMacro(CubeMapSize, unsigned int);
62
70
71protected:
74
75 unsigned int CubeMapSize = 512;
76 vtkOpenGLTexture* InputTexture = nullptr;
77
78private:
80 void operator=(const vtkEquirectangularToCubeMapTexture&) = delete;
81};
82
83VTK_ABI_NAMESPACE_END
84#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:108
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
window superclass for vtkRenderWindow
Definition vtkWindow.h:48