60 #ifndef vtkOpenGLGPUVolumeRayCastMapper_h 61 #define vtkOpenGLGPUVolumeRayCastMapper_h 65 #include "vtkRenderingVolumeOpenGL2Module.h" 128 vtkGetMacro(CurrentPass,
int);
143 void SetPartitions(
unsigned short x,
unsigned short y,
unsigned short z);
163 void AddShaderReplacement(
169 void ClearShaderReplacement(
174 void ClearAllShaderReplacements();
184 vtkSetStringMacro(VertexShaderCode);
185 vtkGetStringMacro(VertexShaderCode);
186 vtkSetStringMacro(FragmentShaderCode);
187 vtkGetStringMacro(FragmentShaderCode);
205 int independentComponents);
215 double vtkNotUsed(datasetBounds)[6],
216 double vtkNotUsed(scalarRange)[2],
217 int vtkNotUsed(noOfComponents),
218 unsigned int vtkNotUsed(numberOfLevels))
override {};
223 unsigned int vtkNotUsed(
level))
override {}
226 int vtkNotUsed(noOfComponents))
override {}
247 void ComputeReductionFactor(
double allocatedTime);
253 ratio[0] = ratio[1] = ratio[2] = 1.0;
274 void GetShaderTemplate(std::map<vtkShader::Type, vtkShader*>& shaders);
279 void ReplaceShaderValues(std::map<vtkShader::Type, vtkShader*>& shaders,
286 void ReplaceShaderBase(std::map<vtkShader::Type, vtkShader*>& shaders,
288 void ReplaceShaderTermination(std::map<vtkShader::Type, vtkShader*>& shaders,
290 void ReplaceShaderShading(std::map<vtkShader::Type, vtkShader*>& shaders,
292 void ReplaceShaderCompute(std::map<vtkShader::Type, vtkShader*>& shaders,
294 void ReplaceShaderCropping(std::map<vtkShader::Type, vtkShader*>& shaders,
296 void ReplaceShaderClipping(std::map<vtkShader::Type, vtkShader*>& shaders,
298 void ReplaceShaderMasking(std::map<vtkShader::Type, vtkShader*>& shaders,
300 void ReplaceShaderPicking(std::map<vtkShader::Type, vtkShader*>& shaders,
302 void ReplaceShaderRTT(std::map<vtkShader::Type, vtkShader*>& shaders,
304 void ReplaceShaderRenderPass(std::map<vtkShader::Type, vtkShader*>& shaders,
310 void SetShaderParametersRenderPass();
324 std::map<const vtkShader::ReplacementSpec, vtkShader::ReplacementValue>
343 #endif // vtkOpenGLGPUVolumeRayCastMapper_h abstract interface for implicit functions
virtual void GPURender(vtkRenderer *, vtkVolume *)
Handled in the subclass - the actual render method.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
represents a volume (data & properties) in a rendered scene
std::map< const vtkShader::ReplacementSpec, vtkShader::ReplacementValue > UserShaderReplacements
Container for a set of TransferFunction2D instances.
vtkGenericOpenGLResourceFreeCallback * ResourceCallback
vtkTypeUInt32 vtkMTimeType
Creates and manages the volume texture rendered by vtkOpenGLGPUVolumeRayCastMapper.
std::map< int, vtkVolumeInputHelper > VolumeInputMap
virtual void GetDepthImage(vtkImageData *)
Low level API to export the depth texture as vtkImageData in RenderToImage mode.
Type
Available shader types.
virtual void GetColorImage(vtkImageData *)
Low level API to export the color texture as vtkImageData in RenderToImage mode.
void PreRender(vtkRenderer *vtkNotUsed(ren), vtkVolume *vtkNotUsed(vol), double vtkNotUsed(datasetBounds)[6], double vtkNotUsed(scalarRange)[2], int vtkNotUsed(noOfComponents), unsigned int vtkNotUsed(numberOfLevels)) override
abstract specification for renderers
window superclass for vtkRenderWindow
OpenGL implementation of volume rendering through ray-casting.
a simple class to control print indentation
topologically and geometrically regular array of data
void RenderBlock(vtkRenderer *vtkNotUsed(ren), vtkVolume *vtkNotUsed(vol), unsigned int vtkNotUsed(level)) override
void PostRender(vtkRenderer *vtkNotUsed(ren), int vtkNotUsed(noOfComponents)) override
represents the common properties for rendering a volume.
abstracts an OpenGL texture object.
create a window for renderers to draw into
char * FragmentShaderCode
int IsRenderSupported(vtkRenderWindow *vtkNotUsed(window), vtkVolumeProperty *vtkNotUsed(property)) override
Based on hardware and properties, we may or may not be able to render using 3D texture mapping.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GetReductionRatio(double *ratio) override
Ray casting performed on the GPU.
static vtkGPUVolumeRayCastMapper * New()
VolumeInputMap AssembledInputs
vtkNew< vtkInformation > LastRenderPassInfo
Caches the vtkOpenGLRenderPass::RenderPasses() information.
The ShaderProgram uses one or more Shader objects.