VR-Exchange 2.6 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
portalApp
frameratePlotSeries.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2013 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
#include <
portalApp/dllExport.h
>
13
14
#include <vlutil/vlMachineTypes.h>
15
16
#include <QtGui/QPolygonF>
17
18
#include <qwt_plot_curve.h>
19
#include <qwt_legend.h>
20
21
namespace
MAKVrExchange
22
{
23
24
class
DtFrameratePlot;
25
28
class
DT_DLL_LIBPORTALAPP
DtFrameratePlotSeries
:
public
QwtPlotCurve
29
{
30
public
:
31
36
DtFrameratePlotSeries
(
DtFrameratePlot
* plot,
37
unsigned
int
seriesId,
const
QString& title );
38
40
virtual
~
DtFrameratePlotSeries
();
41
45
virtual
void
initStorageBuffer(
unsigned
int
size );
46
50
virtual
void
reinitStorageBuffer(
unsigned
int
size );
51
54
//virtual void updateLegend( QwtAbstractLegend* legend ) const;
55
57
virtual
void
setData(
double
* timeVals,
double
* dataVals,
unsigned
int
numVals );
58
63
virtual
void
setOnlyVisibleMinMax(
bool
enable );
64
66
virtual
bool
onlyVisibleMinMax()
const
;
67
75
virtual
void
setLazyMinMaxEnabled(
bool
enabled );
76
78
virtual
bool
lazyMinMaxEnabled()
const
;
79
83
virtual
double
minYValue()
const
;
84
88
virtual
double
maxYValue()
const
;
89
92
virtual
double
lastPlottedTime()
const
;
93
95
virtual
void
clear();
96
98
virtual
void
setPenStyle( Qt::PenStyle style );
99
101
virtual
void
setPenColor(
const
QColor& color );
102
105
virtual
void
setEnabled(
bool
state );
106
108
virtual
unsigned
int
seriesId()
const
;
109
110
protected
:
111
112
// Befriend the framerate plot.
113
friend
class
DtFrameratePlot
;
114
119
virtual
void
addDataPoint(
double
time,
double
val );
120
123
virtual
void
computeMinMaxValues()
const
;
124
125
protected
:
126
127
unsigned
int
mySeriesId
;
128
bool
myEnabledFlag
;
129
130
bool
myOnlyVisibleMinMaxFlag
;
131
bool
myEnableLazyMinMaxFlag
;
132
mutable
bool
myDirtyMinMaxFlag
;
133
mutable
double
myMin
;
134
mutable
double
myMax
;
135
136
unsigned
int
myMaxDataPoints
;
137
unsigned
int
myNumVals
;
138
double
*
myTimeVals
;
139
double
*
myDataVals
;
140
141
DtFrameratePlot
*
myPlot
;
142
143
};
144
145
}
Document ID: Generated on Wed Jan 30 18:15:18 EST 2019 from SVN revision 195534
Copyright © 2005-2019 VT MÄK. All Rights Reserved (
www.mak.com
)