Mercurial > hg > orthanc-stone
changeset 1385:ffe9beb7c5d3
Added LoadInstanceFullVisibility for default-visible RTSTRUCT
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 27 Apr 2020 16:47:46 +0200 |
parents | 24bcff8ea58f |
children | dfb48f0794b1 |
files | Framework/Loaders/DicomStructureSetLoader.cpp Framework/Loaders/DicomStructureSetLoader.h Framework/Loaders/GenericLoadersContext.h Framework/StoneException.h |
diffstat | 4 files changed, 13 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/Loaders/DicomStructureSetLoader.cpp Mon Apr 27 10:01:48 2020 +0200 +++ b/Framework/Loaders/DicomStructureSetLoader.cpp Mon Apr 27 16:47:46 2020 +0200 @@ -392,6 +392,12 @@ } } + void DicomStructureSetLoader::LoadInstanceFullVisibility(const std::string& instanceId) + { + std::vector<std::string> initiallyVisibleStructures; + initiallyVisibleStructures.push_back("*"); // wildcard to make all structure sets visible + LoadInstance(instanceId, initiallyVisibleStructures); + } OrthancStone::IVolumeSlicer::IExtractedSlice* DicomStructureSetLoader::ExtractSlice(const OrthancStone::CoordinateSystem3D& cuttingPlane) {
--- a/Framework/Loaders/DicomStructureSetLoader.h Mon Apr 27 10:01:48 2020 +0200 +++ b/Framework/Loaders/DicomStructureSetLoader.h Mon Apr 27 16:47:46 2020 +0200 @@ -97,6 +97,9 @@ void LoadInstance(const std::string& instanceId, const std::vector<std::string>& initiallyVisibleStructures = std::vector<std::string>()); + void LoadInstanceFullVisibility(const std::string& instanceId); + + virtual IExtractedSlice* ExtractSlice(const OrthancStone::CoordinateSystem3D& cuttingPlane) ORTHANC_OVERRIDE; void SetStructuresReady();
--- a/Framework/Loaders/GenericLoadersContext.h Mon Apr 27 10:01:48 2020 +0200 +++ b/Framework/Loaders/GenericLoadersContext.h Mon Apr 27 16:47:46 2020 +0200 @@ -18,7 +18,6 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. **/ - #pragma once #include "../Messages/IMessageEmitter.h"
--- a/Framework/StoneException.h Mon Apr 27 10:01:48 2020 +0200 +++ b/Framework/StoneException.h Mon Apr 27 16:47:46 2020 +0200 @@ -21,11 +21,13 @@ #pragma once -#include "Core/OrthancException.h" #include "Toolbox/LinearAlgebra.h" +#include <Core/OrthancException.h> + +#include <boost/lexical_cast.hpp> + #include <iostream> -#include <boost/lexical_cast.hpp> namespace OrthancStone {