36 #ifndef vtkOpenGLGPUVolumeRayCastMapper_h
37 #define vtkOpenGLGPUVolumeRayCastMapper_h
39 #include "vtkRenderingVolumeOpenGLModule.h"
46 class vtkUnsupportedRequiredExtensionsStringStream;
47 class vtkMapDataArrayTextureId;
54 class vtkOpacityTable;
56 class vtkKWScalarField;
59 class vtkOpacityTables;
88 static const char *OpenGLErrorMessage(
unsigned int errorCode);
92 static void PrintError(
const char *headerMessage);
105 double datasetBounds[6],
106 double scalarRange[2],
107 int numberOfScalarComponents,
108 unsigned int numberOfLevels);
116 int numberOfScalarComponents);
124 const char *extensionName);
168 int textureExtent[6],
177 int UpdateColorTransferFunction(
vtkVolume *vol,
178 int numberOfScalarComponents);
185 int UpdateOpacityTransferFunction(
vtkVolume *vol,
186 int numberOfScalarComponents,
198 double worldBounds[6],
206 int RenderClippedBoundingBox(
int tcoordFlag,
208 size_t numberOfBlocks,
214 void CopyFBOToTexture();
217 void CleanupRender();
224 int PowerOfTwoGreaterOrEqual(
int x);
227 void CheckFrameBufferStatus();
234 void DisplayReadAndDrawBuffers();
237 void DisplayFrameBufferAttachments();
240 void DisplayFrameBufferAttachment(
unsigned int uattachment);
249 int parallelProjection,
252 int componentMethod);
256 void GetLightingStatus();
267 void ComputeReductionFactor(
double allocatedTime);
290 void ComputeNumberOfCroppingRegions();
293 unsigned int *internalFormat,
294 unsigned int *format,
298 bool TestLoadingScalar(
unsigned int internalFormat,
304 void SlabsFromDatasetToIndex(
double slabsDataSet[6],
305 double slabsPoints[6]);
307 void SlabsFromIndexToDataset(
double slabsPoints[6],
308 double slabsDataSet[6]);
310 const char *GetEnabledString(
unsigned char value);
311 void GetOpenGLState();
315 void UpdateNoiseTexture();
322 double ComputeMinimalSampleDistancePerPixel(
vtkRenderer *renderer,
339 double BoundingBox[8][3];
359 unsigned int TextureObjects[5];
385 double TableRange[2];
412 double LoadedBounds[6];
double LastProgressEventTime
virtual void GPURender(vtkRenderer *, vtkVolume *)
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
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