itom
Loading...
Searching...
No Matches
plotInfoDObject.h
1
/* ********************************************************************
2
itom software
3
URL: http://www.uni-stuttgart.de/ito
4
Copyright (C) 2020, Institut für Technische Optik (ITO),
5
University of Stuttgart, Germany
6
7
This file is part of itom and its software development toolkit (SDK).
8
9
itom is free software; you can redistribute it and/or modify it
10
under the terms of the GNU Library General Public Licence as published by
11
the Free Software Foundation; either version 2 of the Licence, or (at
12
your option) any later version.
13
14
In addition, as a special exception, the Institut für Technische
15
Optik (ITO) gives you certain additional rights.
16
These rights are described in the ITO LGPL Exception version 1.0,
17
which can be found in the file LGPL_EXCEPTION.txt in this package.
18
19
itom is distributed in the hope that it will be useful, but
20
WITHOUT ANY WARRANTY; without even the implied warranty of
21
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
22
General Public Licence for more details.
23
24
You should have received a copy of the GNU Library General Public License
25
along with itom. If not, see <http://www.gnu.org/licenses/>.
26
*********************************************************************** */
27
28
#ifndef OBJLEGENDWIDGET_H
29
#define OBJLEGENDWIDGET_H
30
31
#ifdef __APPLE__
32
extern
"C++"
{
33
#endif
34
35
#include "../common/commonGlobal.h"
36
#include "../common/typeDefs.h"
37
38
#include "commonWidgets.h"
39
40
#include <QtWidgets/qplaintextedit.h>
41
#include <QtGui/qpixmap.h>
42
#include <QtGui/qpainterpath.h>
43
44
class
ITOMWIDGETS_EXPORT
PlotInfoDObject
:
public
QPlainTextEdit
45
{
46
Q_OBJECT
47
48
public
:
49
PlotInfoDObject
(QWidget* parent = NULL);
50
bool
useDetailInfo()
const
{
return
m_addDetailInfo; }
51
52
private
:
53
QString m_infoHeader;
54
QString m_infoDetail;
55
bool
m_valid;
56
bool
m_addDetailInfo;
57
58
public
slots:
59
60
void
updateInfoHeader(
const
QString newString);
61
void
updateInfoHeader(
const
QString typeString,
const
int
dType,
const
int
dims,
const
int
sizes[]);
62
void
updateInfoDetail(
const
QString newString);
63
void
updateInfoDetail(
const
double
minVal,
const
double
maxVal,
const
double
meanVal,
const
double
devVal);
64
void
clearObjectInfo();
65
void
setUseDetailInfo(
const
bool
state);
66
QPainterPath renderToPainterPath(
const
int
xsize,
const
int
ysize,
const
int
fontSize);
67
68
private
slots:
69
70
};
71
72
#ifdef __APPLE__
73
}
74
#endif
75
76
#endif
// OBJLEGENDWIDGET_H
PlotInfoDObject
Definition
plotInfoDObject.h:45
itom
itomWidgets
plotInfoDObject.h
Generated on Tue Nov 12 2024 10:43:14 for itom by
1.12.0