VTK  9.1.0
vtkOpenGLVolumeMaskTransferFunction2D.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkOpenGLVolumeMaskTransferFunction2D.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 vtkOpenGLVolumeMaskTransferFunction2D_h
17#define vtkOpenGLVolumeMaskTransferFunction2D_h
18#ifndef __VTK_WRAP__
19
21#include "vtkRenderingVolumeOpenGL2Module.h" // For export macro
22
23#include "vtkNew.h" // for vtkNew
24
25// Forward declarations
27
38class VTKRENDERINGVOLUMEOPENGL2_EXPORT vtkOpenGLVolumeMaskTransferFunction2D
40{
41public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
46
47protected:
49
53 void InternalUpdate(vtkObject* func, int blendMode, double sampleDistance, double unitDistance,
54 int filterValue) override;
55
61 vtkObject* func, int& width, int& height, vtkOpenGLRenderWindow* renWin) override;
62
63private:
65 void operator=(const vtkOpenGLVolumeMaskTransferFunction2D&) = delete;
66};
67
68#endif // __VTK_WRAP__
69#endif // vtkOpenGLVolumeMaskTransferFunction2D_h
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:73
OpenGL rendering window.
Base class for OpenGL texture management of scalar color, opacity and gradient opacity lookup tables.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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.
static vtkOpenGLVolumeMaskTransferFunction2D * New()
void InternalUpdate(vtkObject *func, int blendMode, double sampleDistance, double unitDistance, int filterValue) override
Update the internal texture object using the 2D image data.
@ height
Definition: vtkX3D.h:260