VTK  9.0.20201128
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 =========================================================================*/
26 #ifndef vtkEquirectangularToCubeMapTexture_h
27 #define vtkEquirectangularToCubeMapTexture_h
28 
29 #include "vtkOpenGLTexture.h"
30 #include "vtkRenderingOpenGL2Module.h" // For export macro
31 
34 class vtkOpenGLTexture;
35 class vtkRenderWindow;
36 
37 class VTKRENDERINGOPENGL2_EXPORT vtkEquirectangularToCubeMapTexture : public vtkOpenGLTexture
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
48  void SetInputTexture(vtkOpenGLTexture* texture);
49  vtkGetObjectMacro(InputTexture, vtkOpenGLTexture);
51 
55  void Load(vtkRenderer*) override;
56 
60  void Render(vtkRenderer* ren) override { this->Load(ren); }
61 
63 
67  vtkGetMacro(CubeMapSize, unsigned int);
68  vtkSetMacro(CubeMapSize, unsigned int);
70 
77  void ReleaseGraphicsResources(vtkWindow*) override;
78 
79 protected:
82 
83  unsigned int CubeMapSize = 512;
84  vtkOpenGLTexture* InputTexture = nullptr;
85 
86 private:
88  void operator=(const vtkEquirectangularToCubeMapTexture&) = delete;
89 };
90 
91 #endif
vtkOpenGLFramebufferObject
Internal class which encapsulates OpenGL FramebufferObject.
Definition: vtkOpenGLFramebufferObject.h:181
vtkOpenGLTexture::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this texture.
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
vtkOpenGLTexture::New
static vtkOpenGLTexture * New()
vtkEquirectangularToCubeMapTexture::Render
void Render(vtkRenderer *ren) override
Implement base class method.
Definition: vtkEquirectangularToCubeMapTexture.h:60
vtkOpenGLTexture::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkEquirectangularToCubeMapTexture
compute a cubemap texture based on a standard equirectangular projection
Definition: vtkEquirectangularToCubeMapTexture.h:37
vtkOpenGLTexture::Load
void Load(vtkRenderer *) override
Implement base class method.
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:67
vtkOpenGLTexture.h
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition: vtkOpenGLRenderWindow.h:53
vtkRenderWindow
create a window for renderers to draw into
Definition: vtkRenderWindow.h:95
vtkOpenGLTexture
OpenGL texture map.
Definition: vtkOpenGLTexture.h:33