Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographySceneReader.h @ 1190:f417a0ae282b
wip: TextLayer with new fonts
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Tue, 26 Nov 2019 15:27:48 +0100 |
parents | 1e80a925323a |
children | bdc6837d5917 69177b10e2b9 |
comparison
equal
deleted
inserted
replaced
1184:848dcba80d81 | 1190:f417a0ae282b |
---|---|
38 // It needs some architecturing... | 38 // It needs some architecturing... |
39 class RadiographySceneBuilder : public boost::noncopyable | 39 class RadiographySceneBuilder : public boost::noncopyable |
40 { | 40 { |
41 protected: | 41 protected: |
42 RadiographyScene& scene_; | 42 RadiographyScene& scene_; |
43 const Orthanc::FontRegistry* fontRegistry_; | |
44 std::auto_ptr<Orthanc::ImageAccessor> dicomImage_; | 43 std::auto_ptr<Orthanc::ImageAccessor> dicomImage_; |
45 std::auto_ptr<Deprecated::DicomFrameConverter> dicomFrameConverter_; | 44 std::auto_ptr<Deprecated::DicomFrameConverter> dicomFrameConverter_; |
46 RadiographyPhotometricDisplayMode preferredPhotometricDisplayMode_; | 45 RadiographyPhotometricDisplayMode preferredPhotometricDisplayMode_; |
47 | 46 |
48 public: | 47 public: |
49 RadiographySceneBuilder(RadiographyScene& scene) : | 48 RadiographySceneBuilder(RadiographyScene& scene) : |
50 scene_(scene), | 49 scene_(scene) |
51 fontRegistry_(NULL) | |
52 { | 50 { |
53 } | 51 } |
54 | 52 |
55 void Read(const Json::Value& input); | 53 void Read(const Json::Value& input); |
56 void Read(const Json::Value& input, | 54 void Read(const Json::Value& input, |
57 Orthanc::ImageAccessor* dicomImage, // takes ownership | 55 Orthanc::ImageAccessor* dicomImage, // takes ownership |
58 Deprecated::DicomFrameConverter* dicomFrameConverter, // takes ownership | 56 Deprecated::DicomFrameConverter* dicomFrameConverter, // takes ownership |
59 RadiographyPhotometricDisplayMode preferredPhotometricDisplayMode | 57 RadiographyPhotometricDisplayMode preferredPhotometricDisplayMode |
60 ); | 58 ); |
61 | |
62 void SetFontRegistry(const Orthanc::FontRegistry& fontRegistry) | |
63 { | |
64 fontRegistry_ = &fontRegistry; | |
65 } | |
66 | 59 |
67 static void ReadLayerGeometry(RadiographyLayer::Geometry& geometry, const Json::Value& input); | 60 static void ReadLayerGeometry(RadiographyLayer::Geometry& geometry, const Json::Value& input); |
68 static void ReadDicomLayerGeometry(RadiographyLayer::Geometry& geometry, const Json::Value& input); | 61 static void ReadDicomLayerGeometry(RadiographyLayer::Geometry& geometry, const Json::Value& input); |
69 | 62 |
70 protected: | 63 protected: |