24#include "vtkRenderingOpenGL2Module.h"
31VTK_ABI_NAMESPACE_BEGIN
76 vtkGetMacro(Radius,
double);
77 vtkSetMacro(Radius,
double);
85 vtkGetMacro(KernelSize,
unsigned int);
86 vtkSetClampMacro(KernelSize,
unsigned int, 1, 1000);
94 vtkGetMacro(Bias,
double);
95 vtkSetMacro(Bias,
double);
104 vtkGetMacro(Blur,
bool);
105 vtkSetMacro(Blur,
bool);
106 vtkBooleanMacro(Blur,
bool);
113 vtkSetMacro(DepthFormat,
int);
122 vtkGetMacro(VolumeOpacityThreshold,
double);
123 vtkSetClampMacro(VolumeOpacityThreshold,
double, 0.0, 1.0);
131 vtkGetMacro(IntensityScale,
double);
132 vtkSetMacro(IntensityScale,
double);
142 vtkGetMacro(IntensityShift,
double);
143 vtkSetClampMacro(IntensityShift,
double, 0.0, 1.0);
181 unsigned int KernelSize = 32;
186 double VolumeOpacityThreshold = 0.9;
188 double IntensityScale = 1.0;
189 double IntensityShift = 0.0;
abstract class specifies interface to map data
Convenient class for post-processing passes.
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
Internal class which encapsulates OpenGL FramebufferObject.
Class to make rendering a full screen quad easier.
The VertexArrayObject class uses, or emulates, vertex array objects.
abstract superclass for all actors, volumes and annotations
Context in which a vtkRenderPass will render.
Implement a screen-space ambient occlusion pass.
static vtkSSAOPass * New()
bool PostReplaceShaderValues(std::string &vertexShader, std::string &geometryShader, std::string &fragmentShader, vtkAbstractMapper *mapper, vtkProp *prop) override
Post replace shader values.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool PreReplaceShaderValues(std::string &vertexShader, std::string &geometryShader, std::string &fragmentShader, vtkAbstractMapper *mapper, vtkProp *prop) override
Pre replace shader values.
~vtkSSAOPass() override=default
void RenderDelegate(const vtkRenderState *s, int w, int h)
void Render(const vtkRenderState *s) override
Perform rendering according to a render state.
void RenderCombine(vtkOpenGLRenderWindow *renWin)
void PostRenderProp(vtkProp *prop) override
Called in PostRender to clean the GLDepthMaskOverride information key on volumes.
void InitializeGraphicsResources(vtkOpenGLRenderWindow *renWin, int w, int h)
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
void PreRenderProp(vtkProp *prop) override
Called in PreRender to add the GLDepthMaskOverride information key to volumes, which allows them to w...
std::vector< float > Kernel
void RenderSSAO(vtkOpenGLRenderWindow *renWin, vtkMatrix4x4 *projection, int w, int h)
bool SetShaderParameters(vtkShaderProgram *program, vtkAbstractMapper *mapper, vtkProp *prop, vtkOpenGLVertexArrayObject *VAO=nullptr) override
Set shader parameters.
Computes the portion of a dataset which is inside a selection.
The ShaderProgram uses one or more Shader objects.
abstracts an OpenGL texture object.
window superclass for vtkRenderWindow