]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModelRotationTool.cpp
use uint32_t instead of ulong, etc
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualContour / manualContourModelRotationTool.cpp
index f874199c2d10ddc2affabccac0abc854b481b5d5..919d566fd788b3b60a63626a2d1734a3b4449ecb 100644 (file)
@@ -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 <<endl;
-               //cout << "Angle" <<_angle <<endl;
+               cout << "Scale" <<_radio <<endl;
+               cout << "Angle" <<_angle <<endl;
+               cout<< "Center"<<_centerX<<","<<_centerY<<endl;
        } 
        else 
        {
@@ -114,4 +115,15 @@ double manualContourModelRotationTool::getRadio()
 double manualContourModelRotationTool::getAngle()
 {
        return _angle;
+}
+
+
+std::vector<double> manualContourModelRotationTool::getCenter()
+{
+       manualPoint *mpCenter   = GetManualPoint(0);
+       std::vector<double> centro(2,0);
+       centro[0]=mpCenter->GetX();
+       centro[1]=mpCenter->GetY();
+       return centro;
+
 }
\ No newline at end of file