Mercurial > hg > orthanc-stone
comparison Framework/Scene2DViewport/MeasureToolsToolbox.h @ 906:52b1c6ff10c5
Disabled OpenGL in GuiAdapter to allow for Cairo-only workflows (THIS IS A TEMP CHANGE!!!) + disabled outlined text by default (build macro)
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 17 Jul 2019 17:17:34 +0200 |
parents | 240359ab1651 |
children | b5dec783ba08 |
comparison
equal
deleted
inserted
replaced
905:88bf49aebc13 | 906:52b1c6ff10c5 |
---|---|
168 , const ScenePoint2D& c | 168 , const ScenePoint2D& c |
169 , const ScenePoint2D& p2 | 169 , const ScenePoint2D& p2 |
170 , const double d); | 170 , const double d); |
171 | 171 |
172 | 172 |
173 #if ORTHANC_STONE_ENABLE_OUTLINED_TEXT == 1 | |
173 /** | 174 /** |
174 This helper is used when drawing text with an outline. | 175 This helper is used when drawing text with an outline. |
175 It set the properties for several text layers at once : first the | 176 It set the properties for several text layers at once : first the |
176 four outline layers, with a position shift and then the actual main text | 177 four outline layers, with a position shift and then the actual main text |
177 layer. | 178 layer. |
178 | 179 |
179 The five text layers are supposed to already exist in the scene, starting | 180 The five text layers are supposed to already exist in the scene, starting |
180 from layerIndex, up to (and not including) layerIndex+5. | 181 from startingLayerIndex, up to (and not including) startingLayerIndex+5. |
181 */ | 182 */ |
182 void SetTextLayerOutlineProperties( | 183 void SetTextLayerOutlineProperties( |
183 Scene2D& scene | 184 Scene2D& scene |
184 , boost::shared_ptr<LayerHolder> layerHolder | 185 , boost::shared_ptr<LayerHolder> layerHolder |
185 , const char* text | 186 , const char* text |
186 , ScenePoint2D p | 187 , ScenePoint2D p |
187 , int startingLayerIndex = 0); | 188 , int startingLayerIndex); |
189 #else | |
190 void SetTextLayerProperties( | |
191 Scene2D& scene | |
192 , boost::shared_ptr<LayerHolder> layerHolder | |
193 , const char* text | |
194 , ScenePoint2D p | |
195 , int layerIndex); | |
196 #endif | |
188 | 197 |
189 std::ostream& operator<<(std::ostream& os, const ScenePoint2D& p); | 198 std::ostream& operator<<(std::ostream& os, const ScenePoint2D& p); |
190 } | 199 } |
191 | 200 |