1 /*=========================================================================
5 Author : Pierre Seroul (pierre.seroul@gmail.com)
8 Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
9 CREATIS-LRMN http://www.creatis.insa-lyon.fr
11 This program is free software: you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation, version 3 of the License.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program. If not, see <http://www.gnu.org/licenses/>.
23 =========================================================================*/
27 #include "vvInfoPanel.h"
29 void vvInfoPanel::setFileName(QString text)
32 imageLabel->setText("..." + text.right(27));
34 imageLabel->setText(text);
37 void vvInfoPanel::setDimension(QString text)
39 dimensionLabel->setText(text);
42 void vvInfoPanel::setSizeMM(QString text)
44 sizeMMLabel->setText(text);
47 void vvInfoPanel::setNPixel(QString text)
49 nPixelLabel->setText(text);
52 void vvInfoPanel::setSizePixel(QString text)
54 sizePixelLabel->setText(text);
57 void vvInfoPanel::setOrigin(QString text)
59 originLabel->setText(text);
62 void vvInfoPanel::setSpacing(QString text)
64 spacingLabel->setText(text);
67 void vvInfoPanel::setCurrentInfo(int visibility, double x, double y, double z, double X, double Y, double Z, double value)
74 world += QString::number(x,'f',1) + " ";
75 world += QString::number(y,'f',1) + " ";
76 world += QString::number(z,'f',1) + " ";
78 mouse += QString::number(X,'f',1) + " ";
79 mouse += QString::number(Y,'f',1) + " ";
80 mouse += QString::number(Z,'f',1) + " ";
82 val += QString::number(value);
84 worldPosLabel->setText(world);
85 pixelPosLabel->setText(mouse);
86 valueLabel->setText(val);
90 void vvInfoPanel::setViews(int window, int view, int slice)
97 viewString = "Sagital, ";
102 viewString = "Coronal, ";
107 viewString = "Axial, ";
112 QString text = viewString;
115 text += "current slice : ";
116 text += QString::number(slice);
127 ULLabel->setText(text);
132 URLabel->setText(text);
137 DLLabel->setText(text);
142 DRLabel->setText(text);