Mercurial > hg > orthanc-stone
diff Framework/Layers/LineMeasureTracker.cpp @ 726:4f2416d519b4
moving layers, widgets and loaders to Deprecated namespace
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 21 May 2019 11:43:25 +0200 |
parents | 3b4df9925db6 |
children |
line wrap: on
line diff
--- a/Framework/Layers/LineMeasureTracker.cpp Mon May 20 16:26:34 2019 +0200 +++ b/Framework/Layers/LineMeasureTracker.cpp Tue May 21 11:43:25 2019 +0200 @@ -23,10 +23,10 @@ #include <stdio.h> -namespace OrthancStone +namespace Deprecated { LineMeasureTracker::LineMeasureTracker(IStatusBar* statusBar, - const CoordinateSystem3D& slice, + const OrthancStone::CoordinateSystem3D& slice, double x, double y, uint8_t red, @@ -47,7 +47,7 @@ } - void LineMeasureTracker::Render(CairoContext& context, + void LineMeasureTracker::Render(OrthancStone::CairoContext& context, double zoom) { context.SetSourceColor(color_[0], color_[1], color_[2]); @@ -60,19 +60,19 @@ if (y2_ - y1_ < 0) { - context.DrawText(font_, FormatLength(), x2_, y2_ - 5, BitmapAnchor_BottomCenter); + context.DrawText(font_, FormatLength(), x2_, y2_ - 5, OrthancStone::BitmapAnchor_BottomCenter); } else { - context.DrawText(font_, FormatLength(), x2_, y2_ + 5, BitmapAnchor_TopCenter); + context.DrawText(font_, FormatLength(), x2_, y2_ + 5, OrthancStone::BitmapAnchor_TopCenter); } } double LineMeasureTracker::GetLength() const // In millimeters { - Vector a = slice_.MapSliceToWorldCoordinates(x1_, y1_); - Vector b = slice_.MapSliceToWorldCoordinates(x2_, y2_); + OrthancStone::Vector a = slice_.MapSliceToWorldCoordinates(x1_, y1_); + OrthancStone::Vector b = slice_.MapSliceToWorldCoordinates(x2_, y2_); return boost::numeric::ublas::norm_2(b - a); }