VTK  9.3.20240418
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 
23 VTK_ABI_NAMESPACE_BEGIN
26 class vtkOpenGLTexture;
27 class vtkRenderWindow;
28 
29 class VTKRENDERINGOPENGL2_EXPORT vtkEquirectangularToCubeMapTexture : public vtkOpenGLTexture
30 {
31 public:
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 
71 protected:
74 
75  unsigned int CubeMapSize = 512;
76  vtkOpenGLTexture* InputTexture = nullptr;
77 
78 private:
80  void operator=(const vtkEquirectangularToCubeMapTexture&) = delete;
81 };
82 
83 VTK_ABI_NAMESPACE_END
84 #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: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
Definition: vtkRenderer.h:172
window superclass for vtkRenderWindow
Definition: vtkWindow.h:48