MAK Data Logger API Documentation for DIS
lgrDataViewComponent.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2012 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "lgrGui.h"
12 #include "lgrGuiComponent.h"
13 #include "lgrDataViewSet.h"
14 
15 #include <lgrEditorInterface.h>
16 
17 class DtMutex;
18 
19 namespace MAKLogger
20 {
21  class DtLgrGuiModel;
22  class DtProgressiveLineGraph;
23 
25  {
26  Q_OBJECT
27  public:
28 
30  DtLgrDataViewComponent(DtLgrGuiModel& model, const QString& name);
31 
33  virtual ~DtLgrDataViewComponent();
34 
36  virtual void update();
37 
42  virtual double updateTime();
43 
45  virtual QWidget* initialize(QWidget* parent);
46 
48  virtual void activate();
49 
51  virtual void deactivate();
52 
56  virtual DtLgrZoomableWidget* zoomComponent();
57 
59  virtual void updateExportData(DtLgrDataViewSetSP set);
60 
62  virtual void addRunningData(const DtLgrDataViewSet& set);
63 
65  virtual DtLgrDataViewSetSP getExportData();
66 
69  virtual bool getRunningData(DtLgrDataViewSet& outputSet);
70 
71  public slots:
72  virtual void reloadFile();
73 
74  virtual void reloadFile(const DtLgrEditorInterface::FileDataOperations& fileOp );
75 
76  virtual void syncData();
77  virtual void syncRunningData(DtLgrGuiModel&);
78 
79  protected:
80 
82  void toggleRunningData(const bool& running);
83 
86  void updateCurrentSet(const DtString& exportType);
87 
89  virtual void adjustValue(unsigned long& value, const DtLgrDataViewSet::DataPoint& dataPoint);
90 
92  virtual double updateGraph( const DtLgrDataViewSet& aSet,double firstVisibleTime,
93  double lastVisibleTime);
94 
96  void cancelUpdateCurrentSet(const DtString& exportType);
97 
98 
100  void playbackFileChangedCallback(const DtString& filename);
101 
102  protected:
103 
105 
108  DtMutex* myDataMutex;
109  DtMutex* myRunningMutex;
110  DtString myExporteraName;
111 
115 
116  //DtTimeComponent myComponent;
118 
119  // Only safely accessed via the updateDataAcrossThread and currentDataSet functions.
123 
124  protected:
125 
126  static const int Graph_Updates = 0;
127  static const int Graph_Interactions = 1;
128  static const int Graph_Checkpoints = 2;
129 
130  };
131 
132 }
133 

Document ID: Generated on Thu Apr 11 12:13:00 EDT 2013 from SVN revision 126011
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)