Go to the documentation of this file.
66 #ifndef vtkVolumeTexture_h
67 #define vtkVolumeTexture_h
74 #include "vtkRenderingVolumeOpenGL2Module.h"
102 TextureSize = texSize;
122 double DatasetStepSize[3];
128 double LoadedBounds[6];
148 int const isCell,
int const interpolation);
184 float&
scale,
float& bias);
190 float ScalarRange[4][2];
191 float CellSpacing[3];
197 float AdjustedTexMin[4];
198 float AdjustedTexMax[4];
212 bool LoadTexture(
int const interpolation,
VolumeBlock* volBlock);
219 void CreateBlocks(
unsigned int const format,
unsigned int const internalFormat,
229 void SelectTextureFormat(
unsigned int& format,
unsigned int& internalFormat,
230 int&
type,
int const scalarType,
int const noOfComponents);
241 void UpdateTextureToDataMatrix(
VolumeBlock* block);
261 void ComputeCellToPointMatrix(
int extents[6]);
273 int const height,
int const depth);
276 int const height,
int const depth,
int numComps,
int dataType,
void* dataPtr);
279 void UpdateInterpolationType(
int const interpolation);
280 void SetInterpolation(
int const interpolation);
287 std::vector<vtkImageData*> ImageDataBlocks;
288 std::map<vtkImageData*, VolumeBlock*> ImageDataBlockMap;
289 std::vector<VolumeBlock*> SortedVolumeBlocks;
290 size_t CurrentBlockIdx;
293 std::vector<Size3> TextureSizes;
301 #endif //vtkVolumeTexture_h
void SortBlocksBackToFront(vtkRenderer *ren, vtkMatrix4x4 *volumeMat)
If streaming the data array as separate blocks, sort them back to front.
const Size3 & GetPartitions()
static void GetScaleAndBias(const int scalarType, float *scalarRange, float &scale, float &bias)
Get the scale and bias values given a VTK scalar type and a finite range.
vtkNew< vtkMatrix4x4 > TextureToDataset
record modification and/or execution time
vtkNew< vtkMatrix4x4 > TextureToDatasetInv
VolumeBlock * GetNextBlock()
Return the next volume block to be rendered and load its data.
void UpdateVolume(vtkVolumeProperty *property)
It currently only calls SetInterpolation internally.
void SetPartitions(int const x, int const y, int const z)
Set a number of blocks per axis.
abstract base class for most VTK objects
abstract superclass for arrays of numeric data
~vtkVolumeTexture() override
window superclass for vtkRenderWindow
bool HandleLargeDataTypes
vtkTextureObject * TextureObject
VolumeBlock(vtkImageData *imData, vtkTextureObject *tex, Size3 const &texSize)
static vtkVolumeTexture * New()
topologically and geometrically regular array of data
a simple class to control print indentation
abstracts an OpenGL texture object.
represent and manipulate 4x4 transformation matrices
bool LoadVolume(vtkRenderer *ren, vtkImageData *data, vtkDataArray *scalars, int const isCell, int const interpolation)
Loads the data array into the texture in the case only a single block is is defined.
void ReleaseGraphicsResources(vtkWindow *win)
Clean-up acquired graphics resources.
vtkNew< vtkMatrix4x4 > CellToPointMatrix
Creates and manages the volume texture rendered by vtkOpenGLGPUVolumeRayCastMapper.
vtkDataArray * GetLoadedScalars()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
VolumeBlock * GetCurrentBlock()
Return the currently loaded block.
abstract specification for renderers
represents the common properties for rendering a volume.