From 7624fbab400d414b4d8277e7f0febadcabcec5c0 Mon Sep 17 00:00:00 2001 From: donadio Date: Fri, 5 Jun 2009 11:22:46 +0000 Subject: [PATCH] *** empty log message *** --- .../manualContour/manualContourModel.cpp | 57 +++++++++++++++++++ .../manualContour/manualContourModel.h | 2 + 2 files changed, 59 insertions(+) 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