31 #ifndef vtkOpenGLGPUVolumeRayCastMapper_h
32 #define vtkOpenGLGPUVolumeRayCastMapper_h
34 #include "vtkRenderingVolumeOpenGLModule.h"
41 class vtkUnsupportedRequiredExtensionsStringStream;
42 class vtkMapDataArrayTextureId;
49 class vtkOpacityTable;
51 class vtkKWScalarField;
54 class vtkOpacityTables;
88 static const char *OpenGLErrorMessage(
unsigned int errorCode);
95 static void PrintError(
const char *headerMessage);
108 double datasetBounds[6],
109 double scalarRange[2],
110 int numberOfScalarComponents,
111 unsigned int numberOfLevels);
119 int numberOfScalarComponents);
129 const char *extensionName);
183 int textureExtent[6],
192 int UpdateColorTransferFunction(
vtkVolume *vol,
193 int numberOfScalarComponents);
200 int UpdateOpacityTransferFunction(
vtkVolume *vol,
201 int numberOfScalarComponents,
216 double worldBounds[6],
224 int RenderClippedBoundingBox(
int tcoordFlag,
226 size_t numberOfBlocks,
233 void CopyFBOToTexture();
238 void CleanupRender();
251 int PowerOfTwoGreaterOrEqual(
int x);
256 void CheckFrameBufferStatus();
266 void DisplayReadAndDrawBuffers();
271 void DisplayFrameBufferAttachments();
276 void DisplayFrameBufferAttachment(
unsigned int uattachment);
284 int parallelProjection,
287 int componentMethod);
292 void GetLightingStatus();
304 void ComputeReductionFactor(
double allocatedTime);
331 void ComputeNumberOfCroppingRegions();
334 unsigned int *internalFormat,
335 unsigned int *format,
339 bool TestLoadingScalar(
unsigned int internalFormat,
345 void SlabsFromDatasetToIndex(
double slabsDataSet[6],
346 double slabsPoints[6]);
348 void SlabsFromIndexToDataset(
double slabsPoints[6],
349 double slabsDataSet[6]);
351 const char *GetEnabledString(
unsigned char value);
352 void GetOpenGLState();
356 void UpdateNoiseTexture();
364 double ComputeMinimalSampleDistancePerPixel(
vtkRenderer *renderer,
384 double BoundingBox[8][3];
404 unsigned int TextureObjects[5];
430 double TableRange[2];
459 double LoadedBounds[6];
double LastProgressEventTime
virtual void GPURender(vtkRenderer *, vtkVolume *)
Handled in the subclass - the actual render method.
Wrapper around std::string to keep symbols short.
int NumberOfCroppingRegions
vtkRGBTable * Mask1RGBTable
represents a volume (data & properties) in a rendered scene
unsigned int FrameBufferObject
unsigned int MaxValueFrameBuffer2
vtkPolyData * ClippedBoundingBox
represent and manipulate 4x4 transformation matrices
vtkDensifyPolyData * Densify
vtkClipConvexPolyData * Clip
vtkMapDataArrayTextureId * ScalarsTextures
unsigned int SavedFrameBuffer
vtkTimeStamp SmallInputBuildTime
vtkImageData * SmallInput
record modification and/or execution time
maintain a list of planes
vtkPolyData * PolyDataBoundingBox
int LastParallelProjection
abstract specification for renderers
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkTessellatedBoxSource * BoxSource
int LoadExtensionsSucceeded
int SupportsPixelBufferObjects
unsigned int NoiseTextureId
window superclass for vtkRenderWindow
vtkUnsupportedRequiredExtensionsStringStream * UnsupportedRequiredExtensions
OpenGL subclass that draws the image to the screen.
vtkTimeStamp DataBufferTime
bool IgnoreSampleDistancePerPixel
a simple class to control print indentation
vtkPlaneCollection * Planes
topologically and geometrically regular array of data
vtkMatrix4x4 * InvVolumeMatrix
unsigned int MaxValueFrameBuffer
perform various plane computations
vtkShaderProgram2 * Program
virtual void GetReductionRatio(double ratio[3])=0
Return how much the dataset has to be reduced in each dimension to fit on the GPU.
vtkKWScalarField * CurrentScalar
vtkMapMaskTextureId * MaskTextures
vtkRGBTable * Mask2RGBTable
Interface class for querying and using OpenGL extensions.
vtkShader2 * CroppingShader
represents the common properties for rendering a volume.
clip polygonal data with user-specified implicit function or input scalar data
virtual void RenderBlock(vtkRenderer *ren, vtkVolume *vol, unsigned int level)=0
virtual int IsRenderSupported(vtkRenderWindow *vtkNotUsed(window), vtkVolumeProperty *vtkNotUsed(property))
Based on hardware and properties, we may or may not be able to render using 3D texture mapping...
int Supports_GL_ARB_texture_float
vtkOpacityTables * OpacityTables
create a window for renderers to draw into
Densify the input by adding points at the centroid.
unsigned int DepthRenderBufferObject
Create a polygonal representation of a box with a given level of subdivision.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkShaderProgram2 * ScaleBiasProgram
float ActualSampleDistance
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
clip any dataset with user-specified implicit function or input scalar data
Ray casting performed on the GPU.
static vtkGPUVolumeRayCastMapper * New()
virtual void PostRender(vtkRenderer *ren, int numberOfScalarComponents)=0
virtual void PreRender(vtkRenderer *ren, vtkVolume *vol, double datasetBounds[6], double scalarRange[2], int numberOfScalarComponents, unsigned int numberOfLevels)=0