X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaVtk.h;h=69435b627f525b8350d68c2041099b8b9e5c380b;hb=aea7a7a670afd36baafabc8f924902551f852006;hp=175769e57b8f0cfc122866e2a75dba4583d15b9a;hpb=6aa75781acefe70179e26b1d5573e00c493fe0e7;p=crea.git diff --git a/src/creaVtk.h b/src/creaVtk.h index 175769e..69435b6 100644 --- a/src/creaVtk.h +++ b/src/creaVtk.h @@ -3,21 +3,25 @@ #ifdef USE_VTK -#include +#include "creaSystem.h" #include namespace crea { - template - vtkImageData* CREA_EXPORT NewVtkImageDataFromRaw( T* data, - size_t size); + CREA_EXPORT vtkImageData* NewVtkImageDataFromRaw( T* data, + int nx, + int ny, + int nz, + bool do_not_desalloc = true); + /* + // Already provided by vtkTypeTraits::VTKTypeID() template - vtkIdType GetVtkIdType(T&) { return VTK_VOID; } + int GetVtkType(T&) { return VTK_VOID; } #define SPECIALIZE_GETVTKIDTYPE(T,R) \ - template <> vtkIdType GetVtkIdType(T&) { return R; } + template <> int GetVtkType(T&) { return R; } SPECIALIZE_GETVTKIDTYPE(char,VTK_CHAR) SPECIALIZE_GETVTKIDTYPE(signed char,VTK_SIGNED_CHAR) @@ -32,9 +36,10 @@ namespace crea SPECIALIZE_GETVTKIDTYPE(double,VTK_DOUBLE) #undef SPECIALIZE_GETVTKIDTYPE + */ } -#include +#include "creaVtk.txx" #endif // USE_VTK