GDCM 3.0.24
gdcmOrientation.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMORIENTATION_H
15#define GDCMORIENTATION_H
16
17#include "gdcmTypes.h"
18
19namespace gdcm
20{
21
26{
27 friend std::ostream& operator<<(std::ostream &_os, const Orientation &o);
28public:
30 ~Orientation() = default;
31
33 void Print(std::ostream &) const;
34
35 typedef enum {
40 OBLIQUE
41 } OrientationType;
42
45 static OrientationType GetType(const double dircos[6]);
46
48 static void SetObliquityThresholdCosineValue(double val);
50
52 static const char *GetLabel(OrientationType type);
53
54protected:
55 static char GetMajorAxisFromPatientRelativeDirectionCosine(double x, double y, double z);
56
57private:
58 static double ObliquityThresholdCosineValue;
59};
60//-----------------------------------------------------------------------------
61inline std::ostream& operator<<(std::ostream &os, const Orientation &o)
62{
63 o.Print( os );
64 return os;
65}
66
67} // end namespace gdcm
68
69#endif //GDCMORIENTATION_H
class to handle Orientation
Definition gdcmOrientation.h:26
static OrientationType GetType(const double dircos[6])
static const char * GetLabel(OrientationType type)
Return the label of an Orientation.
void Print(std::ostream &) const
Print.
static void SetObliquityThresholdCosineValue(double val)
ObliquityThresholdCosineValue stuff.
static double GetObliquityThresholdCosineValue()
OrientationType
Definition gdcmOrientation.h:35
@ CORONAL
Definition gdcmOrientation.h:38
@ SAGITTAL
Definition gdcmOrientation.h:39
@ AXIAL
Definition gdcmOrientation.h:37
@ UNKNOWN
Definition gdcmOrientation.h:36
~Orientation()=default
static char GetMajorAxisFromPatientRelativeDirectionCosine(double x, double y, double z)
#define GDCM_EXPORT
Definition gdcmWin32.h:34
Definition gdcmASN1.h:21
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition gdcmDirectory.h:88