9#ifndef vtkOpenGLVolumeLookupTable_h
10#define vtkOpenGLVolumeLookupTable_h
13#include "vtkRenderingVolumeOpenGL2Module.h"
16VTK_ABI_NAMESPACE_BEGIN
55 virtual void Update(
vtkObject* func,
double scalarRange[2],
int blendMode,
double sampleDistance,
61 vtkGetMacro(TextureHeight,
int);
66 vtkGetMacro(TextureWidth,
int);
72 double LastRange[2] = { 0.0, 0.0 };
73 float* Table =
nullptr;
74 int LastInterpolation = -1;
75 int NumberOfColorComponents = 1;
76 int TextureWidth = 1024;
77 int TextureHeight = 1;
85 vtkObject* func,
double scalarRange[2],
int blendMode,
double sampleDistance);
91 vtkObject* func,
int blendMode,
double sampleDistance,
double unitDistance,
int filterValue);
a simple class to control print indentation
abstract base class for most VTK objects
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.
virtual void ComputeIdealTextureSize(vtkObject *func, int &width, int &height, vtkOpenGLRenderWindow *renWin)
Compute ideal width and height for the texture based on function provided.
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.
int GetMaximumSupportedTextureWidth(vtkOpenGLRenderWindow *renWin, int idealWidth)
Get the maximum supported texture width for the target OpenGL environment.
virtual void AllocateTable()
Allocate internal data table.
void ReleaseGraphicsResources(vtkWindow *window)
Release graphics resources.
void Deactivate()
Activate / deactivate the internal texture object.
~vtkOpenGLVolumeLookupTable() override
int GetTextureUnit()
Get the texture unit associated with the managed texture object.
void Activate()
Activate / deactivate the internal texture object.
vtkOpenGLVolumeLookupTable()=default
virtual void Update(vtkObject *func, double scalarRange[2], int blendMode, double sampleDistance, double unitDistance, int filterValue, vtkOpenGLRenderWindow *renWin)
Update the internal texture object using the transfer function provided.
abstracts an OpenGL texture object.
record modification and/or execution time
window superclass for vtkRenderWindow