orientation.hh
Go to the documentation of this file.
1 /* -*- mia-c++ -*-
2  *
3  * This file is part of MIA - a toolbox for medical image analysis
4  * Copyright (c) Leipzig, Madrid 1999-2013 Gert Wollny
5  *
6  * MIA is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with MIA; if not, see <http://www.gnu.org/licenses/>.
18  *
19  */
20 
21 #ifndef __mia_3d_oriantation_hh
22 #define __mia_3d_oriantation_hh
23 
24 #include <ostream>
25 #include <istream>
26 
27 #include <mia/core/attributes.hh>
28 #include <mia/3d/defines3d.hh>
29 
30 
31 
33 
42 };
43 
69 };
70 
71 
73 
81 EXPORT_3D std::ostream& operator << (std::ostream& os, E3DImageOrientation orient);
82 
90 EXPORT_3D std::istream& operator >> (std::istream& is, E3DImageOrientation& orient);
91 
92 
100 EXPORT_3D std::ostream& operator << (std::ostream& os, E3DPatientPositioning pp);
101 
109 EXPORT_3D std::istream& operator >> (std::istream& is, E3DPatientPositioning& pp);
110 
116 
122 
128 
134 
135 extern EXPORT_3D const char * IDPatientPosition;
136 
138 
139 #endif
Generic string vs. attribute translator singleton.
Definition: attributes.hh:467
TAttribute< E3DPatientPositioning > CPatientPositionAttribute
attribute for the patient position
Definition: orientation.hh:127
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
Definition: defines.hh:43
#define EXPORT_3D
Definition: defines3d.hh:44
const TDictMap< E3DPatientPositioning > g_patient_position_map
E3DImageOrientation
Definition: orientation.hh:38
EXPORT_3D const char * IDPatientPosition
E3DPatientPositioning
Definition: orientation.hh:58
std::istream & operator>>(std::istream &is, T2DVector< T > &a)
Definition: 2d/vector.hh:283
TTranslator< E3DPatientPositioning > CPatientPositionTranslator
translator for the patient position
Definition: orientation.hh:133
TAttribute< E3DImageOrientation > C3DImageOrientation
attribute for 3D image orientation
Definition: orientation.hh:115
std::ostream & operator<<(std::ostream &os, const CAttribute &attr)
Definition: attributes.hh:82
TTranslator< E3DImageOrientation > COrientationTranslator
translator for 3D image orientations to and from strings
Definition: orientation.hh:121
A mapper from emums to string values. - usefull for names flags.
Definition: dictmap.hh:45
Class of an attribute that holds data of type T.
Definition: attributes.hh:121
#define NS_MIA_END
conveniance define to end the mia namespace
Definition: defines.hh:46