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)
67 world += QString::number(x,'f',1) + " ";
68 world += QString::number(y,'f',1) + " ";
69 world += QString::number(z,'f',1) + " ";
71 mouse += QString::number(X,'f',1) + " ";
72 mouse += QString::number(Y,'f',1) + " ";
73 mouse += QString::number(Z,'f',1) + " ";
75 val += QString::number(value);
77 worldPosLabel->setText(world);
78 pixelPosLabel->setText(mouse);
79 valueLabel->setText(val);
83 void vvInfoPanel::setViews(int window, int view, int slice)
88 viewString = "Sagital, ";
92 viewString = "Coronal, ";
96 viewString = "Axial, ";
101 QString text = viewString;
103 text += "current slice : ";
104 text += QString::number(slice);
111 ULLabel->setText(text);
115 URLabel->setText(text);
119 DLLabel->setText(text);
123 DRLabel->setText(text);