VTK  9.1.0
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 #ifndef __VTK_WRAP__
19 
20 #include "vtkImageResize.h" // for vtkImageResize
22 #include "vtkRenderingVolumeOpenGL2Module.h" // For export macro
23 
24 #include "vtkNew.h" // for vtkNew
25 
26 // Forward declarations
28 
39 class VTKRENDERINGVOLUMEOPENGL2_EXPORT vtkOpenGLVolumeTransferFunction2D
41 {
42 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47 
48 protected:
50 
54  void InternalUpdate(vtkObject* func, int blendMode, double sampleDistance, double unitDistance,
55  int filterValue) override;
56 
62  vtkObject* func, double scalarRange[2], int blendMode, double sampleDistance) override;
63 
68  void AllocateTable() override;
69 
71 
72 private:
74  void operator=(const vtkOpenGLVolumeTransferFunction2D&) = delete;
75 };
76 
77 #endif // __VTK_WRAP__
78 #endif // vtkOpenGLTransferFunction2D_h
vtkOpenGLVolumeTransferFunction2D::InternalUpdate
void InternalUpdate(vtkObject *func, int blendMode, double sampleDistance, double unitDistance, int filterValue) override
Update the internal texture object using the 2D image data.
vtkOpenGLVolumeTransferFunction2D::New
static vtkOpenGLVolumeTransferFunction2D * New()
vtkOpenGLVolumeTransferFunction2D::vtkOpenGLVolumeTransferFunction2D
vtkOpenGLVolumeTransferFunction2D()
vtkOpenGLVolumeTransferFunction2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:82
vtkImageResize.h
vtkOpenGLVolumeTransferFunction2D
2D Transfer function container.
Definition: vtkOpenGLVolumeTransferFunction2D.h:41
vtkOpenGLVolumeTransferFunction2D::AllocateTable
void AllocateTable() override
Override allocate table to do nothing as no internal table management is needed.
vtkOpenGLVolumeTransferFunction2D::ResizeFilter
vtkNew< vtkImageResize > ResizeFilter
Definition: vtkOpenGLVolumeTransferFunction2D.h:70
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkNew< vtkImageResize >
vtkOpenGLVolumeLookupTable
Base class for OpenGL texture management of scalar color, opacity and gradient opacity lookup tables.
Definition: vtkOpenGLVolumeLookupTable.h:37
vtkNew.h
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition: vtkOpenGLRenderWindow.h:83
vtkOpenGLVolumeLookupTable.h
vtkOpenGLVolumeTransferFunction2D::NeedsUpdate
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...