VTK  9.2.6
vtkOpenGLVolumeTransferFunction2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLVolumeTransferFunction2D.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 =========================================================================*/
15 
16 #ifndef vtkOpenGLVolumeTransferFunction2D_h
17 #define vtkOpenGLVolumeTransferFunction2D_h
18 
19 #include "vtkImageResize.h" // for vtkImageResize
21 #include "vtkRenderingVolumeOpenGL2Module.h" // For export macro
22 
23 #include "vtkNew.h" // for vtkNew
24 
25 // Forward declarations
27 
38 class VTKRENDERINGVOLUMEOPENGL2_EXPORT vtkOpenGLVolumeTransferFunction2D
40 {
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
47 protected:
49 
53  void InternalUpdate(vtkObject* func, int blendMode, double sampleDistance, double unitDistance,
54  int filterValue) override;
55 
61  vtkObject* func, double scalarRange[2], int blendMode, double sampleDistance) override;
62 
67  void AllocateTable() override;
68 
70 
71 private:
73  void operator=(const vtkOpenGLVolumeTransferFunction2D&) = delete;
74 };
75 
76 #endif // vtkOpenGLTransferFunction2D_h
a simple class to control print indentation
Definition: vtkIndent.h:119
abstract base class for most VTK objects
Definition: vtkObject.h:82
OpenGL rendering window.
Base class for OpenGL texture management of scalar color, opacity and gradient opacity lookup tables.
bool NeedsUpdate(vtkObject *func, double scalarRange[2], int blendMode, double sampleDistance) override
Override needs update to not test for scalar range changes since the range is encoded in the vtkImage...
static vtkOpenGLVolumeTransferFunction2D * New()
void InternalUpdate(vtkObject *func, int blendMode, double sampleDistance, double unitDistance, int filterValue) override
Update the internal texture object using the 2D image data.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void AllocateTable() override
Override allocate table to do nothing as no internal table management is needed.