]> Creatis software - crea.git/commitdiff
#3254 crea Feature New Normal - pointer declaration set get value voxel macro
authorEduardo DAVILA <davila@ei-ed-606.creatis.insa-lyon.fr>
Thu, 2 May 2019 14:18:48 +0000 (16:18 +0200)
committerEduardo DAVILA <davila@ei-ed-606.creatis.insa-lyon.fr>
Thu, 2 May 2019 14:18:48 +0000 (16:18 +0200)
src/creaVtk_MACROS.h

index 07cbc89950a4d32e96a95b0a4509b34e24392395..fd3ceeb9941c1d1e090cc9be0cdf0c21f6d2971f 100644 (file)
 namespace crea
 {
 
+#define DEF_POINTER_IMAGE_VTK_CREA_difinition(VALUE,SCALARSIZE,POINTERIMAGE,SCALARTYPE)                                                \
+       double  VALUE                   ;                                                                                                                                                               \
+       int     SCALARSIZE              ;                                                                                                                                                               \
+       char    *POINTERIMAGE   ;                                                                                                                                                               \
+       int             SCALARTYPE              ;                               
+
+#define DEF_POINTER_IMAGE_VTK_CREA_set(VALUE,SCALARSIZE,POINTERIMAGE,SCALARTYPE,VTKIMAGE)                                      \
+                       VALUE                   = 0;                                                                                                                                                    \
+                       SCALARSIZE              = VTKIMAGE->GetScalarSize();                                                                                                    \
+                       POINTERIMAGE    = (char*)(VTKIMAGE->GetScalarPointer());                                                                                \
+                       SCALARTYPE              = VTKIMAGE->GetScalarType();                            
+
+
 #define DEF_POINTER_IMAGE_VTK_CREA(VALUE,SCALARSIZE,POINTERIMAGE,SCALARTYPE,VTKIMAGE)                                          \
        double  VALUE                   = 0;                                                                                                                                                    \
        int     SCALARSIZE              = VTKIMAGE->GetScalarSize();                                                                                                    \