29 #ifndef __vtkOpenGLGPUVolumeRayCastMapper_h
30 #define __vtkOpenGLGPUVolumeRayCastMapper_h
38 class vtkUnsupportedRequiredExtensionsStringStream;
39 class vtkMapDataArrayTextureId;
40 class vtkMapMaskTextureId;
46 class vtkOpacityTable;
48 class vtkKWScalarField;
51 class vtkOpacityTables;
79 static const char *OpenGLErrorMessage(
unsigned int errorCode);
83 static void PrintError(
const char *headerMessage);
96 double datasetBounds[6],
97 double scalarRange[2],
98 int numberOfScalarComponents,
99 unsigned int numberOfLevels);
107 int numberOfScalarComponents);
115 const char *extensionName);
159 int textureExtent[6],
168 int UpdateColorTransferFunction(
vtkVolume *vol,
169 int numberOfScalarComponents);
175 int UpdateOpacityTransferFunction(
vtkVolume *vol,
176 int numberOfScalarComponents,
188 double worldBounds[6],
196 int RenderClippedBoundingBox(
int tcoordFlag,
198 size_t numberOfBlocks,
204 void CopyFBOToTexture();
207 void CleanupRender();
214 int PowerOfTwoGreaterOrEqual(
int x);
217 void CheckFrameBufferStatus();
224 void DisplayReadAndDrawBuffers();
227 void DisplayFrameBufferAttachments();
230 void DisplayFrameBufferAttachment(
unsigned int uattachment);
240 int parallelProjection,
243 int componentMethod);
247 void GetLightingStatus();
258 void ComputeReductionFactor(
double allocatedTime);
281 void ComputeNumberOfCroppingRegions();
284 unsigned int *internalFormat,
285 unsigned int *format,
289 bool TestLoadingScalar(
unsigned int internalFormat,
295 void SlabsFromDatasetToIndex(
double slabsDataSet[6],
296 double slabsPoints[6]);
298 void SlabsFromIndexToDataset(
double slabsPoints[6],
299 double slabsDataSet[6]);
301 const char *GetEnabledString(
unsigned char value);
302 void GetOpenGLState();
306 void UpdateNoiseTexture();
313 double ComputeMinimalSampleDistancePerPixel(
vtkRenderer *renderer,
330 double BoundingBox[8][3];
350 unsigned int TextureObjects[5];
376 double TableRange[2];
403 double LoadedBounds[6];
double LastProgressEventTime
virtual void GPURender(vtkRenderer *, vtkVolume *)
Wrapper around vtkstd::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
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))
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)
vtkShaderProgram2 * ScaleBiasProgram
float ActualSampleDistance
void ReleaseGraphicsResources(vtkWindow *)
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