From 70eb680f85f9a67daa5caea71f9a74c8d6bf1a22 Mon Sep 17 00:00:00 2001 From: vperez Date: Mon, 23 Nov 2009 15:58:34 +0000 Subject: [PATCH] *** empty log message *** --- .../manualContourModelRotationTool.cpp | 16 ++++++++++++++-- .../manualContourModelRotationTool.h | 1 + 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModelRotationTool.cpp b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModelRotationTool.cpp index f874199..919d566 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModelRotationTool.cpp +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModelRotationTool.cpp @@ -91,8 +91,9 @@ void manualContourModelRotationTool:: UpdateSpline() x= mpC->GetX() - mpA->GetX(); y= mpC->GetY() - mpA->GetY(); _angle= atan(y/x)*180/(3.14159265); - //cout << "Scale" <<_radio < manualContourModelRotationTool::getCenter() +{ + manualPoint *mpCenter = GetManualPoint(0); + std::vector centro(2,0); + centro[0]=mpCenter->GetX(); + centro[1]=mpCenter->GetY(); + return centro; + } \ No newline at end of file diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModelRotationTool.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModelRotationTool.h index 3233317..49aed0f 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModelRotationTool.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModelRotationTool.h @@ -14,6 +14,7 @@ public: virtual void GetSpline_i_Point(int i, double *x, double *y, double *z); double getRadio(); double getAngle(); + std::vector getCenter(); private: double _deltaAngle; -- 2.46.0