VTK  9.0.1
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 
22 #include "vtkVolumeMapper.h"
23 
24 // Forward declarations
26 
27 //----------------------------------------------------------------------------
29 {
30 public:
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
35 
36 protected:
37  vtkOpenGLVolumeOpacityTable() = default;
38 
42  void InternalUpdate(vtkObject* func, int blendMode, double sampleDistance, double unitDistance,
43  int filterValue) override;
44 
48  bool NeedsUpdate(
49  vtkObject* func, double scalarRange[2], int blendMode, double sampleDistance) override;
50 
52  double LastSampleDistance = 1.0;
53 
54 private:
56  vtkOpenGLVolumeOpacityTable& operator=(const vtkOpenGLVolumeOpacityTable&) = delete;
57 };
58 
59 #endif // __VTK_WRAP__
60 #endif // vtkOpenGLVolumeOpacityTable_h
61 // VTK-HeaderTest-Exclude: vtkOpenGLVolumeOpacityTable.h
vtkOpenGLVolumeOpacityTable
Definition: vtkOpenGLVolumeOpacityTable.h:28
vtkVolumeMapper::MAXIMUM_INTENSITY_BLEND
@ MAXIMUM_INTENSITY_BLEND
Definition: vtkVolumeMapper.h:250
vtkOpenGLVolumeOpacityTable::vtkOpenGLVolumeOpacityTable
vtkOpenGLVolumeOpacityTable()=default
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkOpenGLVolumeOpacityTable::LastSampleDistance
double LastSampleDistance
Definition: vtkOpenGLVolumeOpacityTable.h:52
vtkOpenGLVolumeOpacityTable::LastBlendMode
int LastBlendMode
Definition: vtkOpenGLVolumeOpacityTable.h:51
vtkVolumeMapper.h
vtkOpenGLVolumeOpacityTable::InternalUpdate
void InternalUpdate(vtkObject *func, int blendMode, double sampleDistance, double unitDistance, int filterValue) override
Update the internal texture object using the opacity transfer function.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkOpenGLVolumeOpacityTable::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOpenGLVolumeLookupTable
Base class for OpenGL texture management of scalar color, opacity and gradient opacity lookup tables.
Definition: vtkOpenGLVolumeLookupTable.h:35
vtkOpenGLVolumeOpacityTable::New
static vtkOpenGLVolumeOpacityTable * New()
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition: vtkOpenGLRenderWindow.h:51
vtkOpenGLVolumeLookupTable.h
vtkOpenGLVolumeOpacityTable::NeedsUpdate
bool NeedsUpdate(vtkObject *func, double scalarRange[2], int blendMode, double sampleDistance) override
Test whether the internal function needs to be updated.