Mercurial > hg > orthanc-stone
comparison Framework/Scene2DViewport/MeasureToolsToolbox.h @ 818:e42b491f1fb2
Removed typedefs to shared_ptr by making them explicit. Removed using namespace
directives to make usage more explicit, too.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 29 May 2019 10:51:28 +0200 |
parents | 92c400a09f1b |
children | a29c13497557 |
comparison
equal
deleted
inserted
replaced
817:68f888812af4 | 818:e42b491f1fb2 |
---|---|
16 * | 16 * |
17 * You should have received a copy of the GNU Affero General Public License | 17 * You should have received a copy of the GNU Affero General Public License |
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 **/ | 19 **/ |
20 | 20 |
21 #include "PointerTypes.h" | 21 #include "PredeclaredTypes.h" |
22 #include "../Scene2D/PolylineSceneLayer.h" | 22 #include "../Scene2D/PolylineSceneLayer.h" |
23 #include "../Scene2D/Scene2D.h" | 23 #include "../Scene2D/Scene2D.h" |
24 | 24 |
25 namespace OrthancStone | 25 namespace OrthancStone |
26 { | 26 { |
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 Scene2DConstPtr scene, | 34 boost::shared_ptr<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 |
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 Scene2DPtr scene, LayerHolderPtr layerHolder, | 183 boost::shared_ptr<Scene2D> scene, boost::shared_ptr<LayerHolder> layerHolder, |
184 const char* text, ScenePoint2D p); | 184 const char* text, ScenePoint2D p); |
185 } | 185 } |