MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
assistantPlotSeries.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2011 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <rtiMsConfig.h>
13 #include <vlutil/vlMachineTypes.h>
14 #include <qwt_plot_curve.h>
15 #include <qwt_series_data.h>
16 #include <qwt_legend.h>
17 #include <QtGui/QPolygonF>
18 
19 class DtAssistantPlot;
20 class QwtLegend;
21 
25 {
26 public:
27 
33  unsigned seriesId, const QString& title );
34 
36  virtual ~DtAssistantPlotSeries();
37 
39  void setData( double* timeVals, double* dataVals, unsigned numVals );
40 
44  virtual void addDataPoint( double time, double val );
45 
47  virtual void clear();
48 
51  virtual void setEnabled( bool state );
52 
54  virtual unsigned seriesId() const;
55 
56  virtual void itemChanged();
57 
58  virtual void updateLegend( QwtAbstractLegend* legend ) const;
59 
60 protected:
61 
62  double* myTimeVals;
63  double* myDataVals;
64  unsigned myNumVals;
65 
66  unsigned mySeriesId;
67 
69 
71 
72  static const unsigned theMaxDataPoints;
73 
74 };
DtAssistantPlot * myPlot
Definition: assistantPlotSeries.h:68
static const unsigned theMaxDataPoints
Definition: assistantPlotSeries.h:72
unsigned myNumVals
Definition: assistantPlotSeries.h:64
unsigned mySeriesId
Definition: assistantPlotSeries.h:66
bool myEnabledFlag
Definition: assistantPlotSeries.h:70
A QwtPlot Widget customized for use in plotting GPS accuracies.
Definition: assistantPlot.h:30
A custom QwtPlotCurve that can self-update and toggle.
Definition: assistantPlotSeries.h:24
double * myDataVals
Definition: assistantPlotSeries.h:63
double * myTimeVals
Definition: assistantPlotSeries.h:62
#define DT_DLL_ASSISTANTAPP
Definition: rtiMsConfig.h:122

Document ID: Generated on Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)