vtkFastSplatter Class Reference

#include <vtkFastSplatter.h>

Inheritance diagram for vtkFastSplatter:

Inheritance graph
[legend]
Collaboration diagram for vtkFastSplatter:

Collaboration graph
[legend]

List of all members.


Detailed Description

A splatter optimized for splatting single kernels.

vtkFastSplatter takes any vtkPointSet as input (of which vtkPolyData and vtkUnstructuredGrid inherit). Each point in the data set is considered to be an impulse. These impulses are convolved with a given splat image. In other words, the splat image is added to the final image at every place where there is an input point.

Note that point and cell data are thrown away. If you want a sampling of unstructured points consider vtkGaussianSplatter or vtkShepardMethod.

Use input port 0 for the impulse data (vtkPointSet), and input port 1 for the splat image (vtkImageData)

Bug:
Any point outside of the extents of the image is thrown away, even if it is close enough such that it's convolution with the splat image would overlap the extents.
Tests:
vtkFastSplatter (Tests)

Definition at line 52 of file vtkFastSplatter.h.


Public Types

enum  { NoneLimit, ClampLimit, ScaleLimit, FreezeScaleLimit }
typedef vtkImageAlgorithm Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
virtual void PrintSelf (ostream &os, vtkIndent indent)
void SetSplatConnection (vtkAlgorithmOutput *)
virtual void SetModelBounds (double, double, double, double, double, double)
virtual void SetModelBounds (double[6])
virtual double * GetModelBounds ()
virtual void GetModelBounds (double data[6])
virtual void SetOutputDimensions (int, int, int)
virtual void SetOutputDimensions (int[3])
virtual int * GetOutputDimensions ()
virtual void GetOutputDimensions (int &, int &, int &)
virtual void GetOutputDimensions (int[3])
virtual void SetLimitMode (int)
virtual int GetLimitMode ()
void SetLimitModeToNone ()
void SetLimitModeToClamp ()
void SetLimitModeToScale ()
void SetLimitModeToFreezeScale ()
virtual void SetMinValue (double)
virtual double GetMinValue ()
virtual void SetMaxValue (double)
virtual double GetMaxValue ()
virtual int GetNumberOfPointsSplatted ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkFastSplatterSafeDownCast (vtkObject *o)
static vtkFastSplatterNew ()

Protected Member Functions

 vtkFastSplatter ()
virtual ~vtkFastSplatter ()
virtual int FillInputPortInformation (int port, vtkInformation *info)
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

double ModelBounds [6]
int OutputDimensions [3]
int LimitMode
double MinValue
double MaxValue
double FrozenScale
vtkImageDataBuckets
double Origin [3]
double Spacing [3]
int NumberOfPointsSplatted
double LastDataMinValue
double LastDataMaxValue

Member Typedef Documentation

Reimplemented from vtkImageAlgorithm.

Definition at line 55 of file vtkFastSplatter.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
NoneLimit 
ClampLimit 
ScaleLimit 
FreezeScaleLimit 

Definition at line 75 of file vtkFastSplatter.h.


Constructor & Destructor Documentation

vtkFastSplatter::vtkFastSplatter (  )  [protected]

virtual vtkFastSplatter::~vtkFastSplatter (  )  [protected, virtual]


Member Function Documentation

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

Reimplemented from vtkImageAlgorithm.

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

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

Reimplemented from vtkImageAlgorithm.

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

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

Reimplemented from vtkAlgorithm.

virtual void vtkFastSplatter::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.

virtual void vtkFastSplatter::SetModelBounds ( double  ,
double  ,
double  ,
double  ,
double  ,
double   
) [virtual]

Set / get the (xmin,xmax, ymin,ymax, zmin,zmax) bounding box in which the sampling is performed. If any of the (min,max) bounds values are min >= max, then the bounds will be computed automatically from the input data. Otherwise, the user-specified bounds will be used.

virtual void vtkFastSplatter::SetModelBounds ( double  [6]  )  [virtual]

Set / get the (xmin,xmax, ymin,ymax, zmin,zmax) bounding box in which the sampling is performed. If any of the (min,max) bounds values are min >= max, then the bounds will be computed automatically from the input data. Otherwise, the user-specified bounds will be used.

virtual double* vtkFastSplatter::GetModelBounds (  )  [virtual]

Set / get the (xmin,xmax, ymin,ymax, zmin,zmax) bounding box in which the sampling is performed. If any of the (min,max) bounds values are min >= max, then the bounds will be computed automatically from the input data. Otherwise, the user-specified bounds will be used.

virtual void vtkFastSplatter::GetModelBounds ( double  data[6]  )  [virtual]

Set / get the (xmin,xmax, ymin,ymax, zmin,zmax) bounding box in which the sampling is performed. If any of the (min,max) bounds values are min >= max, then the bounds will be computed automatically from the input data. Otherwise, the user-specified bounds will be used.

virtual void vtkFastSplatter::SetOutputDimensions ( int  ,
int  ,
int   
) [virtual]

Set/get the dimensions of the output image

