X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvInfoPanel.cxx;h=e8d3ba8187718616c917a166ae14e7e5476f4654;hb=97b13fba69a83e91416caa9e689e012211649f12;hp=44290450473d56957a6d439a1751385748ebc689;hpb=765020625fbc092d283e221e36c83e60a1844cb7;p=clitk.git diff --git a/vv/vvInfoPanel.cxx b/vv/vvInfoPanel.cxx index 4429045..e8d3ba8 100644 --- a/vv/vvInfoPanel.cxx +++ b/vv/vvInfoPanel.cxx @@ -20,6 +20,17 @@ #include "vvInfoPanel.h" #include "clitkMemoryUsage.h" +#include "clitkConfiguration.h" + +//------------------------------------------------------------------------------ +vvInfoPanel::vvInfoPanel(QWidget * parent):QWidget(parent) +{ + setupUi(this); +#if CLITK_MEMORY_INFO==0 + memoryUsageLabel->hide(); +#endif +} +//------------------------------------------------------------------------------ //------------------------------------------------------------------------------ void vvInfoPanel::setTransformation(QString text) @@ -111,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) {