33 #ifndef vtkOpenGLGPUVolumeRayCastMapper_h
34 #define vtkOpenGLGPUVolumeRayCastMapper_h
43 class vtkUnsupportedRequiredExtensionsStringStream;
44 class vtkMapDataArrayTextureId;
51 class vtkOpacityTable;
53 class vtkKWScalarField;
56 class vtkOpacityTables;
85 static const char *OpenGLErrorMessage(
unsigned int errorCode);
89 static void PrintError(
const char *headerMessage);
102 double datasetBounds[6],
103 double scalarRange[2],
104 int numberOfScalarComponents,
105 unsigned int numberOfLevels);
113 int numberOfScalarComponents);
121 const char *extensionName);
165 int textureExtent[6],
174 int UpdateColorTransferFunction(
vtkVolume *vol,
175 int numberOfScalarComponents);
182 int UpdateOpacityTransferFunction(
vtkVolume *vol,
183 int numberOfScalarComponents,
195 double worldBounds[6],
203 int RenderClippedBoundingBox(
int tcoordFlag,
205 size_t numberOfBlocks,
211 void CopyFBOToTexture();
214 void CleanupRender();
221 int PowerOfTwoGreaterOrEqual(
int x);
224 void CheckFrameBufferStatus();
231 void DisplayReadAndDrawBuffers();
234 void DisplayFrameBufferAttachments();
237 void DisplayFrameBufferAttachment(
unsigned int uattachment);
246 int parallelProjection,
249 int componentMethod);
253 void GetLightingStatus();
264 void ComputeReductionFactor(
double allocatedTime);
287 void ComputeNumberOfCroppingRegions();
290 unsigned int *internalFormat,
291 unsigned int *format,
295 bool TestLoadingScalar(
unsigned int internalFormat,
301 void SlabsFromDatasetToIndex(
double slabsDataSet[6],
302 double slabsPoints[6]);
304 void SlabsFromIndexToDataset(
double slabsPoints[6],
305 double slabsDataSet[6]);
307 const char *GetEnabledString(
unsigned char value);
308 void GetOpenGLState();
312 void UpdateNoiseTexture();
319 double ComputeMinimalSampleDistancePerPixel(
vtkRenderer *renderer,
336 double BoundingBox[8][3];
356 unsigned int TextureObjects[5];
382 double TableRange[2];
409 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
#define VTKRENDERINGVOLUMEOPENGL_EXPORT
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