From: donadio Date: Fri, 5 Jun 2009 11:22:46 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: EED.02Oct2009~52 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7624fbab400d414b4d8277e7f0febadcabcec5c0;p=creaMaracasVisu.git *** empty log message *** --- diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.cpp b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.cpp index 0e4becc..4318e0f 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.cpp +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.cpp @@ -620,6 +620,63 @@ void manualContourModel::Open(FILE *ff) // virtual } } +// ---------------------------------------------------------------------------- +void manualContourModel::OpenAndTransformSpacing(FILE *ff, double imgSpac[3], double roiSpac[3]) // virtual +{ + char tmp[255]; + int i; + int numberOfControlPoints; + double x,y,z; + + double transX, transY; + transX = (double) roiSpac[0]/imgSpac[0]; + transY = (double) roiSpac[1]/imgSpac[1]; + + fscanf(ff,"%s",tmp); // NumberOfControlPoints + fscanf(ff,"%s",tmp); // ## + numberOfControlPoints = atoi(tmp); + for (i=0;i