GDCM: gdcmOrientation.h Source File

GDCM 3.2.5

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
25 class GDCM_EXPORT Orientation
26{
27 friend std::ostream& operator<<(std::ostream &_os, const Orientation &o);
28public:
29 Orientation();
30 ~Orientation() = default;
31
33 void Print(std::ostream &) const;
34
35 typedef enum {
36 UNKNOWN,
37 AXIAL,
38 CORONAL,
39 SAGITTAL,
40 OBLIQUE
41 } OrientationType;
42
45 static OrientationType GetType(const double dircos[6]);
46
48 static void SetObliquityThresholdCosineValue(double val);
49 static double GetObliquityThresholdCosineValue();
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//-----------------------------------------------------------------------------
61 inline 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
gdcm::Orientation::Orientation
Orientation()
gdcm::Orientation::GetType
static OrientationType GetType(const double dircos[6])
gdcm::Orientation::GetLabel
static const char * GetLabel(OrientationType type)
Return the label of an Orientation.
gdcm::Orientation::Print
void Print(std::ostream &) const
Print.
gdcm::Orientation::SetObliquityThresholdCosineValue
static void SetObliquityThresholdCosineValue(double val)
ObliquityThresholdCosineValue stuff.
gdcm::Orientation::operator<<
friend std::ostream & operator<<(std::ostream &_os, const Orientation &o)
Definition gdcmOrientation.h:61
gdcm::Orientation::GetObliquityThresholdCosineValue
static double GetObliquityThresholdCosineValue()
gdcm::Orientation::OrientationType
OrientationType
Definition gdcmOrientation.h:35
gdcm::Orientation::OBLIQUE
@ OBLIQUE
Definition gdcmOrientation.h:40
gdcm::Orientation::CORONAL
@ CORONAL
Definition gdcmOrientation.h:38
gdcm::Orientation::SAGITTAL
@ SAGITTAL
Definition gdcmOrientation.h:39
gdcm::Orientation::AXIAL
@ AXIAL
Definition gdcmOrientation.h:37
gdcm::Orientation::UNKNOWN
@ UNKNOWN
Definition gdcmOrientation.h:36
gdcm::Orientation::~Orientation
~Orientation()=default
gdcm::Orientation::GetMajorAxisFromPatientRelativeDirectionCosine
static char GetMajorAxisFromPatientRelativeDirectionCosine(double x, double y, double z)
gdcmTypes.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21
gdcm::operator<<
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition gdcmDirectory.h:88