VR-Exchange 2.2 API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
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 <namespace.h>
13
14
#include <vlutil/vlMachineTypes.h>
15
16
#include <qwt_plot_curve.h>
17
18
#include <QtGui/QPolygonF>
19
20
namespace
MAKVrExchange
21
{
22
23
class
DtFrameratePlot;
24
27
class
DT_DLL_LIBPORTALAPP
DtFrameratePlotSeries
:
public
QwtPlotCurve
28
{
29
public
:
30
35
DtFrameratePlotSeries
(
DtFrameratePlot
* plot,
36
unsigned
int
seriesId,
const
QString& title );
37
39
virtual
~
DtFrameratePlotSeries
();
40
44
virtual
void
initStorageBuffer(
unsigned
int
size );
45
49
virtual
void
reinitStorageBuffer(
unsigned
int
size );
50
53
virtual
void
updateLegend( QwtLegend* legend )
const
;
54
56
virtual
void
setData(
double
* timeVals,
double
* dataVals,
unsigned
int
numVals );
57
62
virtual
void
setOnlyVisibleMinMax(
bool
enable );
63
65
virtual
bool
onlyVisibleMinMax()
const
;
66
74
virtual
void
setLazyMinMaxEnabled(
bool
enabled );
75
77
virtual
bool
lazyMinMaxEnabled()
const
;
78
82
virtual
double
minYValue()
const
;
83
87
virtual
double
maxYValue()
const
;
88
91
virtual
double
lastPlottedTime()
const
;
92
94
virtual
void
clear();
95
97
virtual
void
setPenStyle( Qt::PenStyle style );
98
100
virtual
void
setPenColor(
const
QColor& color );
101
104
virtual
void
setEnabled(
bool
state );
105
107
virtual
unsigned
int
seriesId()
const
;
108
109
protected
:
110
111
// Befriend the framerate plot.
112
friend
class
DtFrameratePlot
;
113
118
virtual
void
addDataPoint(
double
time,
double
val );
119
122
virtual
void
computeMinMaxValues()
const
;
123
124
protected
:
125
126
unsigned
int
mySeriesId
;
127
bool
myEnabledFlag
;
128
129
bool
myOnlyVisibleMinMaxFlag
;
130
bool
myEnableLazyMinMaxFlag
;
131
mutable
bool
myDirtyMinMaxFlag
;
132
mutable
double
myMin
;
133
mutable
double
myMax
;
134
135
unsigned
int
myMaxDataPoints
;
136
unsigned
int
myNumVals
;
137
double
*
myTimeVals
;
138
double
*
myDataVals
;
139
140
DtFrameratePlot
*
myPlot
;
141
142
};
143
144
}
Document ID: Generated on Mon Apr 15 17:15:50 EDT 2013 from SVN revision 126154
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)