MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
assistantPlotWidget.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2017 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <rtiMsConfig.h>
13 #include <vlutil/vlMachineTypes.h>
14 #include <QWidget>
15 
16 class QCheckBox;
17 class QScrollBar;
18 class QRadioButton;
19 
20 
21 class DtAssistantPlot;
23 
27 {
28  Q_OBJECT
29 
30 public:
31 
36  DtAssistantPlotWidget( const QString& units, QWidget* parent = 0 );
37 
40  virtual ~DtAssistantPlotWidget();
41 
44  virtual unsigned createNewSeries(const QString& seriesName);
45 
50  virtual void updateSeries( unsigned seriesId, double time, double val );
51 
57  virtual void setSeriesData( unsigned seriesId, double* times, double* vals,
58  unsigned numVals );
59 
61  virtual void clear();
62 
63  virtual const DtAssistantPlot& plotter() const;
64 
65  virtual DtAssistantPlot& plotter();
66 
67  virtual void updatePlots();
68 
69  virtual QSize sizeHint() const;
70 
71 protected:
72 
76  void layoutTab();
77 
79  virtual void resizeEvent( QResizeEvent* evt );
80 
81 protected slots:
82 
83  void visibleTimeScaleFactorChanged( float factor );
84 
87  void scrollbarPositionChanged( int val );
88 
89 protected:
90 
91  unsigned myNextSeriesId;
96 
98 
99  QScrollBar* myScrollbar;
100 
101  QAction* myAction;
102 
103  QString myUnits;
104 
105 };
106 
double myNumSecondsVisible
Definition: assistantPlotWidget.h:94
QScrollBar * myScrollbar
Definition: assistantPlotWidget.h:99
float myVisibleTimeScaleFactor
Definition: assistantPlotWidget.h:95
double myFirstPlottedTime
Definition: assistantPlotWidget.h:93
A QwtPlot Widget customized for use in plotting GPS accuracies.
Definition: assistantPlot.h:30
QString myUnits
Definition: assistantPlotWidget.h:103
A custom QwtPlotCurve that can self-update and toggle.
Definition: assistantPlotSeries.h:24
A tab widget with components for graphing data over time.
Definition: assistantPlotWidget.h:26
#define DT_DLL_ASSISTANTAPP
Definition: rtiMsConfig.h:151
double myLastPlottedTime
Definition: assistantPlotWidget.h:92
DtAssistantPlot * myPlotter
Definition: assistantPlotWidget.h:97
unsigned myNextSeriesId
Definition: assistantPlotWidget.h:91
QAction * myAction
Definition: assistantPlotWidget.h:101

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)