MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
stateObView.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 ******************************************************************************/
9 
10 #pragma once
11 
12 #include "stateObserver.h"
13 
14 #include <lgrGui/lgrGuiComponent.h>
15 #include <lgrGui/timeComponent.h>
17 
18 class QWidget;
19 
20 namespace MAKLogger
21 {
22  class DtLgrAppGui;
23  class DtLgrGuiModel;
24  class DtProgressiveLineGraph;
25  class DtStateObjectViewWidget;
26  class DtStateObserverController;
27 
32  {
33 
34  Q_OBJECT
35 
36  public:
37 
40 
42  virtual ~DtStateObserverView();
43 
45  void setTotalObjectCount(int count);
46 
48  void setRemovedObjectCount(int count);
49 
51  void setUnknownObjectCount(int count);
52 
54  void setEntityCount(int count);
55 
57  void setAggregateCount(int count);
58 
60  void setEnvironmentalProcessCount(int count);
61 
63  virtual QWidget* initialize(QWidget* parent);
64 
66  virtual void activate();
67 
69  virtual void deactivate();
70 
72  virtual bool canCloseFile() const;
73 
75  void startView();
76 
78  void stopView();
79 
81  void clearView();
82 
87  virtual double updateTime();
88 
91  virtual void update();
92 
96  virtual MAKLogger::DtLgrZoomableWidget* zoomComponent();
97 
98  public slots:
99 
100  void fileOpenChanged(QString fileName);
101  void connectionStatusChanged(bool connected);
102 
103  protected:
112 
113  // Update at 1/10 the default redraw rate.
114  const static int theRequestUpdateRate = 10;
115 
116  enum GraphIds
117  {
118  Graph_TotalObjectCount = 1,
120 
124  Graph_EnvironmentalProcessCount
125  };
126 
127  };
128 }
129 
DtStateObjectViewWidget * myWidget
Definition: stateObView.h:108
DtStateObserverController * myController
Definition: stateObView.h:106
MAKLogger::DtProgressiveLineGraph * myGraph
Definition: stateObView.h:107
Provides the base interface for Logger Application gui components.
Definition: lgrGuiComponent.h:36
The DtStateObserverView represents the view for the state observer which is part of a standard Model-...
Definition: stateObView.h:31
bool myActiveState
Definition: stateObView.h:109
int myCurrentUpdateCount
Definition: stateObView.h:110
A widget which can be zoomed.
Definition: lgrZoomableWidget.h:26
Contains MAKLogger::DtLgrGuiComponent class.
The logger GUI&#39;s model.
Definition: lgrGuiModel.h:56
The implementation of the control logic for the state observer.
Definition: stateObController.h:26
Contains MAKLogger::DtLgrZoomableWidget class.
The specific interface for interacting with the default logger GUI.
Definition: lgrAppGui.h:40
DtAbsoluteTime myLastGraphTime
Definition: stateObView.h:111
DtLgrGuiModel * myModel
Definition: stateObView.h:105
#define DT_DLL_STATEOBSERVER
Definition: stateObserver.h:19
Contains the IMPORT/EXPORT macros.
DtLgrAppGui * myGui
Definition: stateObView.h:104
Widget which draws a line graphic where the data is progressively added over time.
Definition: progressiveLineGraph.h:32
GraphIds
Definition: stateObView.h:116
Contains MAKLogger::DtTimeComponent class.
Absolute Time, a particular measured instance in time, could be thought of as a set of relative times...
Definition: absoluteTime.h:82
Widget class.
Definition: stateObViewWidget.h:20

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)