Mercurial > hg > orthanc-stone
comparison 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 |
comparison
equal
deleted
inserted
replaced
1770:073484e33bee | 1771:f302bbddf94d |
---|---|
341 assert(isValid_); | 341 assert(isValid_); |
342 | 342 |
343 std::unique_ptr<PolylineSceneLayer> layer(new PolylineSceneLayer); | 343 std::unique_ptr<PolylineSceneLayer> layer(new PolylineSceneLayer); |
344 layer->SetThickness(2); | 344 layer->SetThickness(2); |
345 | 345 |
346 #if 0 | |
347 // For testing - This displays a cross at the origin of the 3D | |
348 // cutting plane in the 2D viewport | |
349 { | |
350 PolylineSceneLayer::Chain chain; | |
351 chain.push_back(ScenePoint2D(-100, 0)); | |
352 chain.push_back(ScenePoint2D(100, 0)); | |
353 layer->AddChain(chain, false, Color(255, 0, 0)); | |
354 } | |
355 | |
356 { | |
357 PolylineSceneLayer::Chain chain; | |
358 chain.push_back(ScenePoint2D(0, -100)); | |
359 chain.push_back(ScenePoint2D(0, 100)); | |
360 layer->AddChain(chain, false, Color(255, 0, 0)); | |
361 } | |
362 #endif | |
363 | |
346 for (size_t i = 0; i < content_.GetStructuresCount(); i++) | 364 for (size_t i = 0; i < content_.GetStructuresCount(); i++) |
347 { | 365 { |
348 if ((visibility_.size() == 0) || visibility_.at(i)) | 366 if ((visibility_.size() == 0) || visibility_.at(i)) |
349 { | 367 { |
350 const Color& color = content_.GetStructureColor(i); | 368 const Color& color = content_.GetStructureColor(i); |