Mercurial > hg > orthanc-webviewer
comparison 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 |
comparison
equal
deleted
inserted
replaced
128:e8cfda4c8a2f | 129:2c73a785c08e |
---|---|
35 | 35 |
36 #include "OrthancException.h" | 36 #include "OrthancException.h" |
37 #include "Toolbox.h" | 37 #include "Toolbox.h" |
38 | 38 |
39 #include <string.h> | 39 #include <string.h> |
40 #include <cassert> | |
40 | 41 |
41 namespace Orthanc | 42 namespace Orthanc |
42 { | 43 { |
43 // This function is autogenerated by the script | 44 // This function is autogenerated by the script |
44 // "Resources/GenerateErrorCodes.py" | 45 // "Resources/GenerateErrorCodes.py" |
325 case ErrorCode_CannotOrderSlices: | 326 case ErrorCode_CannotOrderSlices: |
326 return "Unable to order the slices of the series"; | 327 return "Unable to order the slices of the series"; |
327 | 328 |
328 case ErrorCode_NoWorklistHandler: | 329 case ErrorCode_NoWorklistHandler: |
329 return "No request handler factory for DICOM C-Find Modality SCP"; | 330 return "No request handler factory for DICOM C-Find Modality SCP"; |
331 | |
332 case ErrorCode_AlreadyExistingTag: | |
333 return "Cannot override the value of a tag that already exists"; | |
330 | 334 |
331 default: | 335 default: |
332 if (error >= ErrorCode_START_PLUGINS) | 336 if (error >= ErrorCode_START_PLUGINS) |
333 { | 337 { |
334 return "Error encountered within some plugin"; | 338 return "Error encountered within some plugin"; |
735 return "Grayscale (unsigned 16bpp)"; | 739 return "Grayscale (unsigned 16bpp)"; |
736 | 740 |
737 case PixelFormat_SignedGrayscale16: | 741 case PixelFormat_SignedGrayscale16: |
738 return "Grayscale (signed 16bpp)"; | 742 return "Grayscale (signed 16bpp)"; |
739 | 743 |
744 case PixelFormat_Float32: | |
745 return "Grayscale (float 32bpp)"; | |
746 | |
740 default: | 747 default: |
741 throw OrthancException(ErrorCode_ParameterOutOfRange); | 748 throw OrthancException(ErrorCode_ParameterOutOfRange); |
742 } | 749 } |
743 } | 750 } |
744 | 751 |
906 | 913 |
907 case PixelFormat_RGB24: | 914 case PixelFormat_RGB24: |
908 return 3; | 915 return 3; |
909 | 916 |
910 case PixelFormat_RGBA32: | 917 case PixelFormat_RGBA32: |
918 return 4; | |
919 | |
920 case PixelFormat_Float32: | |
921 assert(sizeof(float) == 4); | |
911 return 4; | 922 return 4; |
912 | 923 |
913 default: | 924 default: |
914 throw OrthancException(ErrorCode_ParameterOutOfRange); | 925 throw OrthancException(ErrorCode_ParameterOutOfRange); |
915 } | 926 } |