VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkImageDataLIC2D Class Reference

#include <vtkImageDataLIC2D.h>

Inheritance diagram for vtkImageDataLIC2D:
Inheritance graph
[legend]
Collaboration diagram for vtkImageDataLIC2D:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkImageAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkImageDataLIC2DNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
void TranslateInputExtent (const int *inExt, const int *inWholeExtent, int *outExt)
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 vtkImageDataLIC2DNew ()
static int IsTypeOf (const char *type)
static vtkImageDataLIC2DSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkImageDataLIC2D ()
 ~vtkImageDataLIC2D ()
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int RequestUpdateExtent (vtkInformation *vtkNotUsed(request), vtkInformationVector **inputVector, vtkInformationVector *vtkNotUsed(outputVector))
virtual int FillInputPortInformation (int port, vtkInformation *info)
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)

Protected Attributes

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

Detailed Description

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

The input on port 0 is an vtkImageData with extents of a 2D image. It needs a vector field on point data. This filter only works on point vectors. One can use a vtkCellDataToPointData filter to convert cell vectors to point vectors.

Port 1 is a special port for customized noise input. It is an optional port. If noise input is not specified, then the filter using vtkImageNoiseSource to generate a 128x128 noise texture.

See also:
vtkSurfaceLICPainter vtkLineIntegralConvolution2D
Tests:
vtkImageDataLIC2D (Tests)

Definition at line 48 of file vtkImageDataLIC2D.h.


Member Typedef Documentation

Reimplemented from vtkImageAlgorithm.

Definition at line 52 of file vtkImageDataLIC2D.h.


Constructor & Destructor Documentation


Member Function Documentation

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

Reimplemented from vtkAlgorithm.

static int vtkImageDataLIC2D::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 vtkImageAlgorithm.

virtual int vtkImageDataLIC2D::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 vtkImageAlgorithm.

Reimplemented from vtkImageAlgorithm.

virtual vtkObjectBase* vtkImageDataLIC2D::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkImageAlgorithm.

Reimplemented from vtkImageAlgorithm.

void vtkImageDataLIC2D::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 vtkImageAlgorithm.

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.

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 vtkImageDataLIC2D::SetSteps ( int  ) [virtual]

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

virtual int vtkImageDataLIC2D::GetSteps ( ) [virtual]

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

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

Step size. Specify the step size as a unit of the cell length of the input vector field. Cell lengthh is the length of the diagonal of a cell. 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 vtkImageDataLIC2D::GetStepSize ( ) [virtual]

Step size. Specify the step size as a unit of the cell length of the input vector field. Cell lengthh is the length of the diagonal of a cell. 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 vtkImageDataLIC2D::SetMagnification ( int  ) [virtual]

The the magnification factor. Default is 1

The the magnification factor. Default is 1

Check if the required OpenGL extensions / GPU are supported.

void vtkImageDataLIC2D::TranslateInputExtent ( const int inExt,
const int inWholeExtent,
int outExt 
)
virtual int vtkImageDataLIC2D::RequestInformation ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

Subclasses can reimplement this method to collect information from their inputs and set information for their outputs.

Reimplemented from vtkImageAlgorithm.

virtual int vtkImageDataLIC2D::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 vtkImageAlgorithm.

int vtkImageDataLIC2D::RequestUpdateExtent ( vtkInformation vtkNotUsedrequest,
vtkInformationVector **  inputVector,
vtkInformationVector vtkNotUsedoutputVector 
) [protected]
virtual int vtkImageDataLIC2D::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

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

Reimplemented from vtkImageAlgorithm.


Member Data Documentation

Definition at line 128 of file vtkImageDataLIC2D.h.

bool vtkImageDataLIC2D::OwnWindow [protected]

Definition at line 129 of file vtkImageDataLIC2D.h.

Definition at line 130 of file vtkImageDataLIC2D.h.

Definition at line 132 of file vtkImageDataLIC2D.h.

Definition at line 134 of file vtkImageDataLIC2D.h.

Definition at line 136 of file vtkImageDataLIC2D.h.

Definition at line 137 of file vtkImageDataLIC2D.h.

Definition at line 138 of file vtkImageDataLIC2D.h.


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