Object for casting to and from Blitz ++ Arrays involving VTK objects. More...
#include <DGVBlitzArrayCasterVTK.h>
Public Member Functions | |
DGVBlitzArrayCasterVTK () | |
virtual | ~DGVBlitzArrayCasterVTK () |
vtkImageData * | arrayToVTKImageData (Array< type, 2 > &data) |
Cast/Convert a Blitz ++ Array to a VTK Image Data object. Returns a pointer to a newly constructed vtkImageData object containing the casted data. | |
vtkImageData * | arrayToVTKImageData_UnsignedChar (Array< type, 2 > &data) |
vtkImageData * | arrayToVTKImageData (Array< type, 3 > &data) |
vtkImageData * | arrayToVTKImageData_UnsignedChar (Array< type, 3 > &data) |
vtkImageData * | arrayToVTKImageData (Array< complex< type >, 3 > &data) |
bool | vtkImageDataToArray (vtkImageData *data, Array< type, 2 > &newArray) |
Cast/Convert a VTK Image Data object to a Blitz ++ Array. Assigns the vtkImageData to supplied Blitz ++ Array. | |
bool | vtkImageDataToArray (vtkImageData *data, int slice, Array< type, 2 > &newArray) |
bool | vtkImageDataToArray (vtkImageData *data, Array< type, 3 > &newArray) |
void | convertCoordinatesToArray (vtkImageData *&data) |
Converts coordinates from VTK to Blitz++ Arrays. DEPRECATED. CAUSES DISLOCATION ARTEFACTS DUE TO ROTATION DONE! | |
void | alignmentForImages (bool forImages) |
Array axis alignment for image display and not standard right-handed coordinate system which is default. Image axis alignment has the x and y coordinates switched and y values reversed. | |
type | getMin () |
type | getMax () |
type | getMean () |
Protected Attributes | |
bool | imageAlignment |
Image alignment flag. | |
type | min |
Minimum image value. | |
type | max |
Maximum image value. | |
type | mean |
Mean image value. |
Object for casting to and from Blitz ++ Arrays involving VTK objects.
Casts from and to Blitz++ Arrays and vtkImageData objects. Stores the min, max and mean of the data also.
Definition at line 42 of file DGVBlitzArrayCasterVTK.h.
DGVBlitzArrayCasterVTK< type >::DGVBlitzArrayCasterVTK | ( | ) |
Definition at line 99 of file DGVBlitzArrayCasterVTK.h.
DGVBlitzArrayCasterVTK< type >::~DGVBlitzArrayCasterVTK | ( | ) | [virtual] |
Definition at line 105 of file DGVBlitzArrayCasterVTK.h.
DGVBlitzArrayCasterVTK< type >::alignmentForImages | ( | bool | forImages | ) | [inline] |
Array axis alignment for image display and not standard right-handed coordinate system which is default. Image axis alignment has the x and y coordinates switched and y values reversed.
Definition at line 81 of file DGVBlitzArrayCasterVTK.h.
vtkImageData * DGVBlitzArrayCasterVTK< type >::arrayToVTKImageData | ( | Array< type, 2 > & | data | ) |
Cast/Convert a Blitz ++ Array to a VTK Image Data object. Returns a pointer to a newly constructed vtkImageData object containing the casted data.
Definition at line 111 of file DGVBlitzArrayCasterVTK.h.
vtkImageData * DGVBlitzArrayCasterVTK< type >::arrayToVTKImageData | ( | Array< complex< type >, 3 > & | data | ) |
Definition at line 348 of file DGVBlitzArrayCasterVTK.h.
vtkImageData * DGVBlitzArrayCasterVTK< type >::arrayToVTKImageData | ( | Array< type, 3 > & | data | ) |
Definition at line 228 of file DGVBlitzArrayCasterVTK.h.
vtkImageData * DGVBlitzArrayCasterVTK< type >::arrayToVTKImageData_UnsignedChar | ( | Array< type, 3 > & | data | ) |
Definition at line 288 of file DGVBlitzArrayCasterVTK.h.
vtkImageData * DGVBlitzArrayCasterVTK< type >::arrayToVTKImageData_UnsignedChar | ( | Array< type, 2 > & | data | ) |
Definition at line 170 of file DGVBlitzArrayCasterVTK.h.
void DGVBlitzArrayCasterVTK< type >::convertCoordinatesToArray | ( | vtkImageData *& | data | ) |
Converts coordinates from VTK to Blitz++ Arrays. DEPRECATED. CAUSES DISLOCATION ARTEFACTS DUE TO ROTATION DONE!
Definition at line 559 of file DGVBlitzArrayCasterVTK.h.
type DGVBlitzArrayCasterVTK< type >::getMax | ( | ) | [inline] |
Definition at line 86 of file DGVBlitzArrayCasterVTK.h.
type DGVBlitzArrayCasterVTK< type >::getMean | ( | ) | [inline] |
Definition at line 88 of file DGVBlitzArrayCasterVTK.h.
type DGVBlitzArrayCasterVTK< type >::getMin | ( | ) | [inline] |
Definition at line 84 of file DGVBlitzArrayCasterVTK.h.
bool DGVBlitzArrayCasterVTK< type >::vtkImageDataToArray | ( | vtkImageData * | data, | |
Array< type, 2 > & | newArray | |||
) |
Cast/Convert a VTK Image Data object to a Blitz ++ Array. Assigns the vtkImageData to supplied Blitz ++ Array.
The coordinates are 90 degrees (anti-clockwise) different to VTK.
The coordinates are 90 degrees (anti-clockwise) different to VTK.
Definition at line 416 of file DGVBlitzArrayCasterVTK.h.
bool DGVBlitzArrayCasterVTK< type >::vtkImageDataToArray | ( | vtkImageData * | data, | |
Array< type, 3 > & | newArray | |||
) |
The coordinates are 90 degrees (anti-clockwise) different to VTK.
The coordinates are 90 degrees (anti-clockwise) different to VTK.
Definition at line 511 of file DGVBlitzArrayCasterVTK.h.
bool DGVBlitzArrayCasterVTK< type >::vtkImageDataToArray | ( | vtkImageData * | data, | |
int | slice, | |||
Array< type, 2 > & | newArray | |||
) |
The coordinates are 90 degrees (anti-clockwise) different to VTK.
The coordinates are 90 degrees (anti-clockwise) different to VTK.
Definition at line 463 of file DGVBlitzArrayCasterVTK.h.
bool DGVBlitzArrayCasterVTK< type >::imageAlignment [protected] |
Image alignment flag.
Definition at line 92 of file DGVBlitzArrayCasterVTK.h.
type DGVBlitzArrayCasterVTK< type >::max [protected] |
Maximum image value.
Definition at line 94 of file DGVBlitzArrayCasterVTK.h.
type DGVBlitzArrayCasterVTK< type >::mean [protected] |
Mean image value.
Definition at line 95 of file DGVBlitzArrayCasterVTK.h.
type DGVBlitzArrayCasterVTK< type >::min [protected] |
Minimum image value.
Definition at line 93 of file DGVBlitzArrayCasterVTK.h.