From: vperez Date: Mon, 23 Nov 2009 15:58:34 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: CREATOOLS.2-0-3~103 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=70eb680f85f9a67daa5caea71f9a74c8d6bf1a22;p=creaMaracasVisu.git *** empty log message *** --- 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;