SIVIC API  0.9.26
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Static Public Member Functions | List of all members
svkDcmtkUtils Class Reference

#include <svkDcmtkUtils.h>

Static Public Member Functions

static void setValue (DcmItem *item, const DcmTag &tag, const int value, const int pos=0) throw (overflow_error, svkDicomRunTimeError, svkTagNotFound, svkIncompatibleVR)
 
static void setValue (DcmItem *item, const DcmTag &tag, const long int value) throw (svkDicomRunTimeError, svkTagNotFound, svkIncompatibleVR)
 
static void setValue (DcmItem *item, const DcmTag &tag, const float value) throw (svkDicomRunTimeError, svkTagNotFound, svkIncompatibleVR)
 
static void setValue (DcmItem *item, const DcmTag &tag, const double value) throw (overflow_error, svkDicomRunTimeError, svkTagNotFound, svkIncompatibleVR)
 
static void setValue (DcmItem *item, const DcmTag &tag, const string value) throw (svkDicomRunTimeError, svkTagNotFound, svkIncompatibleVR)
 
static int getIntValue (DcmItem *item, const DcmTagKey &tag, const int pos=0) throw (svkDicomRunTimeError, svkTagNotFound, svkIncompatibleVR)
 
static long int getLongIntValue (DcmItem *item, const DcmTagKey &tag, const int pos=0) throw (svkDicomRunTimeError, svkTagNotFound, svkIncompatibleVR)
 
static float getFloatValue (DcmItem *item, const DcmTagKey &tag, int pos=0) throw (overflow_error, svkDicomRunTimeError, svkTagNotFound, svkIncompatibleVR)
 
static double getDoubleValue (DcmItem *item, const DcmTagKey &tag) throw (svkDicomRunTimeError, svkTagNotFound, svkIncompatibleVR)
 
static string getStringValue (DcmItem *item, const DcmTagKey &tag, int pos) throw (svkDicomRunTimeError, svkTagNotFound)
 
static string getStringValue (DcmItem *item, const DcmTagKey &tag) throw (svkDicomRunTimeError, svkTagNotFound)
 

Member Function Documentation

double getDoubleValue ( DcmItem *  item,
const DcmTagKey &  tag 
)
throw (svkDicomRunTimeError,
svkTagNotFound,
svkIncompatibleVR
)
static

applies to values, represented as short, int, integer string, float, double, decimal string.

Exceptions
svkDicomRunTimeError
svkTagNotFound
svkIncompatibleVR

References svk::handleError().

Referenced by svkDcmtkAdapter::GetDoubleSequenceItemElement(), and svkDcmtkIod::getDoubleValue().

float getFloatValue ( DcmItem *  item,
const DcmTagKey &  tag,
int  pos = 0 
)
throw (overflow_error,
svkDicomRunTimeError,
svkTagNotFound,
svkIncompatibleVR
)
static

applies to values, represented as short, int, integer string, float, double, decimal string.

Exceptions
svkDicomRunTimeError
overflow_error
svkTagNotFound
svkIncompatibleVR

References svk::handleError().

Referenced by svkDcmtkAdapter::GetFloatSequenceItemElement(), and svkDcmtkIod::getFloatValue().

int getIntValue ( DcmItem *  item,
const DcmTagKey &  tag,
const int  pos = 0 
)
throw (svkDicomRunTimeError,
svkTagNotFound,
svkIncompatibleVR
)
static

applies to values, represented as short, int, integer string.

Exceptions
svkDicomRunTimeError
svkTagNotFound
svkIncompatibleVR

References svk::handleError().

Referenced by svkDcmtkAdapter::GetIntSequenceItemElement(), and svkDcmtkIod::getIntValue().

long int getLongIntValue ( DcmItem *  item,
const DcmTagKey &  tag,
const int  pos = 0 
)
throw (svkDicomRunTimeError,
svkTagNotFound,
svkIncompatibleVR
)
static

applies to values, represented as short, int, integer string.

Exceptions
svkDicomRunTimeError
svkTagNotFound
svkIncompatibleVR

References svk::handleError().

string getStringValue ( DcmItem *  item,
const DcmTagKey &  tag,
int  pos 
)
throw (svkDicomRunTimeError,
svkTagNotFound
)
static
string getStringValue ( DcmItem *  item,
const DcmTagKey &  tag 
)
throw (svkDicomRunTimeError,
svkTagNotFound
)
static

applies to practically every dicom vr. if vm>1 returns all values, separated by backslashes

Exceptions
svkDicomRunTimeError
svkTagNotFound

References svk::handleError().

void setValue ( DcmItem *  item,
const DcmTag &  tag,
const int  value,
const int  pos = 0 
)
throw (overflow_error,
svkDicomRunTimeError,
svkTagNotFound,
svkIncompatibleVR
)
static

integer and string VRs.

Exceptions
svkDicomRunTimeError
overflow_error
svkTagNotFound
svkIncompatibleVR

References svk::handleError().

Referenced by svkDcmtkAdapter::AddSequenceItemElement(), and svkDcmtkIod::setValue().

void setValue ( DcmItem *  item,
const DcmTag &  tag,
const long int  value 
)
throw (svkDicomRunTimeError,
svkTagNotFound,
svkIncompatibleVR
)
static

applies to float32, float64 and string VRs.

Exceptions
svkDicomRunTimeError
svkTagNotFound
IncomPatibleVR

References svk::handleError().

void setValue ( DcmItem *  item,
const DcmTag &  tag,
const float  value 
)
throw (svkDicomRunTimeError,
svkTagNotFound,
svkIncompatibleVR
)
static

applies to float32, float64 and string VRs.

Exceptions
svkDicomRunTimeError
svkTagNotFound
IncomPatibleVR

References svk::handleError().

void setValue ( DcmItem *  item,
const DcmTag &  tag,
const double  value 
)
throw (overflow_error,
svkDicomRunTimeError,
svkTagNotFound,
svkIncompatibleVR
)
static

applies to float32, float64 and string VRs. for float32 overflow is checked.

Exceptions
svkDicomRunTimeError
overflow_error
svkTagNotFound
IncomPatibleVR

References svk::handleError().

void setValue ( DcmItem *  item,
const DcmTag &  tag,
const string  value 
)
throw (svkDicomRunTimeError,
svkTagNotFound,
svkIncompatibleVR
)
static

applies to practically all non-numerical VRs.

Exceptions
svkDicomRunTimeError
svkTagNotFound
IncomPatibleVR

References svk::handleError().


The documentation for this class was generated from the following files: