X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=vv%2FvvMainWindow.cxx;h=3add36d466e4e116c146310286b8e3ea9578b8a4;hb=fbd1f3ace65ab9540cb4e0b2d4af83b60232479e;hp=22041dffa23f3694b14d12f75d32012371666005;hpb=3120a75ccfc05e6e5df576d8df817dae112528de;p=clitk.git diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index 22041df..3add36d 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -2116,7 +2116,18 @@ void vvMainWindow::AddFusionImage(int index, QString file) QMessageBox::information(this,tr("Problem reading Fusion !"),"File doesn't exist!"); } //------------------------------------------------------------------------------ - +//------------------------------------------------------------------------------ +void vvMainWindow::AddLandmarks(int index, QString file) +{ + if (QFile::exists(file)) + { + landmarksPanel->LoadFromFile(file.toStdString()); + landmarksPanel->SetCurrentPath(mInputPathName.toStdString()); + landmarksPanel->SetCurrentImage(mSlicerManagers[index]->GetFileName().c_str()); + } + else + QMessageBox::information(this,tr("Problem reading Landmarks !"),"File doesn't exist!"); +} //------------------------------------------------------------------------------ void vvMainWindow::OpenField()