VTK  9.0.1
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 vtkOpenGLTransferFunction2D_h
17 #define vtkOpenGLTransferFunction2D_h
18 #ifndef __VTK_WRAP__
19 
21 
22 #include "vtkNew.h"
23 
24 // Forward declarations
26 class vtkImageResize;
27 
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
46 protected:
48 
52  void InternalUpdate(vtkObject* func, int blendMode, double sampleDistance, double unitDistance,
53  int filterValue) override;
54 
59  bool NeedsUpdate(
60  vtkObject* func, double scalarRange[2], int blendMode, double sampleDistance) override;
61 
66  void AllocateTable() override;
67 
69 
70 private:
73 };
74 
75 #endif // __VTK_WRAP__
76 #endif // vtkOpenGLTransferFunction2D_h
77 // VTK-HeaderTest-Exclude: vtkOpenGLVolumeTransferFunction2D.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:62
vtkOpenGLVolumeTransferFunction2D
2D Transfer function container.
Definition: vtkOpenGLVolumeTransferFunction2D.h:38
vtkImageResize
High-quality image resizing filter.
Definition: vtkImageResize.h:39
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:68
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkNew< vtkImageResize >
vtkOpenGLVolumeLookupTable
Base class for OpenGL texture management of scalar color, opacity and gradient opacity lookup tables.
Definition: vtkOpenGLVolumeLookupTable.h:35
vtkNew.h
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition: vtkOpenGLRenderWindow.h:51
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...