Public Member Functions | Protected Attributes

DGVBlitzArrayCasterVTK< type > Class Template Reference

Object for casting to and from Blitz ++ Arrays involving VTK objects. More...

#include <DGVBlitzArrayCasterVTK.h>

Collaboration diagram for DGVBlitzArrayCasterVTK< type >:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

template<typename type>
class DGVBlitzArrayCasterVTK< type >

Object for casting to and from Blitz ++ Arrays involving VTK objects.

Author:
Shekhar S. Chandra, 2008-2009
Todo:
Check the alignment of x,y and z axis.

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.


Constructor & Destructor Documentation

template<typename type >
DGVBlitzArrayCasterVTK< type >::DGVBlitzArrayCasterVTK (  ) 

Definition at line 99 of file DGVBlitzArrayCasterVTK.h.

template<typename type >
DGVBlitzArrayCasterVTK< type >::~DGVBlitzArrayCasterVTK (  )  [virtual]

Definition at line 105 of file DGVBlitzArrayCasterVTK.h.


Member Function Documentation

template<typename type>
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.

template<typename type>
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.

template<typename type>
vtkImageData * DGVBlitzArrayCasterVTK< type >::arrayToVTKImageData ( Array< complex< type >, 3 > &  data  ) 

Definition at line 348 of file DGVBlitzArrayCasterVTK.h.

template<typename type>
vtkImageData * DGVBlitzArrayCasterVTK< type >::arrayToVTKImageData ( Array< type, 3 > &  data  ) 

Definition at line 228 of file DGVBlitzArrayCasterVTK.h.

template<typename type>
vtkImageData * DGVBlitzArrayCasterVTK< type >::arrayToVTKImageData_UnsignedChar ( Array< type, 3 > &  data  ) 

Definition at line 288 of file DGVBlitzArrayCasterVTK.h.

template<typename type>
vtkImageData * DGVBlitzArrayCasterVTK< type >::arrayToVTKImageData_UnsignedChar ( Array< type, 2 > &  data  ) 

Definition at line 170 of file DGVBlitzArrayCasterVTK.h.

template<typename type >
void DGVBlitzArrayCasterVTK< type >::convertCoordinatesToArray ( vtkImageData *&  data  ) 

Converts coordinates from VTK to Blitz++ Arrays. DEPRECATED. CAUSES DISLOCATION ARTEFACTS DUE TO ROTATION DONE!

Todo:
Leak here?

Definition at line 559 of file DGVBlitzArrayCasterVTK.h.

template<typename type>
type DGVBlitzArrayCasterVTK< type >::getMax (  )  [inline]

Definition at line 86 of file DGVBlitzArrayCasterVTK.h.

template<typename type>
type DGVBlitzArrayCasterVTK< type >::getMean (  )  [inline]

Definition at line 88 of file DGVBlitzArrayCasterVTK.h.

template<typename type>
type DGVBlitzArrayCasterVTK< type >::getMin (  )  [inline]

Definition at line 84 of file DGVBlitzArrayCasterVTK.h.

template<typename type>
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.

Todo:
Check for correct bounds checking here

Definition at line 416 of file DGVBlitzArrayCasterVTK.h.

template<typename type>
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.

template<typename type>
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.

Todo:
Check for correct bounds checking here

Definition at line 463 of file DGVBlitzArrayCasterVTK.h.


Member Data Documentation

template<typename type>
bool DGVBlitzArrayCasterVTK< type >::imageAlignment [protected]

Image alignment flag.

Definition at line 92 of file DGVBlitzArrayCasterVTK.h.

template<typename type>
type DGVBlitzArrayCasterVTK< type >::max [protected]

Maximum image value.

Definition at line 94 of file DGVBlitzArrayCasterVTK.h.

template<typename type>
type DGVBlitzArrayCasterVTK< type >::mean [protected]

Mean image value.

Definition at line 95 of file DGVBlitzArrayCasterVTK.h.

template<typename type>
type DGVBlitzArrayCasterVTK< type >::min [protected]

Minimum image value.

Definition at line 93 of file DGVBlitzArrayCasterVTK.h.


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