62 #ifndef vtkVolumeTexture_h 63 #define vtkVolumeTexture_h 68 #include "vtkRenderingVolumeOpenGL2Module.h" 97 TextureSize = texSize;
118 void SetPartitions(
int const x,
int const y,
int const z);
119 const Size3& GetPartitions();
128 int const interpolation);
130 void UpdateInterpolationType(
int const interpolation);
148 void ReleaseGraphicsResources(
vtkWindow* win);
156 static void GetScaleAndBias(
const int scalarType,
double * scalarRange,
157 float&
scale,
float& bias);
164 double ScalarRange[4][2];
177 bool LoadTexture(
int const interpolation,
VolumeBlock* volBlock);
187 void SetInterpolation(
int const interpolation);
189 void CreateBlocks(
unsigned int const format,
unsigned int const internalFormat,
199 void SelectTextureFormat(
unsigned int& format,
unsigned int& internalFormat,
200 int&
type,
int const scalarType,
int const noOfComponents);
220 int const height,
int const depth);
223 int const height,
int const depth,
int numComps,
int dataType,
void* dataPtr);
228 std::vector<vtkImageData*> ImageDataBlocks;
229 std::map<vtkImageData*, VolumeBlock*> ImageDataBlockMap;
230 std::vector<VolumeBlock*> SortedVolumeBlocks;
231 size_t CurrentBlockIdx;
234 std::vector<Size3> TextureSizes;
237 Size3 FullSizeAdjusted;
244 #endif //vtkVolumeTexture_h
abstract base class for most VTK objects
represent and manipulate 4x4 transformation matrices
bool HandleLargeDataTypes
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Creates and manages the volume texture rendered by vtkOpenGLGPUVolumeRayCastMapper.
record modification and/or execution time
abstract specification for renderers
window superclass for vtkRenderWindow
OpenGL subclass that draws the image to the screen.
vtkTextureObject * TextureObject
a simple class to control print indentation
VolumeBlock(vtkImageData *imData, vtkTextureObject *tex, Size3 const &texSize)
topologically and geometrically regular array of data
abstract superclass for arrays of numeric data
abstracts an OpenGL texture object.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...