33#include "vtkRenderingOpenGL2Module.h"
82 vtkGetMacro(Radius,
double);
83 vtkSetMacro(Radius,
double);
91 vtkGetMacro(KernelSize,
unsigned int);
92 vtkSetClampMacro(KernelSize,
unsigned int, 1, 1000);
100 vtkGetMacro(Bias,
double);
101 vtkSetMacro(Bias,
double);
110 vtkGetMacro(Blur,
bool);
111 vtkSetMacro(Blur,
bool);
112 vtkBooleanMacro(Blur,
bool);
138 unsigned int KernelSize = 32;
abstract class specifies interface to map data
vtkFrustumSelector is a vtkSelector that selects elements based on whether they are inside or interse...
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 InitializeGraphicsResources(vtkOpenGLRenderWindow *renWin, int w, int h)
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources and ask components to release their own resources.
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.
The ShaderProgram uses one or more Shader objects.
abstracts an OpenGL texture object.
window superclass for vtkRenderWindow