-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdimensionsgroupbox.h
36 lines (31 loc) · 1.01 KB
/
dimensionsgroupbox.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2014 Andranik Abrahamyan
#ifndef DIMENSIONSGROUPBOX_H
#define DIMENSIONSGROUPBOX_H
#include <QtGui/QGroupBox>
#include "stlsphere.h"
class QLabel;
/*! \brief The DimensionsGroupBox window shows minimal, maximal and delta values of the mesh.
*
*/
class DimensionsGroupBox : public QGroupBox
{
Q_OBJECT
public:
DimensionsGroupBox(QWidget *parent = 0);
~DimensionsGroupBox();
/// reset values
void reset();
/// sets values
void setValues(const StlSphere::UnitStats stats);
private:
QLabel *xMax; //!< maximal x position of the mesh
QLabel *xMin; //!< minimal x position of the mesh
QLabel *xDelta; //!< x delta value from maximal to minimal
QLabel *yMax; //!< maximal y position of the mesh
QLabel *yMin; //!< minimal y position of the mesh
QLabel *yDelta; //!< y delta value from maximal to minimal
QLabel *zMax; //!< maximal z position of the mesh
QLabel *zMin; //!< minimal z position of the mesh
QLabel *zDelta; //!< z delta value from maximal to minimal
};
#endif // DIMENSIONSGROUPBOX_H