20 #ifndef vtkSurfaceLICHelper_h 21 #define vtkSurfaceLICHelper_h 24 #include "vtkRenderingLICOpenGL2Module.h" 106 tcoords[0] = tcoords[2] = 0.0f;
107 tcoords[1] = tcoords[3] = 1.0f;
136 quadpts[0] = quadpts[2] = 0.0f;
137 quadpts[1] = quadpts[3] = 1.0f;
148 tcoords[0] = tcoords[2] = 0.0f;
149 tcoords[1] = tcoords[3] = 1.0f;
164 inline int idx(
int row,
int col) {
return 4*col+row; }
203 std::deque<vtkPixelExtent> &blockExts);
214 void GetPixelBounds(
float *rgba,
int ni, std::deque<vtkPixelExtent> &blockExts);
218 std::deque<vtkPixelExtent> &blockExts,
219 float &min,
float &
max);
vtkSmartPointer< vtkLineIntegralConvolution2D > LICer
void ViewQuadPoints(GLfloat *quadpts)
Convert the entire view to a bounding box and it's texture coordinates for a screen size texture...
represents an object (geometry & properties) in a rendered scene
void AllocateTexture(vtkOpenGLRenderWindow *context, int *viewsize, vtkSmartPointer< vtkTextureObject > &tex, int filter=vtkTextureObject::Nearest)
Allocate a size texture, store in the given smart pointer.
vtkSmartPointer< vtkTextureObject > HSLColorImage
void ReleaseGraphicsResources(vtkWindow *win)
Free textures and shader programs we're holding a reference to.
vtkSmartPointer< vtkTextureObject > MaskVectorImage
void ViewportQuadPoints(const vtkPixelExtent &viewportExt, GLfloat *quadpts)
Convert a viewport to a bounding box and it's texture coordinates for a screen size texture...
void ClearTextures()
Free textures we're holding a reference to.
static void StreamingFindMinMax(vtkOpenGLFramebufferObject *fbo, std::deque< vtkPixelExtent > &blockExts, float &min, float &max)
vtkSmartPointer< vtkTextureObject > RGBColorImage
vtkOpenGLHelper * ColorPass
std::deque< vtkPixelExtent > BlockExts
abstract specification for renderers
void AllocateTextures(vtkOpenGLRenderWindow *context, int *viewsize)
Allocate textures.
vtkSmartPointer< vtkOpenGLFramebufferObject > FBO
int * GetData()
Direct access to internal data.
GPU-based implementation of Line Integral Convolution (LIC)
vtkSmartPointer< vtkSurfaceLICComposite > Compositor
bool CommunicatorNeedsUpdate
vtkWeakPointer< vtkOpenGLRenderWindow > Context
vtkSmartPointer< vtkTextureObject > CompositeVectorImage
static bool IsSupported(vtkOpenGLRenderWindow *context)
Check for OpenGL support.
window superclass for vtkRenderWindow
vtkSmartPointer< vtkTextureObject > VectorImage
vtkSmartPointer< vtkTextureObject > GeometryImage
bool VisibilityTest(double ndcBBox[24])
given a axes aligned bounding box in normalized device coordinates test for view frustum visibility...
vtkPainterCommunicator * Communicator
topologically and geometrically regular array of data
void UpdateAll()
Force all stages to re-execute.
void ViewQuadTextureCoords(GLfloat *tcoords)
Convert the entire view to a bounding box and it's texture coordinates for a screen size texture...
void Updated()
After LIC has been computed reset/clean internal state.
void RenderQuad(const vtkPixelExtent &viewExt, const vtkPixelExtent &viewportExt, vtkOpenGLHelper *cbo)
Render a quad (to trigger a shader to run)
vtkSmartPointer< vtkTextureObject > NoiseImage
vtkSmartPointer< vtkTextureObject > LICImage
void GetPixelBounds(float *rgba, int ni, vtkPixelExtent &ext)
Shrink an extent to tightly bound non-zero values.
Internal class which encapsulates OpenGL FramebufferObject.
vtkOpenGLHelper * CopyPass
Representation of a cartesian pixel plane and common operations on it.
void ViewportQuadTextureCoords(GLfloat *tcoords)
Convert viewport to texture coordinates.
A communicator that can safely be used inside a painter.
This class decomposes the image space and shuffles image space data onto the new decomposition with t...
vtkOpenGLHelper * ColorEnhancePass
int idx(int row, int col)
Compute the index into the 4x4 OpenGL ordered matrix.
vtkPixelExtent DataSetExt
general representation of visualization data
vtkSmartPointer< vtkTextureObject > CompositeMaskVectorImage
bool ProjectBounds(double PMV[16], int viewsize[2], double bounds[6], vtkPixelExtent &screenExt)
Given world space bounds, compute bounding boxes in clip and normalized device coordinates and perfor...
A small collection of noise routines for LIC.
vtkSmartPointer< vtkTextureObject > DepthImage
void AllocateDepthTexture(vtkOpenGLRenderWindow *context, int *viewsize, vtkSmartPointer< vtkTextureObject > &tex)
Allocate a size texture, store in the given smart pointer.
vtkSmartPointer< vtkImageData > Noise