]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModel.cpp
wxMaracasSuperposition.cxx
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualContour / manualContourModel.cpp
index 0e4becc52e749e048b89ce62bdf4ed104c9a6f99..e633546c7adda385aa082dbaac4356b0093ca1b4 100644 (file)
@@ -620,7 +620,6 @@ void manualContourModel::Open(FILE *ff) // virtual
        }
 }
 
-
 // ----------------------------------------------------------------------------
 int manualContourModel::GetTypeModel() //virtual
 {
@@ -679,3 +678,19 @@ std::vector<manualContourModel*> 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; i<size; i++ )
+       {
+               mp = GetManualPoint( i );
+
+               mp->SetPointX( mp->GetX()*Ax + Bx );
+               mp->SetPointY( mp->GetY()*Ay + By );
+       }
+}