comparison Framework/Radiography/RadiographyScene.h @ 475:3c28542229a3 am-touch-events

added a mask layer in the RadiographyWidget (to be cleaned)
author am@osimis.io
date Tue, 12 Feb 2019 12:22:13 +0100
parents 9a8fe40acfff
children 159a465e27bd
comparison
equal deleted inserted replaced
467:22b80f5c3a1c 475:3c28542229a3
25 #include "../Toolbox/OrthancApiClient.h" 25 #include "../Toolbox/OrthancApiClient.h"
26 #include "Framework/StoneEnumerations.h" 26 #include "Framework/StoneEnumerations.h"
27 27
28 namespace OrthancStone 28 namespace OrthancStone
29 { 29 {
30 struct MaskPoint;
31 class RadiographyDicomLayer;
32
30 class RadiographyScene : 33 class RadiographyScene :
31 public IObserver, 34 public IObserver,
32 public IObservable 35 public IObservable
33 { 36 {
34 public: 37 public:
148 151
149 RadiographyLayer& LoadTestBlock(unsigned int width, 152 RadiographyLayer& LoadTestBlock(unsigned int width,
150 unsigned int height, 153 unsigned int height,
151 RadiographyLayer::Geometry* geometry); 154 RadiographyLayer::Geometry* geometry);
152 155
156 RadiographyLayer& LoadMask(const std::vector<MaskPoint>& corners,
157 const RadiographyDicomLayer& dicomLayer,
158 float foreground,
159 RadiographyLayer::Geometry* geometry);
160
153 RadiographyLayer& LoadAlphaBitmap(Orthanc::ImageAccessor* bitmap, // takes ownership 161 RadiographyLayer& LoadAlphaBitmap(Orthanc::ImageAccessor* bitmap, // takes ownership
154 RadiographyLayer::Geometry* geometry); 162 RadiographyLayer::Geometry* geometry);
155 163
156 virtual RadiographyLayer& LoadDicomFrame(OrthancApiClient& orthanc, 164 virtual RadiographyLayer& LoadDicomFrame(OrthancApiClient& orthanc,
157 const std::string& instance, 165 const std::string& instance,