X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FmanualContour%2FmanualContourModel.cpp;h=3a4353a63c671e4cd88d6f4f376a557d4cbed75c;hb=02e9429b9e49816b68306b06dccc0c2974daceb4;hp=0e4becc52e749e048b89ce62bdf4ed104c9a6f99;hpb=414da1a291ff4c9d9a946536d3d219e4b5f9e6c2;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.cpp b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.cpp index 0e4becc..3a4353a 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.cpp +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.cpp @@ -45,7 +45,7 @@ manualContourModel::~manualContourModel() _cntSplineX->RemoveAllPoints(); _cntSplineY->RemoveAllPoints(); _cntSplineZ->RemoveAllPoints(); - + _cntSplineX->Delete(); _cntSplineY->Delete(); _cntSplineZ->Delete(); @@ -620,7 +620,6 @@ void manualContourModel::Open(FILE *ff) // virtual } } - // ---------------------------------------------------------------------------- int manualContourModel::GetTypeModel() //virtual { @@ -679,3 +678,20 @@ std::vector manualContourModel::ExploseModel( ) lstTmp.push_back(this); return lstTmp; } + + +// ---------------------------------------------------------------------------- +void manualContourModel::Transform_Ax_Plus_B (double Ax, double Bx, double Ay, double By) +{ + manualPoint * mp; + + int i, size = GetSizeLstPoints(); + + for( i=0; iSetPointX( mp->GetX()*Ax + Bx ); + mp->SetPointY( mp->GetY()*Ay + By ); + } +}