changeset 1850:ae9ce78c1382

Added some comments, replaced world_indices with per-dimension world_index
author bert <bert>
date Tue, 03 Aug 2004 21:51:54 +0000
parents 1866b41e95d4
children 84acd38a53d8
files libsrc2/minc2_private.h
diffstat 1 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/libsrc2/minc2_private.h
+++ b/libsrc2/minc2_private.h
@@ -62,20 +62,21 @@
  * Dimension handle  
  */
 struct midimension {
-  midimattr_t attr;
-  midimclass_t class;
-  double direction_cosines[3];
+  midimattr_t attr;             /* Dimension attributes */
+  midimclass_t class;           /* Dimension class */
+  double direction_cosines[3];  /* Direction cosines */
   miflipping_t flipping_order;
-  char *name;
-  double *offsets;
-  double step;
-  unsigned long length;
-  double start;
-  char *units;
-  double width; 
-  double *widths;
-  char *comments;
-  mihandle_t volume_handle;
+  char *name;                   /* Dimension name */
+  double *offsets;              /* Offsets (if irregular) */
+  double step;                  /* Step size */
+  unsigned long length;         /* Length */
+  double start;                 /* Start value */
+  char *units;                  /* Units string */
+  double width;                 /* Sample width (if regular) */
+  double *widths;               /* Widths (if irregular) */
+  char *comments;               /* Comment string */
+  mihandle_t volume_handle;     /* Handle of associated volume */
+  short world_index;            /* -1, MI2_X, MI2_Y, or MI2_Z */
 };
 
 /** \internal
@@ -86,7 +87,6 @@
   BOOLEAN has_slice_scaling;
   int number_of_dims;
   midimhandle_t *dim_handles;   /* file order of dimensions */
-  short *world_indices;         /* conversion from voxel to world order */
   int *dim_indices;             /* apparent order of dimensions */
   mitype_t volume_type;
   miclass_t volume_class;