VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkFastSplatter Class Reference

A splatter optimized for splatting single kernels. More...

#include <vtkFastSplatter.h>

Inherits vtkImageAlgorithm.

Public Types

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

Public Member Functions

virtual int IsA (const char *type)
 
vtkFastSplatterNewInstance () const
 
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 (vtkObjectBase *o)
 
static vtkFastSplatterNew ()
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 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
 
vtkImageData * Buckets
 
double Origin [3]
 
double Spacing [3]
 
int NumberOfPointsSplatted
 
double LastDataMinValue
 
double LastDataMaxValue
 

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 53 of file vtkFastSplatter.h.

Member Typedef Documentation

typedef vtkImageAlgorithm vtkFastSplatter::Superclass

Definition at line 56 of file vtkFastSplatter.h.

Member Enumeration Documentation

anonymous enum
Enumerator
NoneLimit 
ClampLimit 
ScaleLimit 
FreezeScaleLimit 

Definition at line 76 of file vtkFastSplatter.h.

Constructor & Destructor Documentation

vtkFastSplatter::vtkFastSplatter ( )
protected
virtual vtkFastSplatter::~vtkFastSplatter ( )
protectedvirtual

Member Function Documentation

static int vtkFastSplatter::IsTypeOf ( const char *  type)
static
virtual int vtkFastSplatter::IsA ( const char *  type)
virtual
static vtkFastSplatter* vtkFastSplatter::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkFastSplatter::NewInstanceInternal ( ) const
protectedvirtual
vtkFastSplatter* vtkFastSplatter::NewInstance ( ) const
static vtkFastSplatter* vtkFastSplatter::New ( )
static
virtual void vtkFastSplatter::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual
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 87 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 88 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 89 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 90 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 
)
protectedvirtual
virtual int vtkFastSplatter::RequestInformation ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual
virtual int vtkFastSplatter::RequestUpdateExtent ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual
virtual int vtkFastSplatter::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual

Member Data Documentation

double vtkFastSplatter::ModelBounds[6]
protected

Definition at line 116 of file vtkFastSplatter.h.

int vtkFastSplatter::OutputDimensions[3]
protected

Definition at line 117 of file vtkFastSplatter.h.

int vtkFastSplatter::LimitMode
protected

Definition at line 119 of file vtkFastSplatter.h.

double vtkFastSplatter::MinValue
protected

Definition at line 120 of file vtkFastSplatter.h.

double vtkFastSplatter::MaxValue
protected

Definition at line 121 of file vtkFastSplatter.h.

double vtkFastSplatter::FrozenScale
protected

Definition at line 122 of file vtkFastSplatter.h.

vtkImageData* vtkFastSplatter::Buckets
protected

Definition at line 124 of file vtkFastSplatter.h.

double vtkFastSplatter::Origin[3]
protected

Definition at line 139 of file vtkFastSplatter.h.

double vtkFastSplatter::Spacing[3]
protected

Definition at line 140 of file vtkFastSplatter.h.

int vtkFastSplatter::NumberOfPointsSplatted
protected

Definition at line 143 of file vtkFastSplatter.h.

double vtkFastSplatter::LastDataMinValue
protected

Definition at line 148 of file vtkFastSplatter.h.

double vtkFastSplatter::LastDataMaxValue
protected

Definition at line 149 of file vtkFastSplatter.h.


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