VTK  9.3.20240416
vtkOpenGLVolumeMaskTransferFunction2D.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 vtkOpenGLVolumeMaskTransferFunction2D_h
5 #define vtkOpenGLVolumeMaskTransferFunction2D_h
6 
8 #include "vtkRenderingVolumeOpenGL2Module.h" // For export macro
9 
10 #include "vtkNew.h" // for vtkNew
11 
12 // Forward declarations
13 VTK_ABI_NAMESPACE_BEGIN
15 
26 class VTKRENDERINGVOLUMEOPENGL2_EXPORT vtkOpenGLVolumeMaskTransferFunction2D
28 {
29 public:
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
34 
35 protected:
37 
41  void InternalUpdate(vtkObject* func, int blendMode, double sampleDistance, double unitDistance,
42  int filterValue) override;
43 
49  vtkObject* func, int& width, int& height, vtkOpenGLRenderWindow* renWin) override;
50 
51 private:
53  void operator=(const vtkOpenGLVolumeMaskTransferFunction2D&) = delete;
54 };
55 
56 VTK_ABI_NAMESPACE_END
57 #endif // vtkOpenGLVolumeMaskTransferFunction2D_h
a simple class to control print indentation
Definition: vtkIndent.h:108
abstract base class for most VTK objects
Definition: vtkObject.h:162
OpenGL rendering window.
Base class for OpenGL texture management of scalar color, opacity and gradient opacity lookup tables.
static vtkOpenGLVolumeMaskTransferFunction2D * New()
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.
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:254