7 #ifndef __FWVTKIO_VTK_HPP__ 8 #define __FWVTKIO_VTK_HPP__ 10 #include "fwVtkIO/config.hpp" 12 #include <fwData/Image.hpp> 13 #include <fwData/TransformationMatrix3D.hpp> 15 #include <vtkSmartPointer.h> 30 typedef std::map< ::fwTools::Type, int> fwToolsToVtkMap;
31 typedef std::map< int, ::fwTools::Type> VtkTofwToolsMap;
33 FWVTKIO_API
static fwToolsToVtkMap::mapped_type translate(
const fwToolsToVtkMap::key_type& key );
34 FWVTKIO_API
static VtkTofwToolsMap::mapped_type translate(
const VtkTofwToolsMap::key_type& key );
36 static const fwToolsToVtkMap s_toVtk;
37 static const VtkTofwToolsMap s_fromVtk;
47 FWVTKIO_API
int getVtkScalarType(::fwData::Image::sptr image);
59 FWVTKIO_API
void toVTKImage( ::fwData::Image::csptr _data, vtkImageData* dst);
69 FWVTKIO_API
void fromVTKImage( vtkImageData* _source, ::fwData::Image::sptr _destination );
77 FWVTKIO_API
void configureVTKImageImport( ::vtkImageImport* _pImageImport, ::fwData::Image::csptr _pDataImage );
85 FWVTKIO_API vtkSmartPointer<vtkMatrix4x4> toVTKMatrix( ::fwData::TransformationMatrix3D::csptr _transfoMatrix );
96 FWVTKIO_API
bool fromVTKMatrix( vtkMatrix4x4* _matrix, ::fwData::TransformationMatrix3D::sptr _transfoMatrix);
100 #endif // __FWVTKIO_VTK_HPP__