Mercurial > hg > orthanc
comparison Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 2048:154f3e73ad3a
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 24 Jun 2016 22:31:01 +0200 |
parents | 438f86ee19fc |
children | 43cd2ab060c7 |
comparison
equal
deleted
inserted
replaced
2047:438f86ee19fc | 2048:154f3e73ad3a |
---|---|
579 throw PluginException(OrthancPluginErrorCode_ParameterOutOfRange); | 579 throw PluginException(OrthancPluginErrorCode_ParameterOutOfRange); |
580 } | 580 } |
581 } | 581 } |
582 | 582 |
583 | 583 |
584 OrthancImage::Image(OrthancPluginContext* context) : | 584 OrthancImage::OrthancImage(OrthancPluginContext* context) : |
585 context_(context), | 585 context_(context), |
586 image_(NULL) | 586 image_(NULL) |
587 { | 587 { |
588 if (context == NULL) | 588 if (context == NULL) |
589 { | 589 { |
590 throw PluginException(OrthancPluginErrorCode_ParameterOutOfRange); | 590 throw PluginException(OrthancPluginErrorCode_ParameterOutOfRange); |
591 } | 591 } |
592 } | 592 } |
593 | 593 |
594 | 594 |
595 OrthancImage::Image(OrthancPluginContext* context, | 595 OrthancImage::OrthancImage(OrthancPluginContext* context, |
596 OrthancPluginImage* image) : | 596 OrthancPluginImage* image) : |
597 context_(context), | 597 context_(context), |
598 image_(image) | 598 image_(image) |
599 { | 599 { |
600 if (context == NULL) | 600 if (context == NULL) |
601 { | 601 { |
602 throw PluginException(OrthancPluginErrorCode_ParameterOutOfRange); | 602 throw PluginException(OrthancPluginErrorCode_ParameterOutOfRange); |
603 } | 603 } |
604 } | 604 } |
605 | 605 |
606 | 606 |
607 OrthancImage::Image(OrthancPluginContext* context, | 607 OrthancImage::OrthancImage(OrthancPluginContext* context, |
608 OrthancPluginPixelFormat format, | 608 OrthancPluginPixelFormat format, |
609 uint32_t width, | 609 uint32_t width, |
610 uint32_t height) : | 610 uint32_t height) : |
611 context_(context) | 611 context_(context) |
612 { | 612 { |
613 if (context == NULL) | 613 if (context == NULL) |
614 { | 614 { |
615 throw PluginException(OrthancPluginErrorCode_ParameterOutOfRange); | 615 throw PluginException(OrthancPluginErrorCode_ParameterOutOfRange); |