Mercurial > hg > orthanc
comparison OrthancServer/SliceOrdering.cpp @ 3512:4bced7d1ec20
in /ordered-slices route, ignore instances without position/normal/seriesIndex
author | amazy |
---|---|
date | Wed, 04 Sep 2019 18:23:22 +0200 |
parents | ac72032d69a2 |
children | 23219b9da4d1 |
comparison
equal
deleted
inserted
replaced
3511:6b61ba835964 | 3512:4bced7d1ec20 |
---|---|
308 | 308 |
309 instances_.reserve(instancesId.size()); | 309 instances_.reserve(instancesId.size()); |
310 for (std::list<std::string>::const_iterator | 310 for (std::list<std::string>::const_iterator |
311 it = instancesId.begin(); it != instancesId.end(); ++it) | 311 it = instancesId.begin(); it != instancesId.end(); ++it) |
312 { | 312 { |
313 instances_.push_back(new Instance(index_, *it)); | 313 std::auto_ptr<Instance> instance(new Instance(index_, *it)); |
314 if (instance->HasPosition() || instance->HasNormal() || instance->HasIndexInSeries()) | |
315 { | |
316 instances_.push_back(instance.release()); | |
317 } | |
314 } | 318 } |
315 } | 319 } |
316 | 320 |
317 | 321 |
318 bool SliceOrdering::SortUsingPositions() | 322 bool SliceOrdering::SortUsingPositions() |