vtkStructuredGridLIC2D Class Reference

#include <vtkStructuredGridLIC2D.h>

Inheritance diagram for vtkStructuredGridLIC2D:

Inheritance graph
[legend]
Collaboration diagram for vtkStructuredGridLIC2D:

Collaboration graph
[legend]

List of all members.


Detailed Description

GPU implementation of a Line Integral Convolution, a technique for imaging vector fields.

The input on port 0 is an 2D vtkStructuredGrid. It needs a vector field on point data. Port 1 is a special port for customized noise input. It is an optional port. If not present, noise is generated by the filter. Even if none-power-of-two texture are supported, giving a power-of-two image may result in faster execution on the GPU.

Please refer to Forssell, L. K., “Visualizing flow over curvilinear grid surfaces using line integral convolution”, Visualization 94 Conference Proceedings, pages 240-247, IEEE Computer Society, 1994 for details of the algorithm.

Required OpenGL Extensions:
GL_ARB_texture_non_power_of_two GL_VERSION_2_0 GL_ARB_texture_float GL_ARB_draw_buffers GL_EXT_framebuffer_object GL_ARB_pixel_buffer_object

Definition at line 50 of file vtkStructuredGridLIC2D.h.


Public Types

typedef vtkStructuredGridAlgorithm Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
int GetFBOSuccess ()
int GetLICSuccess ()
int SetContext (vtkRenderWindow *context)
vtkRenderWindowGetContext ()
virtual void SetSteps (int)
virtual int GetSteps ()
virtual void SetStepSize (double)
virtual double GetStepSize ()
virtual void SetMagnification (int)
virtual int GetMagnification ()
virtual int GetOpenGLExtensionsSupported ()

Static Public Member Functions

static vtkStructuredGridLIC2DNew ()
static int IsTypeOf (const char *type)
static vtkStructuredGridLIC2DSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkStructuredGridLIC2D ()
 ~vtkStructuredGridLIC2D ()
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int RequestUpdateExtent (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void AllocateScalars (vtkStructuredGrid *sg)
virtual int FillInputPortInformation (int port, vtkInformation *info)
virtual int FillOutputPortInformation (int port, vtkInformation *info)
void AllocateOutputData (vtkDataObject *output, int outputPort)
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)

Protected Attributes

int Steps
double StepSize
int Magnification
int OpenGLExtensionsSupported
vtkWeakPointer< vtkRenderWindowContext
vtkImageNoiseSourceNoiseSource
bool OwnWindow
int FBOSuccess
int LICSuccess

Member Typedef Documentation

Reimplemented from vtkStructuredGridAlgorithm.

Definition at line 54 of file vtkStructuredGridLIC2D.h.


Constructor & Destructor Documentation

vtkStructuredGridLIC2D::vtkStructuredGridLIC2D (  )  [protected]

vtkStructuredGridLIC2D::~vtkStructuredGridLIC2D (  )  [protected]


Member Function Documentation

