VTK  9.3.1
vtkOpenGLVolumeTransferFunction2D.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
3 
4 #ifndef vtkOpenGLVolumeTransferFunction2D_h
5 #define vtkOpenGLVolumeTransferFunction2D_h
6 
7 #include "vtkImageResize.h" // for vtkImageResize
9 #include "vtkRenderingVolumeOpenGL2Module.h" // For export macro
10 
11 #include "vtkNew.h" // for vtkNew
12 
13 // Forward declarations
14 VTK_ABI_NAMESPACE_BEGIN
16 
27 class VTKRENDERINGVOLUMEOPENGL2_EXPORT vtkOpenGLVolumeTransferFunction2D
29 {
30 public:
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
35 
36 protected:
38 
42  void InternalUpdate(vtkObject* func, int blendMode, double sampleDistance, double unitDistance,
43  int filterValue) override;
44 
49  bool NeedsUpdate(
50  vtkObject* func, double scalarRange[2], int blendMode, double sampleDistance) override;
51 
56  void AllocateTable() override;
57 
59 
60 private:
62  void operator=(const vtkOpenGLVolumeTransferFunction2D&) = delete;
63 };
64 
65 VTK_ABI_NAMESPACE_END
66 #endif // vtkOpenGLTransferFunction2D_h
OpenGL rendering window.
abstract base class for most VTK objects
Definition: vtkObject.h:51
Base class for OpenGL texture management of scalar color, opacity and gradient opacity lookup tables...
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual void InternalUpdate(vtkObject *func, int blendMode, double sampleDistance, double unitDistance, int filterValue)
Internal method to actually update the texture object.
virtual bool NeedsUpdate(vtkObject *func, double scalarRange[2], int blendMode, double sampleDistance)
Test whether the internal function needs to be updated.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void AllocateTable()
Allocate internal data table.