gdcmOrientation.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMORIENTATION_H
#define GDCMORIENTATION_H
#include "gdcmTypes.h"
namespace gdcm
{
class GDCM_EXPORT Orientation
{
friend std::ostream& operator<<(std::ostream &_os, const Orientation &o);
public:
Orientation();
~Orientation() = default;
void Print(std::ostream &) const;
typedef enum {
UNKNOWN,
AXIAL,
CORONAL,
SAGITTAL,
OBLIQUE
} OrientationType;
static OrientationType GetType(const double dircos[6]);
static void SetObliquityThresholdCosineValue(double val);
static double GetObliquityThresholdCosineValue();
static const char *GetLabel(OrientationType type);
protected:
static char GetMajorAxisFromPatientRelativeDirectionCosine(double x, double y, double z);
private:
static double ObliquityThresholdCosineValue;
};
//-----------------------------------------------------------------------------
inline std::ostream& operator<<(std::ostream &os, const Orientation &o)
{
o.Print( os );
return os;
}
} // end namespace gdcm
#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