image data source that resamples an AMR dataset to produce the image data.
More...
#include <vtkResampledAMRImageSource.h>
Inherits vtkTrivialProducer.
|
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...
|
|
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.
◆ Superclass
◆ vtkResampledAMRImageSource()
vtkResampledAMRImageSource::vtkResampledAMRImageSource |
( |
| ) |
|
|
protected |
◆ ~vtkResampledAMRImageSource()
vtkResampledAMRImageSource::~vtkResampledAMRImageSource |
( |
| ) |
|
|
protected |
◆ New()
◆ 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()
◆ 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 |
◆ 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 |
◆ MaxDimensions
int vtkResampledAMRImageSource::MaxDimensions[3] |
|
protected |
◆ SpatialBounds
double vtkResampledAMRImageSource::SpatialBounds[6] |
|
protected |
◆ ResampledAMR
vtkSmartPointer<vtkImageData> vtkResampledAMRImageSource::ResampledAMR |
|
protected |
◆ ResampledAMRPointData
vtkSmartPointer<vtkPointData> vtkResampledAMRImageSource::ResampledAMRPointData |
|
protected |
◆ DonorLevel
vtkSmartPointer<vtkIntArray> vtkResampledAMRImageSource::DonorLevel |
|
protected |
The documentation for this class was generated from the following file: