Medical Imaging Interaction Toolkit  2018.4.99-b5518f0d
Medical Imaging Interaction Toolkit
mitkIpTypes.h
Go to the documentation of this file.
1 /*============================================================================
2 
3  Copyright (c) German Cancer Research Center (DKFZ)
4  All rights reserved.
5 
6  Redistribution and use in source and binary forms, with or without
7  modification, are permitted provided that the following conditions are met:
8 
9  - Redistributions of source code must retain the above copyright notice, this
10  list of conditions and the following disclaimer.
11 
12  - Redistributions in binary form must reproduce the above copyright notice,
13  this list of conditions and the following disclaimer in the documentation
14  and/or other materials provided with the distribution.
15 
16  - All advertising materials mentioning features or use of this software must
17  display the following acknowledgement:
18 
19  "This product includes software developed by the German Cancer Research
20  Center (DKFZ)."
21 
22  - Neither the name of the German Cancer Research Center (DKFZ) nor the names
23  of its contributors may be used to endorse or promote products derived from
24  this software without specific prior written permission.
25 
26  THIS SOFTWARE IS PROVIDED BY THE GERMAN CANCER RESEARCH CENTER (DKFZ) AND
27  CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
28  BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
29  FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE GERMAN
30  CANCER RESEARCH CENTER (DKFZ) OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
31  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
33  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
34  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
37  DAMAGE.
38 
39 ============================================================================*/
40 
41 
42 /*
43  * $RCSfile$
44  *--------------------------------------------------------------------
45  * DESCRIPTION
46  * defines the ipTypes
47  *
48  *--------------------------------------------------------------------
49  */
50 
51 #ifndef _mitkIpTypes_h
52 #define _mitkIpTypes_h
53 
54 #if defined (__mips) || (_IBMR2) || (sun) || (__i386__) || (__convex__) || (__alpha) || (__hppa) || (WIN32) || (_WIN32) || defined (__PPC__) || defined (__x86_64__) || defined (__APPLE__)
55  typedef signed char mitkIpInt1_t;
56  typedef signed short mitkIpInt2_t;
57  typedef signed int mitkIpInt4_t;
58  typedef unsigned char mitkIpUInt1_t;
59  typedef unsigned short mitkIpUInt2_t;
60  typedef unsigned int mitkIpUInt4_t;
61  typedef float mitkIpFloat4_t;
62  typedef double mitkIpFloat8_t;
63 #endif
64 
65 #ifdef DOS
66  typedef signed char mitkIpInt1_t;
67  typedef signed int mitkIpInt2_t;
68  typedef signed long int mitkIpInt4_t;
69  typedef unsigned char mitkIpUInt1_t;
70  typedef unsigned int mitkIpUInt2_t;
71  typedef unsigned long int mitkIpUInt4_t;
72  typedef float mitkIpFloat4_t;
73  typedef double mitkIpFloat8_t;
74 #endif
75 
76 /*
77 ** this boolean is NOT a 1 bit value !!!
78 ** it is NOT intended for 1 bit images !!!
79 */
80 typedef enum
81  { mitkIpFalse = 0,
83  } mitkIpBool_t;
84 
85 typedef enum
86  {
87  mitkIpError = -1, /* general error */
88  mitkIpOK = 0, /* no error */
89  mitkIpEDIM = 1000 /* wrong number of dimensions */
90  } mitkIpError_t;
91 
92 
93 typedef enum
94  {
99 
100 typedef enum
101  {
119  } mitkIpType_t;
120 
121 #endif /* _mitkIpTypes_h */
122 /* DON'T ADD ANYTHING AFTER THIS #endif */
mitkIpError_t
Definition: mitkIpTypes.h:85
mitkIpType_t
Definition: mitkIpTypes.h:100
mitkIpBool_t
Definition: mitkIpTypes.h:80
_mitkIpEndian_t
Definition: mitkIpTypes.h:93