Mercurial > hg > orthanc-webviewer
diff Orthanc/Core/Enumerations.cpp @ 129:2c73a785c08e
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 14 May 2016 16:39:55 +0200 |
parents | e8cfda4c8a2f |
children | 3251ec958a29 |
line wrap: on
line diff
--- a/Orthanc/Core/Enumerations.cpp Fri Apr 15 21:44:03 2016 +0200 +++ b/Orthanc/Core/Enumerations.cpp Sat May 14 16:39:55 2016 +0200 @@ -37,6 +37,7 @@ #include "Toolbox.h" #include <string.h> +#include <cassert> namespace Orthanc { @@ -328,6 +329,9 @@ case ErrorCode_NoWorklistHandler: return "No request handler factory for DICOM C-Find Modality SCP"; + case ErrorCode_AlreadyExistingTag: + return "Cannot override the value of a tag that already exists"; + default: if (error >= ErrorCode_START_PLUGINS) { @@ -737,6 +741,9 @@ case PixelFormat_SignedGrayscale16: return "Grayscale (signed 16bpp)"; + case PixelFormat_Float32: + return "Grayscale (float 32bpp)"; + default: throw OrthancException(ErrorCode_ParameterOutOfRange); } @@ -910,6 +917,10 @@ case PixelFormat_RGBA32: return 4; + case PixelFormat_Float32: + assert(sizeof(float) == 4); + return 4; + default: throw OrthancException(ErrorCode_ParameterOutOfRange); }