Mercurial > hg > orthanc
diff OrthancServer/SliceOrdering.h @ 3899:104e27133ebd transcoding
'/ordered-slices': reverted the change introduced in 1.5.8 and go-back to 1.5.7 behaviour
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Thu, 07 May 2020 12:23:40 +0200 |
parents | 94f4a18a79cc |
children |
line wrap: on
line diff
--- a/OrthancServer/SliceOrdering.h Thu May 07 11:40:54 2020 +0200 +++ b/OrthancServer/SliceOrdering.h Thu May 07 12:23:40 2020 +0200 @@ -51,8 +51,7 @@ std::string seriesId_; bool hasNormal_; Vector normal_; - std::vector<Instance*> instances_; // this vector owns the instances - std::vector<Instance*> sortedInstances_; // this vectore references the instances of instances_ + std::vector<Instance*> instances_; bool isVolume_; static bool ComputeNormal(Vector& normal, @@ -78,14 +77,14 @@ ~SliceOrdering(); - size_t GetSortedInstancesCount() const + size_t GetInstancesCount() const { - return sortedInstances_.size(); + return instances_.size(); } - const std::string& GetSortedInstanceId(size_t index) const; + const std::string& GetInstanceId(size_t index) const; - unsigned int GetSortedInstanceFramesCount(size_t index) const; + unsigned int GetFramesCount(size_t index) const; void Format(Json::Value& result) const; };