VTK Interfacing
Interfacing with other software
Collaboration diagram for VTK Interfacing:

## Functions

template<typename T >
vtkSmartPointer< vtkDataArray > | asl::castVTKDataArray (T *d, unsigned int np, unsigned int save=0, const std::string &name="")
| creates VTKDataArray with 1 component `d` and length `np` and `name` More...
template<typename T >
vtkSmartPointer< vtkDataArray > | asl::castVTKDataArray (T *d1, T *d2, unsigned int np, const std::string &name="")
| creates VTKDataArray with 2 component `d1` and `d2` and length `np` and `name` More...
template<typename T >
vtkSmartPointer< vtkDataArray > | asl::castVTKDataArray (T *d1, T *d2, T *d3, unsigned int np, const std::string &name="")
| creates VTKDataArray with 3 component `d1`, `d2` and `d3` and length `np` and `name` More...
template<typename T >
vtkSmartPointer< vtkDataArray > | asl::castVTKDataArray2in3 (T *d1, T *d2, unsigned int np, const std::string &name)
| creates VTKDataArray with 3 component `d2`, `d1` and 0 and length `np` and `name` More...
vtkSmartPointer< vtkIdTypeArray > | asl::castVTKIdTypeArray (unsigned int *d0, unsigned int *d1, unsigned int *d2, unsigned int *d3, unsigned int np, const std::string &name="")
| creates VTKDataArray with 3 component `d1`, `d2` and `d3` and length `np` and `name` More...
vtkSmartPointer< vtkDataArray > | asl::castVTKDataArray (acl::Element source, const std::string &name="")
void | asl::updateVTKDataArray (acl::Element source, vtkSmartPointer< vtkDataArray > vtkData)
void | asl::updateVTKDataArray (acl::Element source, const std::string &name, vtkSmartPointer< vtkImageData > vtkData)
vtkSmartPointer< vtkImageData > | asl::castVTKData (const Block &b)
vtkSmartPointer< vtkImageData > | asl::castVTKData (double *d, const Block &b, unsigned int save=0, const std::string &name="")
vtkSmartPointer< vtkImageData > | asl::castVTKData (double *d1, double *d2, const Block &b, const std::string &name="")
vtkSmartPointer< vtkImageData > | asl::castVTKData (double *d1, double *d2, double *d3, const Block &b, const std::string &name="")
void | asl::putToVTKData (double *d, vtkSmartPointer< vtkImageData > target)
void | asl::putToVTKData (double *d1, double *d2, vtkSmartPointer< vtkImageData > target)
void | asl::putToVTKData (double *d1, double *d2, double *d3, vtkSmartPointer< vtkImageData > target)
vtkSmartPointer< vtkImageData > | asl::castVTKData (const AbstractData &d, const std::vector< std::string > &names=std::vector< std::string >(0))
SPDataWithGhostNodesACLData | asl::makeData (vtkSmartPointer< vtkImageData > image, unsigned int arrayNum=0, acl::CommandQueue queue=acl::hardware.defaultQueue)
std::shared_ptr< Block > | asl::makeBlock (vtkSmartPointer< vtkImageData > image)
template<typename T >
vtkSmartPointer< vtkDataArray > | asl::castVTKDataArray (std::shared_ptr< T > d, unsigned int np, const std::string &name="")
vtkSmartPointer< vtkImageData > | asl::castVTKData (std::shared_ptr< double > d, const Block &b, const std::string &name="")
template<typename T >
vtkSmartPointer< vtkDataArray > | asl::castVTKDataArray (std::vector< T > &d, unsigned int np, const std::string &name="")
vtkSmartPointer< vtkImageData > | asl::castVTKData (std::vector< double > &d, const Block &b, const std::string &name="")
template<typename T >
AVec< T > | asl::castVTKVector (AVec< T > a, T fill=0)

## Detailed Description

## Function Documentation

## castVTKData() [1/7]

vtkSmartPointer< vtkImageData > asl::castVTKData | ( | const AbstractData & | d,
|  | const std::vector< std::string > & | names = `std::vector< std::string >(0)`
| ) |  |

## castVTKData() [2/7]

vtkSmartPointer< vtkImageData > asl::castVTKData | ( | const Block & | b | ) |

## castVTKData() [3/7]

vtkSmartPointer< vtkImageData > asl::castVTKData | ( | double * | d,
|  | const Block & | b,
|  | unsigned int | save = `0`,
|  | const std::string & | name = `""`
| ) |  |

## castVTKData() [4/7]

vtkSmartPointer< vtkImageData > asl::castVTKData | ( | double * | d1,
|  | double * | d2,
|  | const Block & | b,
|  | const std::string & | name = `""`
| ) |  |

## castVTKData() [5/7]

vtkSmartPointer< vtkImageData > asl::castVTKData | ( | double * | d1,
|  | double * | d2,
|  | double * | d3,
|  | const Block & | b,
|  | const std::string & | name = `""`
| ) |  |

