Mercurial > hg > orthanc
comparison OrthancServer/ParsedDicomFile.cpp @ 1956:fc16ee04e71b
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 06 Apr 2016 14:22:48 +0200 |
parents | 533ff46e944b |
children | 9e0f408db796 |
comparison
equal
deleted
inserted
replaced
1955:ed77a9aea3f6 | 1956:fc16ee04e71b |
---|---|
1232 std::string& mime, | 1232 std::string& mime, |
1233 unsigned int frameId) | 1233 unsigned int frameId) |
1234 { | 1234 { |
1235 if (pimpl_->frameIndex_.get() == NULL) | 1235 if (pimpl_->frameIndex_.get() == NULL) |
1236 { | 1236 { |
1237 pimpl_->frameIndex_.reset(new DicomFrameIndex(*pimpl_->file_->getDataset())); | 1237 pimpl_->frameIndex_.reset(new DicomFrameIndex(*pimpl_->file_)); |
1238 } | 1238 } |
1239 | 1239 |
1240 pimpl_->frameIndex_->GetRawFrame(target, frameId); | 1240 pimpl_->frameIndex_->GetRawFrame(target, frameId); |
1241 | 1241 |
1242 E_TransferSyntax transferSyntax = pimpl_->file_->getDataset()->getOriginalXfer(); | 1242 E_TransferSyntax transferSyntax = pimpl_->file_->getDataset()->getOriginalXfer(); |
1263 } | 1263 } |
1264 | 1264 |
1265 | 1265 |
1266 unsigned int ParsedDicomFile::GetFramesCount() const | 1266 unsigned int ParsedDicomFile::GetFramesCount() const |
1267 { | 1267 { |
1268 return DicomFrameIndex::GetFramesCount(*pimpl_->file_->getDataset()); | 1268 return DicomFrameIndex::GetFramesCount(*pimpl_->file_); |
1269 } | 1269 } |
1270 } | 1270 } |