Mercurial > hg > orthanc-stone
comparison Framework/Scene2DViewport/MeasureToolsToolbox.h @ 891:0aff28f15ea2
new abstraction: IViewport
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 10 Jul 2019 18:18:42 +0200 |
parents | a29c13497557 |
children | 240359ab1651 |
comparison
equal
deleted
inserted
replaced
890:77c96ba899f9 | 891:0aff28f15ea2 |
---|---|
29 This function will create a square around the center point supplied in | 29 This function will create a square around the center point supplied in |
30 scene coordinates, with a side length given in canvas coordinates. The | 30 scene coordinates, with a side length given in canvas coordinates. The |
31 square sides are parallel to the canvas boundaries. | 31 square sides are parallel to the canvas boundaries. |
32 */ | 32 */ |
33 void AddSquare(PolylineSceneLayer::Chain& chain, | 33 void AddSquare(PolylineSceneLayer::Chain& chain, |
34 boost::shared_ptr<const Scene2D> scene, | 34 const Scene2D& scene, |
35 const ScenePoint2D& centerS, | 35 const ScenePoint2D& centerS, |
36 const double& sideLengthS); | 36 const double& sideLengthS); |
37 | 37 |
38 /** | 38 /** |
39 Creates an arc centered on c that goes | 39 Creates an arc centered on c that goes |
40 - from a point r1: | 40 - from a point r1: |
41 - so that r1 belongs to the p1,c line | 41 - so that r1 belongs to the p1,c line |
178 | 178 |
179 The five text layers are supposed to already exist in the scene, starting | 179 The five text layers are supposed to already exist in the scene, starting |
180 from layerIndex, up to (and not including) layerIndex+5. | 180 from layerIndex, up to (and not including) layerIndex+5. |
181 */ | 181 */ |
182 void SetTextLayerOutlineProperties( | 182 void SetTextLayerOutlineProperties( |
183 boost::shared_ptr<Scene2D> scene, boost::shared_ptr<LayerHolder> layerHolder, | 183 Scene2D& scene, |
184 const char* text, ScenePoint2D p); | 184 boost::shared_ptr<LayerHolder> layerHolder, |
185 | 185 const char* text, |
186 ScenePoint2D p); | |
186 | 187 |
187 std::ostream& operator<<(std::ostream& os, const ScenePoint2D& p); | 188 std::ostream& operator<<(std::ostream& os, const ScenePoint2D& p); |
188 } | 189 } |
189 | 190 |