VTK  9.1.0
vtkOpenGLVolumeOpacityTable.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkOpenGLVolumeOpacityTable.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 vtkOpenGLVolumeOpacityTable_h
17#define vtkOpenGLVolumeOpacityTable_h
18#ifndef __VTK_WRAP__
19
21#include "vtkRenderingVolumeOpenGL2Module.h" // For export macro
22
23#include "vtkVolumeMapper.h" // for vtkVolumeMapper
24
25// Forward declarations
27
28//----------------------------------------------------------------------------
29class VTKRENDERINGVOLUMEOPENGL2_EXPORT vtkOpenGLVolumeOpacityTable
31{
32public:
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35
37
38protected:
40
44 void InternalUpdate(vtkObject* func, int blendMode, double sampleDistance, double unitDistance,
45 int filterValue) override;
46
51 vtkObject* func, double scalarRange[2], int blendMode, double sampleDistance) override;
52
54 double LastSampleDistance = 1.0;
55
56private:
58 void operator=(const vtkOpenGLVolumeOpacityTable&) = delete;
59};
60
61#endif // __VTK_WRAP__
62#endif // vtkOpenGLVolumeOpacityTable_h
a simple class to control print indentation
Definition: vtkIndent.h:113
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.
void InternalUpdate(vtkObject *func, int blendMode, double sampleDistance, double unitDistance, int filterValue) override
Update the internal texture object using the opacity transfer function.
static vtkOpenGLVolumeOpacityTable * New()
bool NeedsUpdate(vtkObject *func, double scalarRange[2], int blendMode, double sampleDistance) override
Test whether the internal function needs to be updated.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.