## castVTKData() [6/7]

vtkSmartPointer< vtkImageData > asl::castVTKData | ( | std::shared_ptr< double > | d,
|  | const Block & | b,
|  | const std::string & | name = `""`
| ) |  |

inline

Definition at line 141 of file aslVTKCasters.h.

## castVTKData() [7/7]

vtkSmartPointer< vtkImageData > asl::castVTKData | ( | std::vector< double > & | d,
|  | const Block & | b,
|  | const std::string & | name = `""`
| ) |  |

inline

Definition at line 157 of file aslVTKCasters.h.

## castVTKDataArray() [1/6]

vtkSmartPointer< vtkDataArray > asl::castVTKDataArray | ( | acl::Element | source,
|  | const std::string & | name = `""`
| ) |  |

## castVTKDataArray() [2/6]

template<typename T >

vtkSmartPointer< vtkDataArray > asl::castVTKDataArray | ( | std::shared_ptr< T > | d,
|  | unsigned int | np,
|  | const std::string & | name = `""`
| ) |  |

inline

Definition at line 134 of file aslVTKCasters.h.

## castVTKDataArray() [3/6]

template<typename T >

vtkSmartPointer< vtkDataArray > asl::castVTKDataArray | ( | std::vector< T > & | d,
|  | unsigned int | np,
|  | const std::string & | name = `""`
| ) |  |

inline

Definition at line 149 of file aslVTKCasters.h.

## castVTKDataArray() [4/6]

template<typename T >

vtkSmartPointer< vtkDataArray > asl::castVTKDataArray | ( | T * | d,
|  | unsigned int | np,
|  | unsigned int | save = `0`,
|  | const std::string & | name = `""`
| ) |  |

creates VTKDataArray with 1 component `d` and length `np` and `name`

## castVTKDataArray() [5/6]

template<typename T >

vtkSmartPointer< vtkDataArray > asl::castVTKDataArray | ( | T * | d1,
|  | T * | d2,
|  | T * | d3,
|  | unsigned int | np,
|  | const std::string & | name = `""`
| ) |  |

creates VTKDataArray with 3 component `d1`, `d2` and `d3` and length `np` and `name`

## castVTKDataArray() [6/6]

template<typename T >

vtkSmartPointer< vtkDataArray > asl::castVTKDataArray | ( | T * | d1,
|  | T * | d2,
|  | unsigned int | np,
|  | const std::string & | name = `""`
| ) |  |

creates VTKDataArray with 2 component `d1` and `d2` and length `np` and `name`

## castVTKDataArray2in3()

template<typename T >

vtkSmartPointer< vtkDataArray > asl::castVTKDataArray2in3 | ( | T * | d1,
|  | T * | d2,
|  | unsigned int | np,
|  | const std::string & | name
| ) |  |

creates VTKDataArray with 3 component `d2`, `d1` and 0 and length `np` and `name`

## castVTKIdTypeArray()

vtkSmartPointer< vtkIdTypeArray > asl::castVTKIdTypeArray | ( | unsigned int * | d0,
|  | unsigned int * | d1,
|  | unsigned int * | d2,
|  | unsigned int * | d3,
|  | unsigned int | np,
|  | const std::string & | name = `""`
| ) |  |

creates VTKDataArray with 3 component `d1`, `d2` and `d3` and length `np` and `name`

## castVTKVector()

template<typename T >

AVec< T > asl::castVTKVector | ( | AVec< T > | a,
|  | T | fill = `0`
| ) |  |

## makeBlock()

std::shared_ptr< Block > asl::makeBlock | ( | vtkSmartPointer< vtkImageData > | image | ) |

## makeData()

SPDataWithGhostNodesACLData asl::makeData | ( | vtkSmartPointer< vtkImageData > | image,
|  | unsigned int | arrayNum = `0`,
|  | acl::CommandQueue | queue = `acl::hardware.defaultQueue`
| ) |  |

## putToVTKData() [1/3]

void asl::putToVTKData | ( | double * | d,
|  | vtkSmartPointer< vtkImageData > | target
| ) |  |

## putToVTKData() [2/3]

void asl::putToVTKData | ( | double * | d1,
|  | double * | d2,
|  | double * | d3,
|  | vtkSmartPointer< vtkImageData > | target
| ) |  |

## putToVTKData() [3/3]

void asl::putToVTKData | ( | double * | d1,
|  | double * | d2,
|  | vtkSmartPointer< vtkImageData > | target
| ) |  |

## updateVTKDataArray() [1/2]

void asl::updateVTKDataArray | ( | acl::Element | source,
|  | const std::string & | name,
|  | vtkSmartPointer< vtkImageData > | vtkData
| ) |  |

## updateVTKDataArray() [2/2]

void asl::updateVTKDataArray | ( | acl::Element | source,
|  | vtkSmartPointer< vtkDataArray > | vtkData
| ) |  |