From: rblanc Date: Tue, 15 Jan 2013 14:03:10 +0000 (+0100) Subject: Merge branch 'master' of git.creatis.insa-lyon.fr:clitk X-Git-Tag: v1.4.0~260^2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=cf891024f9fed4d9ee3eabf13f2114a1d724df43;p=clitk.git Merge branch 'master' of git.creatis.insa-lyon.fr:clitk Conflicts: vv/vvMainWindow.cxx vv/vvMainWindow.h --- cf891024f9fed4d9ee3eabf13f2114a1d724df43 diff --cc vv/vvMainWindow.cxx index 113be15,a44aadf..eb5fe7e --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@@ -332,15 -320,12 +332,16 @@@ vvMainWindow::vvMainWindow():vvMainWind connect(linkPanel,SIGNAL(removeLink(QString,QString)),this,SLOT(RemoveLink(QString,QString))); connect(overlayPanel,SIGNAL(VFPropertyUpdated(int,int,int,int,double,double,double)),this,SLOT(SetVFProperty(int,int,int,int,double,double,double))); connect(overlayPanel,SIGNAL(OverlayPropertyUpdated(int,int,double,double)), - this,SLOT(SetOverlayProperty(int,int,double,double))); + this,SLOT(SetOverlayProperty(int,int,double,double))); connect(overlayPanel,SIGNAL(FusionPropertyUpdated(int,int,int,double,double, bool)), - this,SLOT(SetFusionProperty(int,int,int,double,double, bool))); + this,SLOT(SetFusionProperty(int,int,int,double,double, bool))); connect(landmarksPanel,SIGNAL(UpdateRenderWindows()),this,SLOT(UpdateRenderWindows())); + connect(landmarksPanel,SIGNAL(SelectedPointChanged()),this,SLOT(GoToLandmark())); + connect(overlayPanel,SIGNAL(FusionSequencePropertyUpdated(int, bool, unsigned int, bool)), + this,SLOT(SetFusionSequenceProperty(int, bool,unsigned int, bool))); + + playMode = 0;//pause mFrameRate = 10; playButton->setEnabled(0); @@@ -1149,28 -1130,27 +1156,28 @@@ void vvMainWindow::ImageInfoChanged( } } - infoPanel->setFileName(image); - infoPanel->setDimension(dim); - infoPanel->setSizePixel(GetVectorIntAsString(inputSize)); - infoPanel->setSizeMM(GetVectorDoubleAsString(sizeMM)); - infoPanel->setOrigin(GetVectorDoubleAsString(origin)); - infoPanel->setSpacing(GetVectorDoubleAsString(inputSpacing)); - infoPanel->setNPixel(QString::number(NPixel)+" ("+inputSizeInBytes+")"); - - landmarksPanel->SetCurrentLandmarks(mSlicerManagers[index]->GetLandmarks(), - mSlicerManagers[index]->GetSlicer(0)->GetImage()->GetVTKImages().size()); - landmarksPanel->SetCurrentPath(mInputPathName.toStdString()); - landmarksPanel->SetCurrentImage(mSlicerManagers[index]->GetFileName().c_str()); - - overlayPanel->getCurrentImageName(mSlicerManagers[index]->GetFileName().c_str()); - for (int i = 0; i < 4; i++) { - if (DataTree->selectedItems()[0]->data(i+1,Qt::CheckStateRole).toInt() > 0 || i == 3) { - mSlicerManagers[index]->UpdateInfoOnCursorPosition(i); - break; - } - } + // infoPanel->setFileName(image); + // infoPanel->setDimension(dim); + // infoPanel->setSizePixel(GetVectorIntAsString(inputSize)); + // infoPanel->setSizeMM(GetVectorDoubleAsString(sizeMM)); + // infoPanel->setOrigin(GetVectorDoubleAsString(origin)); + // infoPanel->setSpacing(GetVectorDoubleAsString(inputSpacing)); + // infoPanel->setNPixel(QString::number(NPixel)+" ("+inputSizeInBytes+")"); + // + // landmarksPanel->SetCurrentLandmarks(mSlicerManagers[index]->GetLandmarks(), + // mSlicerManagers[index]->GetTSlice()); + // landmarksPanel->SetCurrentPath(mInputPathName.toStdString()); + // landmarksPanel->SetCurrentImage(mSlicerManagers[index]->GetFileName().c_str()); + // + // overlayPanel->getCurrentImageName(mSlicerManagers[index]->GetFileName().c_str()); + // for (int i = 0; i < 4; i++) { + // if (DataTree->selectedItems()[0]->data(i+1,Qt::CheckStateRole).toInt() > 0 || i == 3) { + // mSlicerManagers[index]->UpdateInfoOnCursorPosition(i); + // break; + // } + // } WindowLevelChanged(); + slicingPresetComboBox->setCurrentIndex(mSlicerManagers[index]->GetSlicingPreset()); if (mSlicerManagers[index]->GetSlicer(0)->GetVF()) { diff --cc vv/vvMainWindow.h index 7911a75,a15ff8b..15ec687 --- a/vv/vvMainWindow.h +++ b/vv/vvMainWindow.h @@@ -57,10 -57,8 +57,12 @@@ class vvMainWindow: public vvMainWindow void AddOverlayImage(int index, std::vector fileNames, vvImageReader::LoadedImageType type); void AddFusionImage(int index, QString filename); void AddROI(int index, QString filename); ++ + //Process the sequence for fusion: + void AddFusionSequence(int index, std::vector fileNames, vvImageReader::LoadedImageType type); + - ///Adds a mesh to a SlicerManager, with optional warping by vector field + void AddLandmarks(int index, std::vector); + ///Adds a mesh to a SlicerManager, with optional warping by vector field void AddContour(int image_index, vvMesh::Pointer contour, bool propagation); ///This is used to show an image when opened or computed void ShowLastImage(); @@@ -166,9 -159,9 +168,10 @@@ public slots void SetVFProperty(int subsampling,int scale,int lut, int width, double r, double g, double b); void SetOverlayProperty(int color, int linked, double window, double level); void SetFusionProperty(int opacity, int tresOpacity, int colormap,double window,double level, bool showLegend); + void SetFusionSequenceProperty(int fusionSequenceFrameIndex, bool spatialSyncFlag, unsigned int fusionSequenceNbFrames, bool temporalSyncFlag); void GoToCursor(); + void GoToLandmark(); void PlayPause(); void PlayNext(); void ChangeFrameRate(int rate) {