virtual void vtkFastSplatter::SetOutputDimensions ( int  [3]  )  [virtual]

Set/get the dimensions of the output image

virtual int* vtkFastSplatter::GetOutputDimensions (  )  [virtual]

Set/get the dimensions of the output image

virtual void vtkFastSplatter::GetOutputDimensions ( int &  ,
int &  ,
int &   
) [virtual]

Set/get the dimensions of the output image

virtual void vtkFastSplatter::GetOutputDimensions ( int  [3]  )  [virtual]

Set/get the dimensions of the output image

virtual void vtkFastSplatter::SetLimitMode ( int   )  [virtual]

Set/get the way voxel values will be limited. If this is set to None (the default), the output can have arbitrarily large values. If set to clamp, the output will be clamped to [MinValue,MaxValue]. If set to scale, the output will be linearly scaled between MinValue and MaxValue.

virtual int vtkFastSplatter::GetLimitMode (  )  [virtual]

Set/get the way voxel values will be limited. If this is set to None (the default), the output can have arbitrarily large values. If set to clamp, the output will be clamped to [MinValue,MaxValue]. If set to scale, the output will be linearly scaled between MinValue and MaxValue.

void vtkFastSplatter::SetLimitModeToNone (  )  [inline]

Set/get the way voxel values will be limited. If this is set to None (the default), the output can have arbitrarily large values. If set to clamp, the output will be clamped to [MinValue,MaxValue]. If set to scale, the output will be linearly scaled between MinValue and MaxValue.

Definition at line 86 of file vtkFastSplatter.h.

void vtkFastSplatter::SetLimitModeToClamp (  )  [inline]

Set/get the way voxel values will be limited. If this is set to None (the default), the output can have arbitrarily large values. If set to clamp, the output will be clamped to [MinValue,MaxValue]. If set to scale, the output will be linearly scaled between MinValue and MaxValue.

Definition at line 87 of file vtkFastSplatter.h.

void vtkFastSplatter::SetLimitModeToScale (  )  [inline]

Set/get the way voxel values will be limited. If this is set to None (the default), the output can have arbitrarily large values. If set to clamp, the output will be clamped to [MinValue,MaxValue]. If set to scale, the output will be linearly scaled between MinValue and MaxValue.

Definition at line 88 of file vtkFastSplatter.h.

void vtkFastSplatter::SetLimitModeToFreezeScale (  )  [inline]

Set/get the way voxel values will be limited. If this is set to None (the default), the output can have arbitrarily large values. If set to clamp, the output will be clamped to [MinValue,MaxValue]. If set to scale, the output will be linearly scaled between MinValue and MaxValue.

Definition at line 89 of file vtkFastSplatter.h.

virtual void vtkFastSplatter::SetMinValue ( double   )  [virtual]

See the LimitMode method.

virtual double vtkFastSplatter::GetMinValue (  )  [virtual]

See the LimitMode method.

virtual void vtkFastSplatter::SetMaxValue ( double   )  [virtual]

See the LimitMode method.

virtual double vtkFastSplatter::GetMaxValue (  )  [virtual]

See the LimitMode method.

virtual int vtkFastSplatter::GetNumberOfPointsSplatted (  )  [virtual]

This returns the number of points splatted (as opposed to discarded for being outside the image) during the previous pass.

void vtkFastSplatter::SetSplatConnection ( vtkAlgorithmOutput  ) 

Convenience function for connecting the splat algorithm source. This is provided mainly for convenience using the filter with ParaView, VTK users should prefer SetInputConnection(1, splat) instead.

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

Reimplemented from vtkImageAlgorithm.

virtual int vtkFastSplatter::RequestInformation ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
) [protected, virtual]

Reimplemented from vtkImageAlgorithm.

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

Reimplemented from vtkImageAlgorithm.

virtual int vtkFastSplatter::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

double vtkFastSplatter::ModelBounds[6] [protected]

Definition at line 115 of file vtkFastSplatter.h.

Definition at line 116 of file vtkFastSplatter.h.

int vtkFastSplatter::LimitMode [protected]

Definition at line 118 of file vtkFastSplatter.h.

double vtkFastSplatter::MinValue [protected]

Definition at line 119 of file vtkFastSplatter.h.

double vtkFastSplatter::MaxValue [protected]

Definition at line 120 of file vtkFastSplatter.h.

double vtkFastSplatter::FrozenScale [protected]

Definition at line 121 of file vtkFastSplatter.h.

Definition at line 123 of file vtkFastSplatter.h.

double vtkFastSplatter::Origin[3] [protected]

Definition at line 138 of file vtkFastSplatter.h.

double vtkFastSplatter::Spacing[3] [protected]

Definition at line 139 of file vtkFastSplatter.h.

Definition at line 142 of file vtkFastSplatter.h.

Definition at line 147 of file vtkFastSplatter.h.

Definition at line 148 of file vtkFastSplatter.h.


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

Generated on Wed Aug 24 11:36:10 2011 for VTK by  doxygen 1.5.6