Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/Slice.h @ 85:bd48431ac285 wasm
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 26 May 2017 12:20:26 +0200 |
parents | f5f54ed8d307 |
children | f244018a4e4b |
comparison
equal
deleted
inserted
replaced
83:c75377306598 | 85:bd48431ac285 |
---|---|
30 { | 30 { |
31 private: | 31 private: |
32 enum Type | 32 enum Type |
33 { | 33 { |
34 Type_Invalid, | 34 Type_Invalid, |
35 Type_Detached, | |
35 Type_OrthancInstance | 36 Type_OrthancInstance |
36 // TODO A slice could come from some DICOM file (URL) | 37 // TODO A slice could come from some DICOM file (URL) |
37 }; | 38 }; |
38 | 39 |
39 Type type_; | 40 Type type_; |
48 DicomFrameConverter converter_; | 49 DicomFrameConverter converter_; |
49 | 50 |
50 public: | 51 public: |
51 Slice() : type_(Type_Invalid) | 52 Slice() : type_(Type_Invalid) |
52 { | 53 { |
54 } | |
55 | |
56 // TODO Is this constructor the best way to go to tackle missing | |
57 // layers within LayerWidget? | |
58 Slice(const SliceGeometry& plane, | |
59 double thickness) : | |
60 type_(Type_Detached), | |
61 frame_(0), | |
62 geometry_(plane), | |
63 pixelSpacingX_(1), | |
64 pixelSpacingY_(1), | |
65 thickness_(thickness), | |
66 width_(0), | |
67 height_(0) | |
68 { | |
53 } | 69 } |
54 | 70 |
55 bool ParseOrthancFrame(const OrthancPlugins::IDicomDataset& dataset, | 71 bool ParseOrthancFrame(const OrthancPlugins::IDicomDataset& dataset, |
56 const std::string& instanceId, | 72 const std::string& instanceId, |
57 unsigned int frame); | 73 unsigned int frame); |