15#ifndef vtkOpenGLFluidMapper_h
16#define vtkOpenGLFluidMapper_h
21#include "vtkRenderingOpenGL2Module.h"
28VTK_ABI_NAMESPACE_BEGIN
59 vtkSetMacro(ScalarVisibility,
bool);
60 vtkGetMacro(ScalarVisibility,
bool);
61 vtkBooleanMacro(ScalarVisibility,
bool);
72 vtkSetMacro(ParticleRadius,
float);
73 vtkGetMacro(ParticleRadius,
float);
83 vtkSetMacro(SurfaceFilterIterations, vtkTypeUInt32);
84 vtkGetMacro(SurfaceFilterIterations, vtkTypeUInt32);
92 vtkSetMacro(ThicknessAndVolumeColorFilterIterations, vtkTypeUInt32);
93 vtkGetMacro(ThicknessAndVolumeColorFilterIterations, vtkTypeUInt32);
104 vtkSetMacro(SurfaceFilterRadius, vtkTypeUInt32);
105 vtkGetMacro(SurfaceFilterRadius, vtkTypeUInt32);
113 vtkSetMacro(ThicknessAndVolumeColorFilterRadius,
float);
114 vtkGetMacro(ThicknessAndVolumeColorFilterRadius,
float);
122 BilateralGaussian = 0,
143 this->NRFilterLambda = lambda;
144 this->NRFilterMu = mu;
153 this->BiGaussFilterSigmaDepth = sigmaDepth;
161 UnfilteredOpaqueSurface = 0,
183 vtkSetVector3Macro(AttenuationColor,
float);
184 vtkGetVector3Macro(AttenuationColor,
float);
192 vtkSetVector3Macro(OpaqueColor,
float);
193 vtkGetVector3Macro(OpaqueColor,
float);
203 vtkSetMacro(ParticleColorPower,
float);
204 vtkGetMacro(ParticleColorPower,
float);
214 vtkSetMacro(ParticleColorScale,
float);
215 vtkGetMacro(ParticleColorScale,
float);
225 vtkSetMacro(AttenuationScale,
float);
226 vtkGetMacro(AttenuationScale,
float);
236 vtkSetMacro(AdditionalReflection,
float);
237 vtkGetMacro(AdditionalReflection,
float);
247 vtkSetMacro(RefractionScale,
float);
248 vtkGetMacro(RefractionScale,
float);
255 vtkSetMacro(RefractiveIndex,
float);
256 vtkGetMacro(RefractiveIndex,
float);
299 float ParticleRadius = 1.0f;
302 vtkTypeUInt32 SurfaceFilterIterations = 3u;
303 vtkTypeUInt32 SurfaceFilterRadius = 5u;
304 float NRFilterLambda = 10.0f;
305 float NRFilterMu = 1.0f;
306 float BiGaussFilterSigmaDepth = 10.0f;
308 vtkTypeUInt32 ThicknessAndVolumeColorFilterIterations = 3u;
309 vtkTypeUInt32 ThicknessAndVolumeColorFilterRadius = 10u;
313 float OpaqueColor[3]{ 0.0f, 0.0f, 0.95f };
314 float AttenuationColor[3]{ 0.5f, 0.2f, 0.05f };
315 float ParticleColorPower = 0.1f;
316 float ParticleColorScale = 1.0f;
317 float AttenuationScale = 1.0f;
318 float AdditionalReflection = 0.0f;
319 float RefractionScale = 1.0f;
320 float RefractiveIndex = 1.33f;
322 bool ScalarVisibility =
false;
323 bool InDepthPass =
true;
328 bool HasVertexColor =
false;
381 NumOptionalTexBuffers
Abstract class for a volume mapper.
a simple class to control print indentation
represent and manipulate 3x3 transformation matrices
represent and manipulate 4x4 transformation matrices
Render fluid from position data (and color, if available)
vtkMatrix3x3 * CamInvertedNorms
void SetInputData(vtkPolyData *in)
Specify the input data to map.
vtkSmartPointer< vtkOpenGLFramebufferObject > FBThickness
FluidDisplayMode
Display mode for the fluid, default value is TransparentFluidVolume.
@ UnfilteredSurfaceNormal
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
vtkSmartPointer< vtkOpenGLVertexBufferObjectGroup > VBOs
void SetNarrowRangeFilterParameters(float lambda, float mu)
Optional parameters, exclusively for narrow range filter The first parameter is to control smoothing ...
vtkTimeStamp VBOBuildTime
void Render(vtkRenderer *ren, vtkVolume *vol) override
This calls RenderPiece.
vtkSmartPointer< vtkOpenGLFramebufferObject > FBCompNormal
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMatrix4x4 * TempMatrix4
vtkPolyData * GetInput()
Specify the input data to map.
vtkTypeBool CamParallelProjection
vtkSmartPointer< vtkOpenGLFramebufferObject > FBFluidEyeZ
vtkSmartPointer< vtkOpenGLFramebufferObject > FBFilterThickness
FluidSurfaceFilterMethod
Filter method to filter the depth buffer.
~vtkOpenGLFluidMapper() override
void SetupBuffers(vtkOpenGLRenderWindow *renderWindow)
Setup the texture buffers.
void UpdateDepthThicknessColorShaders(vtkOpenGLHelper &glHelper, vtkRenderer *renderer, vtkVolume *vol)
Perform string replacements on the shader templates.
static vtkOpenGLFluidMapper * New()
void RenderParticles(vtkRenderer *renderer, vtkVolume *vol)
Render the fluid particles.
vtkSmartPointer< vtkOpenGLFramebufferObject > FBFilterDepth
void SetBilateralGaussianFilterParameter(float sigmaDepth)
Optional parameters, exclusively for bilateral gaussian filter The parameter is for controlling smoot...
vtkOpenGLHelper GLHelperDepthThickness
void SetDepthThicknessColorShaderParameters(vtkOpenGLHelper &glHelper, vtkRenderer *renderer, vtkVolume *vol)
Set the shader parameters related to the actor/mapper/camera.
Internal class which encapsulates OpenGL FramebufferObject.
Class to make rendering a full screen quad easier.
manage vertex buffer objects shared within a mapper
concrete dataset represents vertices, lines, polygons, and triangle strips
abstract specification for renderers
Hold a reference to a vtkObjectBase instance.
abstracts an OpenGL texture object.
record modification and/or execution time
represents a volume (data & properties) in a rendered scene
window superclass for vtkRenderWindow