static vtkStructuredGridLIC2D* vtkStructuredGridLIC2D::New (  )  [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkStructuredGridAlgorithm.

virtual const char* vtkStructuredGridLIC2D::GetClassName (  )  [virtual]

Reimplemented from vtkStructuredGridAlgorithm.

static int vtkStructuredGridLIC2D::IsTypeOf ( const char *  name  )  [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkStructuredGridAlgorithm.

virtual int vtkStructuredGridLIC2D::IsA ( const char *  name  )  [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkStructuredGridAlgorithm.

static vtkStructuredGridLIC2D* vtkStructuredGridLIC2D::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkStructuredGridAlgorithm.

void vtkStructuredGridLIC2D::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkStructuredGridAlgorithm.

int vtkStructuredGridLIC2D::SetContext ( vtkRenderWindow context  ) 

Get/Set the context. Context must be a vtkOpenGLRenderWindow. This does not increase the reference count of the context to avoid reference loops. SetContext() may raise an error is the OpenGL context does not support the required OpenGL extensions. Return 0 upon failure and 1 upon success.

vtkRenderWindow* vtkStructuredGridLIC2D::GetContext (  ) 

Get/Set the context. Context must be a vtkOpenGLRenderWindow. This does not increase the reference count of the context to avoid reference loops. SetContext() may raise an error is the OpenGL context does not support the required OpenGL extensions. Return 0 upon failure and 1 upon success.

virtual void vtkStructuredGridLIC2D::SetSteps ( int   )  [virtual]

Number of steps. Initial value is 1. class invariant: Steps>0. In term of visual quality, the greater the better.

virtual int vtkStructuredGridLIC2D::GetSteps (  )  [virtual]

Number of steps. Initial value is 1. class invariant: Steps>0. In term of visual quality, the greater the better.

virtual void vtkStructuredGridLIC2D::SetStepSize ( double   )  [virtual]

Step size. WE ARE NOT SURE YET about the space where we define the step. If the image data has different spacing in each dimension, it is an issue. Initial value is 1.0. class invariant: StepSize>0.0. In term of visual quality, the smaller the better. The type for the interface is double as VTK interface is double but GPU only supports float. This value will be converted to float in the execution of the algorithm.

virtual double vtkStructuredGridLIC2D::GetStepSize (  )  [virtual]

Step size. WE ARE NOT SURE YET about the space where we define the step. If the image data has different spacing in each dimension, it is an issue. Initial value is 1.0. class invariant: StepSize>0.0. In term of visual quality, the smaller the better. The type for the interface is double as VTK interface is double but GPU only supports float. This value will be converted to float in the execution of the algorithm.

virtual void vtkStructuredGridLIC2D::SetMagnification ( int   )  [virtual]

The the magnification factor. Default is 1

virtual int vtkStructuredGridLIC2D::GetMagnification (  )  [virtual]

The the magnification factor. Default is 1

virtual int vtkStructuredGridLIC2D::GetOpenGLExtensionsSupported (  )  [virtual]

Check if the required OpenGL extensions / GPU are supported.

int vtkStructuredGridLIC2D::GetFBOSuccess (  )  [inline]

Check if FBO is started properly.

Definition at line 98 of file vtkStructuredGridLIC2D.h.

int vtkStructuredGridLIC2D::GetLICSuccess (  )  [inline]

Check if LIC runs properly.

Definition at line 101 of file vtkStructuredGridLIC2D.h.

virtual int vtkStructuredGridLIC2D::FillInputPortInformation ( int  port,
vtkInformation info 
) [protected, virtual]

Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle. Redefined from the superclass.

Reimplemented from vtkStructuredGridAlgorithm.

virtual int vtkStructuredGridLIC2D::FillOutputPortInformation ( int  port,
vtkInformation info 
) [protected, virtual]

Fill the output port information objects for this algorithm. This is invoked by the first call to GetOutputPortInformation for each port so subclasses can specify what they can handle. Redefined from the superclass.

Reimplemented from vtkStructuredGridAlgorithm.

virtual int vtkStructuredGridLIC2D::RequestInformation ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

Reimplemented from vtkStructuredGridAlgorithm.

int vtkStructuredGridLIC2D::RequestUpdateExtent ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkStructuredGridAlgorithm.

void vtkStructuredGridLIC2D::AllocateOutputData ( vtkDataObject output,
int  outputPort 
) [protected]

Stolen from vtkImageAlgorithm. Should be in vtkStructuredGridAlgorithm.

void vtkStructuredGridLIC2D::AllocateScalars ( vtkStructuredGrid sg  )  [protected]

Stolen from vtkImageData. Should be in vtkStructuredGrid.

virtual int vtkStructuredGridLIC2D::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkStructuredGridAlgorithm.


Member Data Documentation

Definition at line 152 of file vtkStructuredGridLIC2D.h.

Definition at line 153 of file vtkStructuredGridLIC2D.h.

Definition at line 154 of file vtkStructuredGridLIC2D.h.

Definition at line 155 of file vtkStructuredGridLIC2D.h.

Definition at line 156 of file vtkStructuredGridLIC2D.h.

Definition at line 158 of file vtkStructuredGridLIC2D.h.

Definition at line 159 of file vtkStructuredGridLIC2D.h.

Definition at line 160 of file vtkStructuredGridLIC2D.h.

Definition at line 161 of file vtkStructuredGridLIC2D.h.


The documentation for this class was generated from the following file:

Generated on Mon Sep 27 18:53:03 2010 for VTK by  doxygen 1.5.6