# HG changeset patch # User Benjamin Golinvaux # Date 1587998866 -7200 # Node ID ffe9beb7c5d3eeb99d0bb52a4a7b0f2f023f79ca # Parent 24bcff8ea58f4c1ca37c98207995bb60f75cff18 Added LoadInstanceFullVisibility for default-visible RTSTRUCT diff -r 24bcff8ea58f -r ffe9beb7c5d3 Framework/Loaders/DicomStructureSetLoader.cpp --- 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 initiallyVisibleStructures; + initiallyVisibleStructures.push_back("*"); // wildcard to make all structure sets visible + LoadInstance(instanceId, initiallyVisibleStructures); + } OrthancStone::IVolumeSlicer::IExtractedSlice* DicomStructureSetLoader::ExtractSlice(const OrthancStone::CoordinateSystem3D& cuttingPlane) { diff -r 24bcff8ea58f -r ffe9beb7c5d3 Framework/Loaders/DicomStructureSetLoader.h --- 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& initiallyVisibleStructures = std::vector()); + void LoadInstanceFullVisibility(const std::string& instanceId); + + virtual IExtractedSlice* ExtractSlice(const OrthancStone::CoordinateSystem3D& cuttingPlane) ORTHANC_OVERRIDE; void SetStructuresReady(); diff -r 24bcff8ea58f -r ffe9beb7c5d3 Framework/Loaders/GenericLoadersContext.h --- 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 . **/ - #pragma once #include "../Messages/IMessageEmitter.h" diff -r 24bcff8ea58f -r ffe9beb7c5d3 Framework/StoneException.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 + +#include + #include -#include namespace OrthancStone {