VTK  9.4.20250311
vtkPBRLUTTexture.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
11#ifndef vtkPBRLUTTexture_h
12#define vtkPBRLUTTexture_h
13
14#include "vtkOpenGLTexture.h"
15#include "vtkRenderingOpenGL2Module.h" // For export macro
16#include "vtkSmartPointer.h" // For vtkSmartPointer
17#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
18
19VTK_ABI_NAMESPACE_BEGIN
23class vtkRenderWindow;
24
25class VTKRENDERINGOPENGL2_EXPORT VTK_MARSHALAUTO vtkPBRLUTTexture : public vtkOpenGLTexture
26{
27public:
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
35 void Load(vtkRenderer*) override;
36
40 void Render(vtkRenderer* ren) override { this->Load(ren); }
41
43
47 vtkGetMacro(LUTSize, unsigned int);
48 vtkSetMacro(LUTSize, unsigned int);
50
52
56 vtkGetMacro(LUTSamples, unsigned int);
57 vtkSetMacro(LUTSamples, unsigned int);
59
60protected:
61 vtkPBRLUTTexture() = default;
62 ~vtkPBRLUTTexture() override = default;
63
64 unsigned int LUTSize = 512;
65 unsigned int LUTSamples = 1024;
66
67private:
68 vtkPBRLUTTexture(const vtkPBRLUTTexture&) = delete;
69 void operator=(const vtkPBRLUTTexture&) = delete;
70};
71
72VTK_ABI_NAMESPACE_END
73#endif
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.
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
#define VTK_MARSHALAUTO