Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyTextLayer.h @ 1200:54cbffabdc45 broker
integration mainline->broker
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 29 Nov 2019 11:03:41 +0100 |
parents | bdc6837d5917 a5f2a6b04a31 |
children | b519c1c878f1 |
comparison
equal
deleted
inserted
replaced
1198:4cc997207d8a | 1200:54cbffabdc45 |
---|---|
29 | 29 |
30 class RadiographyTextLayer : public RadiographyAlphaLayer | 30 class RadiographyTextLayer : public RadiographyAlphaLayer |
31 { | 31 { |
32 private: | 32 private: |
33 std::string text_; | 33 std::string text_; |
34 size_t fontSize_; | 34 unsigned int fontSize_; |
35 uint8_t foreground_; | 35 uint8_t foreground_; |
36 | 36 |
37 static bool fontHasBeenConfigured_; | 37 static bool fontHasBeenConfigured_; |
38 static Orthanc::EmbeddedResources::FileResourceId fontResourceId_; | 38 static Orthanc::EmbeddedResources::FileResourceId fontResourceId_; |
39 public: | 39 public: |
40 RadiographyTextLayer(const RadiographyScene& scene) : | 40 RadiographyTextLayer(const RadiographyScene& scene) : |
41 RadiographyAlphaLayer(scene) | 41 RadiographyAlphaLayer(scene) |
42 { | 42 { |
43 } | 43 } |
44 | 44 |
45 void LoadText(const std::string& utf8, size_t fontSize, uint8_t foreground); | 45 void LoadText(const std::string& utf8, unsigned int fontSize, uint8_t foreground); |
46 | 46 |
47 const std::string& GetText() const | 47 const std::string& GetText() const |
48 { | 48 { |
49 return text_; | 49 return text_; |
50 } | 50 } |
51 | 51 |
52 size_t GetFontSize() const | 52 unsigned int GetFontSize() const |
53 { | 53 { |
54 return fontSize_; | 54 return fontSize_; |
55 } | 55 } |
56 | 56 |
57 uint8_t GetForeground() const | 57 uint8_t GetForeground() const |