VTK  9.6.20260112
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
16
17#ifndef vtkEquirectangularToCubeMapTexture_h
18#define vtkEquirectangularToCubeMapTexture_h
19
20#include "vtkOpenGLTexture.h"
21#include "vtkRenderingOpenGL2Module.h" // For export macro
22#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
23
24VTK_ABI_NAMESPACE_BEGIN
28class vtkRenderWindow;
29
31 : public vtkOpenGLTexture
32{
33public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
43 vtkGetObjectMacro(InputTexture, vtkOpenGLTexture);
45
49 void Load(vtkRenderer*) override;
50
54 void Render(vtkRenderer* ren) override { this->Load(ren); }
55
57
61 vtkGetMacro(CubeMapSize, unsigned int);
62 vtkSetMacro(CubeMapSize, unsigned int);
64
72
73protected:
76
77 unsigned int CubeMapSize = 512;
79
80private:
82 void operator=(const vtkEquirectangularToCubeMapTexture&) = delete;
83};
84
85VTK_ABI_NAMESPACE_END
86#endif
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
#define VTK_MARSHALAUTO