Mercurial > hg > orthanc-stone
diff Framework/Widgets/LayerWidget.cpp @ 119:ba83e38cf3ff wasm
rendering of rt-dose
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Oct 2017 22:01:41 +0200 |
parents | 2eca030792aa |
children | e66b2c757790 |
line wrap: on
line diff
--- a/Framework/Widgets/LayerWidget.cpp Mon Oct 02 14:31:26 2017 +0200 +++ b/Framework/Widgets/LayerWidget.cpp Mon Oct 02 22:01:41 2017 +0200 @@ -350,6 +350,18 @@ } + const RenderStyle& LayerWidget::GetLayerStyle(size_t layer) const + { + if (layer >= layers_.size()) + { + throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); + } + + assert(layers_.size() == styles_.size()); + return styles_[layer]; + } + + void LayerWidget::SetLayerStyle(size_t layer, const RenderStyle& style) {