Mercurial > hg > orthanc
comparison OrthancServer/Internals/DicomFrameIndex.h @ 1956:fc16ee04e71b
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 06 Apr 2016 14:22:48 +0200 |
parents | 533ff46e944b |
children | a3a65de1840f |
comparison
equal
deleted
inserted
replaced
1955:ed77a9aea3f6 | 1956:fc16ee04e71b |
---|---|
31 | 31 |
32 | 32 |
33 #pragma once | 33 #pragma once |
34 | 34 |
35 #include <dcmtk/dcmdata/dcdatset.h> | 35 #include <dcmtk/dcmdata/dcdatset.h> |
36 #include <dcmtk/dcmdata/dcfilefo.h> | |
36 #include <vector> | 37 #include <vector> |
37 #include <stdint.h> | 38 #include <stdint.h> |
38 #include <boost/noncopyable.hpp> | 39 #include <boost/noncopyable.hpp> |
39 #include <memory> | 40 #include <memory> |
40 | 41 |
60 | 61 |
61 std::auto_ptr<IIndex> index_; | 62 std::auto_ptr<IIndex> index_; |
62 unsigned int countFrames_; | 63 unsigned int countFrames_; |
63 | 64 |
64 public: | 65 public: |
65 DicomFrameIndex(DcmDataset& dataset); | 66 DicomFrameIndex(DcmFileFormat& dicom); |
66 | 67 |
67 unsigned int GetFramesCount() const | 68 unsigned int GetFramesCount() const |
68 { | 69 { |
69 return countFrames_; | 70 return countFrames_; |
70 } | 71 } |
71 | 72 |
72 void GetRawFrame(std::string& frame, | 73 void GetRawFrame(std::string& frame, |
73 unsigned int index) const; | 74 unsigned int index) const; |
74 | 75 |
75 static bool IsVideo(const DcmDataset& dataset); | 76 static bool IsVideo(DcmFileFormat& dicom); |
76 | 77 |
77 static unsigned int GetFramesCount(DcmDataset& dataset); | 78 static unsigned int GetFramesCount(DcmFileFormat& dicom); |
78 }; | 79 }; |
79 } | 80 } |