VTK
9.3.20240831
|
Convenience container for internal structures specific to a volume input. More...
#include <vtkVolumeInputHelper.h>
Public Types | |
enum | ComponentMode { INVALID = 0 , INDEPENDENT = 1 , LA = 2 , RGBA = 4 } |
Defines the various component modes supported by vtkGPUVolumeRayCastMapper. More... | |
Public Member Functions | |
vtkVolumeInputHelper ()=default | |
vtkVolumeInputHelper (vtkSmartPointer< vtkVolumeTexture > tex, vtkVolume *vol) | |
void | RefreshTransferFunction (vtkRenderer *ren, int uniformIndex, int blendMode, float samplingDist) |
void | ForceTransferInit () |
void | ActivateTransferFunction (vtkShaderProgram *prog, int blendMode) |
void | DeactivateTransferFunction (int blendMode) |
void | ReleaseGraphicsResources (vtkWindow *window) |
Public Attributes | |
vtkSmartPointer< vtkVolumeTexture > | Texture |
vtkVolume * | Volume = nullptr |
int | ComponentMode = INDEPENDENT |
vtkSmartPointer< vtkOpenGLVolumeLookupTables< vtkOpenGLVolumeGradientOpacityTable > > | GradientOpacityTables |
Transfer function internal structures and helpers. | |
vtkSmartPointer< vtkOpenGLVolumeLookupTables< vtkOpenGLVolumeOpacityTable > > | OpacityTables |
vtkSmartPointer< vtkOpenGLVolumeLookupTables< vtkOpenGLVolumeRGBTable > > | RGBTables |
vtkSmartPointer< vtkOpenGLVolumeLookupTables< vtkOpenGLVolumeTransferFunction2D > > | TransferFunctions2D |
std::map< int, std::string > | RGBTablesMap |
Maps uniform texture variable names to its corresponding texture unit. | |
std::map< int, std::string > | OpacityTablesMap |
std::map< int, std::string > | GradientOpacityTablesMap |
std::map< int, std::string > | TransferFunctions2DMap |
int | ColorRangeType = 0 |
These values currently stored in vtkGPUVolumeRCMapper but should be moved into vtkVolumeProperty in order to store them closer to the relevant transfer functions and separately for each input. | |
int | ScalarOpacityRangeType = 0 |
int | GradientOpacityRangeType = 0 |
std::string | GradientCacheName |
Stores the uniform variable name where the gradient will be stored for this input in the fragment shader. | |
Protected Member Functions | |
void | InitializeTransferFunction (vtkRenderer *ren, int index) |
void | CreateTransferFunction1D (vtkRenderer *ren, int index) |
void | CreateTransferFunction2D (vtkRenderer *ren, int index) |
void | UpdateTransferFunctions (vtkRenderer *ren, int blendMode, float samplingDist) |
int | UpdateOpacityTransferFunction (vtkRenderer *ren, vtkVolume *vol, unsigned int component, int blendMode, float samplingDist) |
int | UpdateColorTransferFunction (vtkRenderer *ren, vtkVolume *vol, unsigned int component) |
int | UpdateGradientOpacityTransferFunction (vtkRenderer *ren, vtkVolume *vol, unsigned int component, float samplingDist) |
void | UpdateTransferFunction2D (vtkRenderer *ren, unsigned int component) |
void | ReleaseGraphicsTransfer1D (vtkWindow *window) |
void | ReleaseGraphicsTransfer2D (vtkWindow *window) |
Protected Attributes | |
vtkTimeStamp | LutInit |
bool | InitializeTransfer = true |
Convenience container for internal structures specific to a volume input.
This class stores together vtkVolumeTexture, Lookup tables internal and other input specific parameters. It also provides convenience methods to manage the lookup tables.
Definition at line 38 of file vtkVolumeInputHelper.h.
Defines the various component modes supported by vtkGPUVolumeRayCastMapper.
Enumerator | |
---|---|
INVALID | |
INDEPENDENT | |
LA | |
RGBA |
Definition at line 60 of file vtkVolumeInputHelper.h.
|
default |
vtkVolumeInputHelper::vtkVolumeInputHelper | ( | vtkSmartPointer< vtkVolumeTexture > | tex, |
vtkVolume * | vol | ||
) |
void vtkVolumeInputHelper::RefreshTransferFunction | ( | vtkRenderer * | ren, |
int | uniformIndex, | ||
int | blendMode, | ||
float | samplingDist | ||
) |
void vtkVolumeInputHelper::ForceTransferInit | ( | ) |
void vtkVolumeInputHelper::ActivateTransferFunction | ( | vtkShaderProgram * | prog, |
int | blendMode | ||
) |
void vtkVolumeInputHelper::DeactivateTransferFunction | ( | int | blendMode | ) |
void vtkVolumeInputHelper::ReleaseGraphicsResources | ( | vtkWindow * | window | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
vtkSmartPointer<vtkVolumeTexture> vtkVolumeInputHelper::Texture |
Definition at line 53 of file vtkVolumeInputHelper.h.
vtkVolume* vtkVolumeInputHelper::Volume = nullptr |
Definition at line 54 of file vtkVolumeInputHelper.h.
Definition at line 67 of file vtkVolumeInputHelper.h.
vtkSmartPointer<vtkOpenGLVolumeLookupTables<vtkOpenGLVolumeGradientOpacityTable> > vtkVolumeInputHelper::GradientOpacityTables |
Transfer function internal structures and helpers.
Definition at line 73 of file vtkVolumeInputHelper.h.
vtkSmartPointer<vtkOpenGLVolumeLookupTables<vtkOpenGLVolumeOpacityTable> > vtkVolumeInputHelper::OpacityTables |
Definition at line 74 of file vtkVolumeInputHelper.h.
vtkSmartPointer<vtkOpenGLVolumeLookupTables<vtkOpenGLVolumeRGBTable> > vtkVolumeInputHelper::RGBTables |
Definition at line 75 of file vtkVolumeInputHelper.h.
vtkSmartPointer<vtkOpenGLVolumeLookupTables<vtkOpenGLVolumeTransferFunction2D> > vtkVolumeInputHelper::TransferFunctions2D |
Definition at line 77 of file vtkVolumeInputHelper.h.
std::map<int, std::string> vtkVolumeInputHelper::RGBTablesMap |
Maps uniform texture variable names to its corresponding texture unit.
Definition at line 82 of file vtkVolumeInputHelper.h.
std::map<int, std::string> vtkVolumeInputHelper::OpacityTablesMap |
Definition at line 83 of file vtkVolumeInputHelper.h.
std::map<int, std::string> vtkVolumeInputHelper::GradientOpacityTablesMap |
Definition at line 84 of file vtkVolumeInputHelper.h.
std::map<int, std::string> vtkVolumeInputHelper::TransferFunctions2DMap |
Definition at line 85 of file vtkVolumeInputHelper.h.
int vtkVolumeInputHelper::ColorRangeType = 0 |
These values currently stored in vtkGPUVolumeRCMapper but should be moved into vtkVolumeProperty in order to store them closer to the relevant transfer functions and separately for each input.
Definition at line 92 of file vtkVolumeInputHelper.h.
int vtkVolumeInputHelper::ScalarOpacityRangeType = 0 |
Definition at line 93 of file vtkVolumeInputHelper.h.
int vtkVolumeInputHelper::GradientOpacityRangeType = 0 |
Definition at line 94 of file vtkVolumeInputHelper.h.
std::string vtkVolumeInputHelper::GradientCacheName |
Stores the uniform variable name where the gradient will be stored for this input in the fragment shader.
Definition at line 100 of file vtkVolumeInputHelper.h.
|
protected |
Definition at line 119 of file vtkVolumeInputHelper.h.
|
protected |
Definition at line 120 of file vtkVolumeInputHelper.h.