VTK: Rendering/VolumeOpenGL2/vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D.h Source File

| VTK 9.3.1

vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3
4 #ifndef vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D_h
5 #define vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D_h
6
7 #include "vtkOpenGLVolumeLookupTable.h"
8 #include "vtkRenderingVolumeOpenGL2Module.h" // For export macro
9
10 // Forward declarations
11 VTK_ABI_NAMESPACE_BEGIN
12 class vtkOpenGLRenderWindow;
13
24 class VTKRENDERINGVOLUMEOPENGL2_EXPORT vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D
25 : public vtkOpenGLVolumeLookupTable
26 {
27 public:
28 vtkTypeMacro(vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D, vtkOpenGLVolumeLookupTable);
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
31 static vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D* New();
32
33 protected:
34 vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D();
35
39 void InternalUpdate(vtkObject* func, int blendMode, double sampleDistance, double unitDistance,
40 int filterValue) override;
41
46 void ComputeIdealTextureSize(
47 vtkObject* func, int& width, int& height, vtkOpenGLRenderWindow* renWin) override;
48
49 private:
50 vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D(
51 const vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D&) = delete;
52 void operator=(const vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D&) = delete;
53 };
54
55 VTK_ABI_NAMESPACE_END
56 #endif // vtkOpenGLVolumeMaskTransferFunction2D_h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:61
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition: vtkOpenGLRenderWindow.h:53
vtkOpenGLVolumeLookupTable
Base class for OpenGL texture management of scalar color, opacity and gradient opacity lookup tables.
Definition: vtkOpenGLVolumeLookupTable.h:22
vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D
2D Transfer function container for label map mask gradient opacity.
Definition: vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D.h:26
vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D::New
static vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D * New()
vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D::vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D
vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D()
vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D::InternalUpdate
void InternalUpdate(vtkObject *func, int blendMode, double sampleDistance, double unitDistance, int filterValue) override
Update the internal texture object using the 2D image data.
vtkOpenGLVolumeMaskGradientOpacityTransferFunction2D::ComputeIdealTextureSize
void ComputeIdealTextureSize(vtkObject *func, int &width, int &height, vtkOpenGLRenderWindow *renWin) override
Compute the ideal texture size based on the number of labels and transfer functions in the label map.
vtkX3D::height
@ height
Definition: vtkX3D.h:254
vtkOpenGLVolumeLookupTable.h