ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkResampledAMRImageSource Class Reference

image data source that resamples an AMR dataset to produce the image data. More...

#include <vtkResampledAMRImageSource.h>

Inherits vtkTrivialProducer.

Public Types

typedef vtkTrivialProducer Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void Reset ()
 To restart the incremental resample process, call this method. More...
 
void UpdateResampledVolume (vtkOverlappingAMR *)
 Updates the volume. More...
 
bool NeedsInitialization () const
 Returns true if the resampler will reinitialize the volume in the next call to UpdateResampledVolume(). More...
 
virtual void SetMaxDimensions (int, int, int)
 Get/Set the maximum number of samples along each axis. More...
 
virtual void SetMaxDimensions (int [3])
 Get/Set the maximum number of samples along each axis. More...
 
virtual int * GetMaxDimensions ()
 Get/Set the maximum number of samples along each axis. More...
 
virtual void GetMaxDimensions (int &, int &, int &)
 Get/Set the maximum number of samples along each axis. More...
 
virtual void GetMaxDimensions (int [3])
 Get/Set the maximum number of samples along each axis. More...
 
virtual void SetSpatialBounds (double, double, double, double, double, double)
 When provided, the resampled image is set up to cover these bounds. More...
 
virtual void SetSpatialBounds (double [6])
 When provided, the resampled image is set up to cover these bounds. More...
 
virtual double * GetSpatialBounds ()
 When provided, the resampled image is set up to cover these bounds. More...
 
virtual void GetSpatialBounds (double &, double &, double &, double &, double &, double &)
 When provided, the resampled image is set up to cover these bounds. More...
 
virtual void GetSpatialBounds (double [6])
 When provided, the resampled image is set up to cover these bounds. More...
 

Static Public Member Functions

static vtkResampledAMRImageSourceNew ()
 
static int IsTypeOf (const char *type)
 
static vtkResampledAMRImageSourceSafeDownCast (vtkObject *o)
 

Protected Member Functions

 vtkResampledAMRImageSource ()
 
 ~vtkResampledAMRImageSource ()
 
bool Initialize (vtkOverlappingAMR *amr)
 
bool UpdateResampledVolume (const unsigned int &level, const unsigned &index, const vtkAMRBox &box, vtkImageData *data)
 

Protected Attributes

int MaxDimensions [3]
 
double SpatialBounds [6]
 
vtkSmartPointer< vtkImageData > ResampledAMR
 
vtkSmartPointer< vtkPointData > ResampledAMRPointData
 
vtkSmartPointer< vtkIntArray > DonorLevel
 

Detailed Description

image data source that resamples an AMR dataset to produce the image data.

vtkResampledAMRImageSource is a image data source that resamples a vtkOverlappingAMR dataset to produce an image data. The output AMR will have both the point data and cell data from the input AMR grids passed along as point data for the output image data. This filter assumes that all blocks in the input AMR have exactly the same point/cell arrays in same order. If they are different we will end up with weird runtime issues that may be hard to debug.

Attention
We subclass vtkTrivialProducer since it deals with all the meta-data that needs to be passed down the pipeline for image data, keeping the code here simple.

Definition at line 47 of file vtkResampledAMRImageSource.h.

Member Typedef Documentation

◆ Superclass

typedef vtkTrivialProducer vtkResampledAMRImageSource::Superclass

Definition at line 51 of file vtkResampledAMRImageSource.h.

Constructor & Destructor Documentation

◆ vtkResampledAMRImageSource()

vtkResampledAMRImageSource::vtkResampledAMRImageSource ( )
protected

◆ ~vtkResampledAMRImageSource()

vtkResampledAMRImageSource::~vtkResampledAMRImageSource ( )
protected

Member Function Documentation

◆ New()

static vtkResampledAMRImageSource* vtkResampledAMRImageSource::New ( )
static

◆ GetClassName()

virtual const char* vtkResampledAMRImageSource::GetClassName ( )
virtual

◆ IsTypeOf()

static int vtkResampledAMRImageSource::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual int vtkResampledAMRImageSource::IsA ( const char *  type)
virtual

◆ SafeDownCast()

static vtkResampledAMRImageSource* vtkResampledAMRImageSource::SafeDownCast ( vtkObject *  o)
static

◆ PrintSelf()

void vtkResampledAMRImageSource::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

◆ SetMaxDimensions() [1/2]

virtual void vtkResampledAMRImageSource::SetMaxDimensions ( int  ,
int  ,
int   
)
virtual

Get/Set the maximum number of samples along each axis.

◆ SetMaxDimensions() [2/2]

