comparison Plugins/Samples/GdcmDecoder/OrthancImageWrapper.cpp @ 1842:697ae8d0e287

better handling of ordered-slices
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Nov 2015 13:16:52 +0100
parents 859224214616
children b1291df2f780
comparison
equal deleted inserted replaced
1841:5d8134e54c03 1842:697ae8d0e287
41 OrthancImageWrapper::OrthancImageWrapper(OrthancPluginContext* context, 41 OrthancImageWrapper::OrthancImageWrapper(OrthancPluginContext* context,
42 OrthancPluginImage* image) : 42 OrthancPluginImage* image) :
43 context_(context), 43 context_(context),
44 image_(image) 44 image_(image)
45 { 45 {
46 if (image_ == NULL)
47 {
48 throw std::runtime_error("Invalid image returned by the core of Orthanc");
49 }
46 } 50 }
47 51
48 52
49 53
50 OrthancImageWrapper::~OrthancImageWrapper() 54 OrthancImageWrapper::~OrthancImageWrapper()