comparison Framework/Radiography/RadiographyTextLayer.h @ 1196:a5f2a6b04a31

RadiographyScene: windowing is now only applied to the Dicom layer
author Alain Mazy <alain@mazy.be>
date Wed, 27 Nov 2019 17:51:33 +0100
parents c6a36ecd641d
children 54cbffabdc45 ab958fd99b07
comparison
equal deleted inserted replaced
1191:c6a36ecd641d 1196:a5f2a6b04a31
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(MessageBroker& broker, const RadiographyScene& scene) : 40 RadiographyTextLayer(MessageBroker& broker, const RadiographyScene& scene) :
41 RadiographyAlphaLayer(broker, scene) 41 RadiographyAlphaLayer(broker, 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