Mercurial > hg > orthanc-stone
comparison OrthancStone/Samples/Common/RtViewerView.h @ 1535:301571299212
DefaultViewportInteractor::SetWindowingLayer()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 07 Aug 2020 22:23:36 +0200 |
parents | 244ad1e4e76a |
children |
comparison
equal
deleted
inserted
replaced
1534:0443d04416d9 | 1535:301571299212 |
---|---|
49 const std::string& canvasId, | 49 const std::string& canvasId, |
50 VolumeProjection projection) | 50 VolumeProjection projection) |
51 : app_(app) | 51 : app_(app) |
52 , currentPlane_(0) | 52 , currentPlane_(0) |
53 , projection_(projection) | 53 , projection_(projection) |
54 , ctLayer_(0) | |
54 { | 55 { |
55 viewport_ = CreateViewport(canvasId); | 56 viewport_ = CreateViewport(canvasId); |
56 FLOATING_INFOTEXT_LAYER_ZINDEX = 6; | 57 FLOATING_INFOTEXT_LAYER_ZINDEX = 6; |
57 FIXED_INFOTEXT_LAYER_ZINDEX = 7; | 58 FIXED_INFOTEXT_LAYER_ZINDEX = 7; |
58 } | 59 } |
99 boost::shared_ptr<IViewport> GetViewport() | 100 boost::shared_ptr<IViewport> GetViewport() |
100 { | 101 { |
101 return viewport_; | 102 return viewport_; |
102 } | 103 } |
103 | 104 |
105 int GetCtLayerIndex() const | |
106 { | |
107 return ctLayer_; | |
108 } | |
109 | |
104 private: | 110 private: |
105 void SetInfoDisplayMessage(std::string key, std::string value); | 111 void SetInfoDisplayMessage(std::string key, std::string value); |
106 boost::shared_ptr<RtViewerApp> GetApp(); | 112 boost::shared_ptr<RtViewerApp> GetApp(); |
107 boost::shared_ptr<IViewport> CreateViewport(const std::string& canvasId); | 113 boost::shared_ptr<IViewport> CreateViewport(const std::string& canvasId); |
108 void DisplayInfoText(); | 114 void DisplayInfoText(); |
130 std::map<std::string, std::string> infoTextMap_; | 136 std::map<std::string, std::string> infoTextMap_; |
131 | 137 |
132 int FLOATING_INFOTEXT_LAYER_ZINDEX; | 138 int FLOATING_INFOTEXT_LAYER_ZINDEX; |
133 int FIXED_INFOTEXT_LAYER_ZINDEX; | 139 int FIXED_INFOTEXT_LAYER_ZINDEX; |
134 boost::shared_ptr<IViewport> viewport_; | 140 boost::shared_ptr<IViewport> viewport_; |
141 | |
142 int ctLayer_; | |
135 }; | 143 }; |
136 } | 144 } |