VTK  9.2.6
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 
20 #include "vtkRenderingVolumeOpenGL2Module.h" // For export macro
21 
22 #include "vtkVolumeMapper.h" // for vtkVolumeMapper
23 
24 // Forward declarations
26 
27 //----------------------------------------------------------------------------
28 class VTKRENDERINGVOLUMEOPENGL2_EXPORT vtkOpenGLVolumeOpacityTable
30 {
31 public:
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36 
37 protected:
38  vtkOpenGLVolumeOpacityTable() = default;
39 
43  void InternalUpdate(vtkObject* func, int blendMode, double sampleDistance, double unitDistance,
44  int filterValue) override;
45 
49  bool NeedsUpdate(
50  vtkObject* func, double scalarRange[2], int blendMode, double sampleDistance) override;
51 
53  double LastSampleDistance = 1.0;
54 
55 private:
57  void operator=(const vtkOpenGLVolumeOpacityTable&) = delete;
58 };
59 
60 #endif // vtkOpenGLVolumeOpacityTable_h
OpenGL rendering window.
abstract base class for most VTK objects
Definition: vtkObject.h:62
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:39
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.