Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Loaders/DicomStructureSetLoader.cpp @ 1771:f302bbddf94d
sync, trying to fix DicomVolumeImageReslicer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 12 May 2021 15:09:32 +0200 |
parents | adb59bcb0fc5 |
children | a03260db8835 |
line wrap: on
line diff
--- a/OrthancStone/Sources/Loaders/DicomStructureSetLoader.cpp Wed May 12 10:53:37 2021 +0200 +++ b/OrthancStone/Sources/Loaders/DicomStructureSetLoader.cpp Wed May 12 15:09:32 2021 +0200 @@ -343,6 +343,24 @@ std::unique_ptr<PolylineSceneLayer> layer(new PolylineSceneLayer); layer->SetThickness(2); +#if 0 + // For testing - This displays a cross at the origin of the 3D + // cutting plane in the 2D viewport + { + PolylineSceneLayer::Chain chain; + chain.push_back(ScenePoint2D(-100, 0)); + chain.push_back(ScenePoint2D(100, 0)); + layer->AddChain(chain, false, Color(255, 0, 0)); + } + + { + PolylineSceneLayer::Chain chain; + chain.push_back(ScenePoint2D(0, -100)); + chain.push_back(ScenePoint2D(0, 100)); + layer->AddChain(chain, false, Color(255, 0, 0)); + } +#endif + for (size_t i = 0; i < content_.GetStructuresCount(); i++) { if ((visibility_.size() == 0) || visibility_.at(i))