From: Simon Rit Date: Tue, 31 May 2011 15:00:13 +0000 (+0200) Subject: Clean up of unused functions / signals X-Git-Tag: v1.3.0~321^2~3^2~2^2~8 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=275c743605c7ed7472c0ebe7c4f584b788ce49d1;p=clitk.git Clean up of unused functions / signals --- diff --git a/vv/vvInfoPanel.cxx b/vv/vvInfoPanel.cxx index da2bda3..e8d3ba8 100644 --- a/vv/vvInfoPanel.cxx +++ b/vv/vvInfoPanel.cxx @@ -122,55 +122,6 @@ void vvInfoPanel::setCurrentInfo(int visibility, double x, double y, double z, d //------------------------------------------------------------------------------ -//------------------------------------------------------------------------------ -void vvInfoPanel::setViews(int window, int view, int slice) -{/* - QString viewString; - switch (view) { - case 0: { - viewString = "Sagital, "; - break; - } - case 1: { - viewString = "Coronal, "; - break; - } - case 2: { - viewString = "Axial, "; - break; - } - } - - QString text = viewString; - if (view != -1) { - text += "current slice : "; - text += QString::number(slice); - } else { - text = "Disable"; - } - - switch (window) { - case 0: { - ULLabel->setText(text); - break; - } - case 1: { - URLabel->setText(text); - break; - } - case 2: { - DLLabel->setText(text); - break; - } - case 3: { - DRLabel->setText(text); - break; - } - }*/ -} -//------------------------------------------------------------------------------ - - //------------------------------------------------------------------------------ void vvInfoPanel::setMemoryInMb(QString text) { diff --git a/vv/vvInfoPanel.h b/vv/vvInfoPanel.h index 5418703..4a665e1 100644 --- a/vv/vvInfoPanel.h +++ b/vv/vvInfoPanel.h @@ -39,7 +39,6 @@ public: void setDimension(QString text); void setSizePixel(QString text); void setCurrentInfo(int visibility, double x, double y, double z, double X, double Y, double Z, double value); - void setViews(int window, int view, int slice); void setMemoryInMb(QString text); public slots: diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index a15a114..41ae6ba 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -910,8 +910,6 @@ void vvMainWindow::LoadImages(std::vector files, vvImageReader::Loa this, SLOT(OverlayChanged(int,double,double))); connect(mSlicerManagers.back(), SIGNAL(UpdateFusion(int, double)), this, SLOT(FusionChanged(int,double))); - connect(mSlicerManagers.back(), SIGNAL(UpdateWindows(int, int, int)), - this,SLOT(WindowsChanged(int, int, int))); connect(mSlicerManagers.back(), SIGNAL(WindowLevelChanged(double, double,int, int)), this,SLOT(WindowLevelChanged(double, double, int, int))); connect(mSlicerManagers.back(), SIGNAL(UpdateSlice(int,int)), @@ -1623,13 +1621,6 @@ void vvMainWindow::FusionChanged(int visibility, double value) } //------------------------------------------------------------------------------ -//------------------------------------------------------------------------------ -void vvMainWindow::WindowsChanged(int window, int view, int slice) -{ - infoPanel->setViews(window, view, slice); -} -//------------------------------------------------------------------------------ - //------------------------------------------------------------------------------ void vvMainWindow::WindowLevelChanged(double window, double level,int preset,int colormap) { @@ -2828,8 +2819,6 @@ vvSlicerManager* vvMainWindow::AddImage(vvImage::Pointer image,std::string filen this, SLOT(OverlayChanged(int,double,double))); connect(mSlicerManagers.back(), SIGNAL(UpdateFusion(int, double)), this, SLOT(FusionChanged(int,double))); - connect(mSlicerManagers.back(), SIGNAL(UpdateWindows(int, int, int)), - this,SLOT(WindowsChanged(int, int, int))); connect(mSlicerManagers.back(), SIGNAL(WindowLevelChanged(double, double,int, int)), this,SLOT(WindowLevelChanged(double, double, int, int))); connect(mSlicerManagers.back(), SIGNAL(UpdateSlice(int,int)), diff --git a/vv/vvMainWindow.h b/vv/vvMainWindow.h index 35a5d90..39f6ee5 100644 --- a/vv/vvMainWindow.h +++ b/vv/vvMainWindow.h @@ -101,7 +101,6 @@ public slots: void SegmentationOnCurrentImage(); void SurfaceViewerLaunch(); - void WindowsChanged(int window, int view, int slice); void WindowLevelChanged(double window, double level,int preset, int colormap); void UpdateSlice(int slicer, int slice); void UpdateTSlice(int slicer, int slice); diff --git a/vv/vvSlicerManager.h b/vv/vvSlicerManager.h index a1b532e..0aa43d4 100644 --- a/vv/vvSlicerManager.h +++ b/vv/vvSlicerManager.h @@ -205,7 +205,6 @@ signals : void UpdateVector(int display, double x, double y, double z, double value); void UpdateOverlay(int display, double valueOver, double valueRef); void UpdateFusion(int display, double valueFus); - void UpdateWindows(int slicer, int view, int slice); void UpdateOrientation(int slicer, int orientation); void UpdateSlice(int slicer, int slice); void UpdateTSlice(int slicer, int slice);