virtual void vtkResampledAMRImageSource::SetMaxDimensions ( int  [3])
virtual

Get/Set the maximum number of samples along each axis.

◆ GetMaxDimensions() [1/3]

virtual int* vtkResampledAMRImageSource::GetMaxDimensions ( )
virtual

Get/Set the maximum number of samples along each axis.

◆ GetMaxDimensions() [2/3]

virtual void vtkResampledAMRImageSource::GetMaxDimensions ( int &  ,
int &  ,
int &   
)
virtual

Get/Set the maximum number of samples along each axis.

◆ GetMaxDimensions() [3/3]

virtual void vtkResampledAMRImageSource::GetMaxDimensions ( int  [3])
virtual

Get/Set the maximum number of samples along each axis.

◆ SetSpatialBounds() [1/2]

virtual void vtkResampledAMRImageSource::SetSpatialBounds ( double  ,
double  ,
double  ,
double  ,
double  ,
double   
)
virtual

When provided, the resampled image is set up to cover these bounds.

If not provided, data bounds are used. If provided, these bounds MUST fit within the data bounds. This is essential to ensure valid resampled volume is generated.

◆ SetSpatialBounds() [2/2]

virtual void vtkResampledAMRImageSource::SetSpatialBounds ( double  [6])
virtual

When provided, the resampled image is set up to cover these bounds.

If not provided, data bounds are used. If provided, these bounds MUST fit within the data bounds. This is essential to ensure valid resampled volume is generated.

◆ GetSpatialBounds() [1/3]

virtual double* vtkResampledAMRImageSource::GetSpatialBounds ( )
virtual

When provided, the resampled image is set up to cover these bounds.

If not provided, data bounds are used. If provided, these bounds MUST fit within the data bounds. This is essential to ensure valid resampled volume is generated.

◆ GetSpatialBounds() [2/3]

virtual void vtkResampledAMRImageSource::GetSpatialBounds ( double &  ,
double &  ,
double &  ,
double &  ,
double &  ,
double &   
)
virtual

When provided, the resampled image is set up to cover these bounds.

If not provided, data bounds are used. If provided, these bounds MUST fit within the data bounds. This is essential to ensure valid resampled volume is generated.

◆ GetSpatialBounds() [3/3]

virtual void vtkResampledAMRImageSource::GetSpatialBounds ( double  [6])
virtual

When provided, the resampled image is set up to cover these bounds.

If not provided, data bounds are used. If provided, these bounds MUST fit within the data bounds. This is essential to ensure valid resampled volume is generated.

◆ Reset()

void vtkResampledAMRImageSource::Reset ( )

To restart the incremental resample process, call this method.

The output image data is setup in the first call to Update().

◆ UpdateResampledVolume() [1/2]

void vtkResampledAMRImageSource::UpdateResampledVolume ( vtkOverlappingAMR *  )

Updates the volume.

Any non-empty pieces provided by the amr are added to the resampled volume if it adds refinement to the volume.

◆ NeedsInitialization()

bool vtkResampledAMRImageSource::NeedsInitialization ( ) const
inline

Returns true if the resampler will reinitialize the volume in the next call to UpdateResampledVolume().

Definition at line 89 of file vtkResampledAMRImageSource.h.

◆ Initialize()

bool vtkResampledAMRImageSource::Initialize ( vtkOverlappingAMR *  amr)
protected

◆ UpdateResampledVolume() [2/2]

bool vtkResampledAMRImageSource::UpdateResampledVolume ( const unsigned int &  level,
const unsigned &  index,
const vtkAMRBox &  box,
vtkImageData *  data 
)
protected

Member Data Documentation

◆ MaxDimensions

int vtkResampledAMRImageSource::MaxDimensions[3]
protected

Definition at line 99 of file vtkResampledAMRImageSource.h.

◆ SpatialBounds

double vtkResampledAMRImageSource::SpatialBounds[6]
protected

Definition at line 100 of file vtkResampledAMRImageSource.h.

◆ ResampledAMR

vtkSmartPointer<vtkImageData> vtkResampledAMRImageSource::ResampledAMR
protected

Definition at line 102 of file vtkResampledAMRImageSource.h.

◆ ResampledAMRPointData

vtkSmartPointer<vtkPointData> vtkResampledAMRImageSource::ResampledAMRPointData
protected

Definition at line 103 of file vtkResampledAMRImageSource.h.

◆ DonorLevel

vtkSmartPointer<vtkIntArray> vtkResampledAMRImageSource::DonorLevel
protected

Definition at line 105 of file vtkResampledAMRImageSource.h.


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