VTK  9.0.1
vtkPBRLUTTexture.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPBRLUTTexture.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 =========================================================================*/
23 #ifndef vtkPBRLUTTexture_h
24 #define vtkPBRLUTTexture_h
25 
26 #include "vtkOpenGLTexture.h"
27 #include "vtkRenderingOpenGL2Module.h" // For export macro
28 #include "vtkSmartPointer.h" // For vtkSmartPointer
29 
32 class vtkOpenGLTexture;
33 class vtkRenderWindow;
34 
35 class VTKRENDERINGOPENGL2_EXPORT vtkPBRLUTTexture : public vtkOpenGLTexture
36 {
37 public:
38  static vtkPBRLUTTexture* New();
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
45  void Load(vtkRenderer*) override;
46 
50  void Render(vtkRenderer* ren) override { this->Load(ren); }
51 
53 
57  vtkGetMacro(LUTSize, unsigned int);
58  vtkSetMacro(LUTSize, unsigned int);
60 
62 
66  vtkGetMacro(LUTSamples, unsigned int);
67  vtkSetMacro(LUTSamples, unsigned int);
69 
70 protected:
71  vtkPBRLUTTexture() = default;
72  ~vtkPBRLUTTexture() override = default;
73 
74  unsigned int LUTSize = 512;
75  unsigned int LUTSamples = 1024;
76 
77 private:
78  vtkPBRLUTTexture(const vtkPBRLUTTexture&) = delete;
79  void operator=(const vtkPBRLUTTexture&) = delete;
80 };
81 
82 #endif
a simple class to control print indentation
Definition: vtkIndent.h:34
Internal class which encapsulates OpenGL FramebufferObject.
OpenGL rendering window.
OpenGL texture map.
void Load(vtkRenderer *) override
Implement base class method.
precompute BRDF look-up table texture used in physically based rendering
void Render(vtkRenderer *ren) override
Implement base class method.
vtkPBRLUTTexture()=default
~vtkPBRLUTTexture() override=default
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.
static vtkPBRLUTTexture * New()
create a window for renderers to draw into
abstract specification for renderers
Definition: vtkRenderer.h:59