Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

thd.h File Reference

#include "mcw_malloc.h"

Go to the source code of this file.


Defines

#define EXIT   exit
#define THD_FATAL_ERROR(str)   { fprintf(stderr,"\a\n*** FATAL INTERNAL ERROR: %s\n",str);sleep(1);EXIT(1); }
#define ATR_ALLINC   8
#define DSET_ERR(str)   {fprintf(stderr,"\n*** DATASET error: %s\n",str);dset_ok=False;}
#define DSET_ERRN(str, val)   {fprintf(stderr,"\n*** DATASET error: %s (%f)\n",str,(float)(val));dset_ok=False;}
#define DSET_WARN(str)   {fprintf(stderr,"\n*** DATASET warning: %s\n",str);}
#define WRITE_ERR(str)   { fprintf(stderr,"*** Datablock write error: %s\n",str); return False; }
#define ORCODE(aa)
#define OR3OK(x, y, z)   ( ((x)&6) + ((y)&6) + ((z)&6) == 6 )
#define XLAB(xl, xv)   ((xl) = ((xv)==0.0) ? (ZZ) : ( ((xv)<0.0) ? (RR) : (LL) ))
#define YLAB(yl, yv)   ((yl) = ((yv)==0.0) ? (ZZ) : ( ((yv)<0.0) ? (AA) : (PP) ))
#define ZLAB(zl, zv)   ((zl) = ((zv)==0.0) ? (ZZ) : ( ((zv)<0.0) ? (II) : (SS) ))
#define FSWAP(x, y)   (tf=(x),(x)=(y),(y)=tf)

Define Documentation

#define ATR_ALLINC   8
 

Definition at line 17 of file thd.h.

Referenced by THD_read_all_atr(), and THD_set_atr().

#define DSET_ERR str       {fprintf(stderr,"\n*** DATASET error: %s\n",str);dset_ok=False;}
 

Definition at line 19 of file thd.h.

Referenced by THD_3dim_from_block(), and THD_array_3dim_from_block().

#define DSET_ERRN str,
val       {fprintf(stderr,"\n*** DATASET error: %s (%f)\n",str,(float)(val));dset_ok=False;}
 

Definition at line 22 of file thd.h.

Referenced by THD_3dim_from_block().

#define DSET_WARN str       {fprintf(stderr,"\n*** DATASET warning: %s\n",str);}
 

Definition at line 25 of file thd.h.

Referenced by THD_array_3dim_from_block().

#define EXIT   exit
 

Definition at line 11 of file thd.h.

#define FSWAP x,
y       (tf=(x),(x)=(y),(y)=tf)
 

Definition at line 45 of file thd.h.

#define OR3OK x,
y,
z       ( ((x)&6) + ((y)&6) + ((z)&6) == 6 )
 

Definition at line 39 of file thd.h.

#define ORCODE aa   
 

Value:

( ((aa)=='R'||(aa)=='r') ? ORI_R2L_TYPE  \
   :((aa)=='L'||(aa)=='l') ? ORI_L2R_TYPE  \
   :((aa)=='P'||(aa)=='p') ? ORI_P2A_TYPE  \
   :((aa)=='A'||(aa)=='a') ? ORI_A2P_TYPE  \
   :((aa)=='I'||(aa)=='i') ? ORI_I2S_TYPE  \
   :((aa)=='S'||(aa)=='s') ? ORI_S2I_TYPE : ILLEGAL_TYPE )

Definition at line 31 of file thd.h.

#define THD_FATAL_ERROR str       { fprintf(stderr,"\a\n*** FATAL INTERNAL ERROR: %s\n",str);sleep(1);EXIT(1); }
 

Definition at line 14 of file thd.h.

Referenced by DBLE_mat_to_dicomm(), SNGL_mat_to_dicomm(), THD_3dim_from_block(), THD_3dmm_to_dicomm(), THD_dicomm_to_3dmm(), THD_find_atr(), THD_read_all_atr(), THD_set_atr(), and THD_setup_bricks().

#define WRITE_ERR str       { fprintf(stderr,"*** Datablock write error: %s\n",str); return False; }
 

Definition at line 28 of file thd.h.

Referenced by THD_write_datablock().

#define XLAB xl,
xv       ((xl) = ((xv)==0.0) ? (ZZ) : ( ((xv)<0.0) ? (RR) : (LL) ))
 

Definition at line 41 of file thd.h.

#define YLAB yl,
yv       ((yl) = ((yv)==0.0) ? (ZZ) : ( ((yv)<0.0) ? (AA) : (PP) ))
 

Definition at line 42 of file thd.h.

#define ZLAB zl,
zv       ((zl) = ((zv)==0.0) ? (ZZ) : ( ((zv)<0.0) ? (II) : (SS) ))
 

Definition at line 43 of file thd.h.

 

Powered by Plone

This site conforms to the following standards: