1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ======================================================================-====*/
21 #include "vvInfoPanel.h"
23 void vvInfoPanel::setFileName(QString text)
26 imageLabel->setText("..." + text.right(27));
28 imageLabel->setText(text);
31 void vvInfoPanel::setDimension(QString text)
33 dimensionLabel->setText(text);
36 void vvInfoPanel::setSizeMM(QString text)
38 sizeMMLabel->setText(text);
41 void vvInfoPanel::setNPixel(QString text)
43 nPixelLabel->setText(text);
46 void vvInfoPanel::setSizePixel(QString text)
48 sizePixelLabel->setText(text);
51 void vvInfoPanel::setOrigin(QString text)
53 originLabel->setText(text);
56 void vvInfoPanel::setSpacing(QString text)
58 spacingLabel->setText(text);
61 void vvInfoPanel::setCurrentInfo(int visibility, double x, double y, double z, double X, double Y, double Z, double value)
68 world += QString::number(x,'f',1) + " ";
69 world += QString::number(y,'f',1) + " ";
70 world += QString::number(z,'f',1) + " ";
72 mouse += QString::number(X,'f',1) + " ";
73 mouse += QString::number(Y,'f',1) + " ";
74 mouse += QString::number(Z,'f',1) + " ";
76 val += QString::number(value);
78 worldPosLabel->setText(world);
79 pixelPosLabel->setText(mouse);
80 valueLabel->setText(val);
84 void vvInfoPanel::setViews(int window, int view, int slice)
91 viewString = "Sagital, ";
96 viewString = "Coronal, ";
101 viewString = "Axial, ";
106 QString text = viewString;
109 text += "current slice : ";
110 text += QString::number(slice);
121 ULLabel->setText(text);
126 URLabel->setText(text);
131 DLLabel->setText(text);
136 DRLabel->setText(text);