MAK RTIspy API Documentation for HLA Evolved
assistantPlotWidget.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 <QtGui/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 

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)