stateObView.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 ******************************************************************************/
00009 
00010 #pragma once
00011 
00012 #include "stateObserver.h"
00013 
00014 #include <lgrGuiComponent.h>
00015 #include <timeComponent.h>
00016 #include <lgrZoomableWidget.h>
00017 
00018 class QWidget;
00019 
00020 namespace MAKLogger
00021 {
00022    class DtLgrAppGui;
00023    class DtLgrGuiModel;
00024    class DtProgressiveLineGraph;
00025    class DtStateObjectViewWidget;
00026    class DtStateObserverController;
00027 
00031    class DT_DLL_STATEOBSERVER DtStateObserverView : public DtLgrGuiComponent
00032    {
00033 
00034    public:
00035 
00037       DtStateObserverView(DtLgrAppGui*,DtStateObserverController*);
00038 
00040       virtual ~DtStateObserverView();
00041 
00043       void setTotalObjectCount(int count);
00044 
00046       void setRemovedObjectCount(int count);
00047 
00049       void setUnknownObjectCount(int count);
00050 
00052       void setEntityCount(int count);
00053 
00055       void setAggregateCount(int count);
00056 
00058       void setEnvironmentalProcessCount(int count);
00059 
00061       virtual QWidget* initialize(QWidget* parent);
00062 
00064       virtual void activate();
00065 
00067       virtual void deactivate();
00068 
00070       virtual bool canCloseFile() const;
00071 
00073       void startView();
00074 
00076       void stopView();
00077 
00082       virtual double updateTime();
00083 
00086       virtual void update();
00087 
00091       virtual MAKLogger::DtLgrZoomableWidget* zoomComponent();
00092 
00093 
00094    protected:
00095       DtLgrAppGui* myGui;
00096       DtLgrGuiModel* myModel;
00097       DtStateObserverController* myController;
00098       MAKLogger::DtProgressiveLineGraph* myGraph;
00099       DtStateObjectViewWidget* myWidget;
00100       bool myActiveState;
00101       int myCurrentUpdateCount;
00102       DtAbsoluteTime myLastGraphTime;
00103 
00104       // Update at 1/10 the default redraw rate.
00105       const static int theRequestUpdateRate = 10;
00106 
00107       enum GraphIds
00108       {
00109          Graph_TotalObjectCount = 1,
00110          Graph_RemovedObjectCount,
00111 
00112          Graph_UnknownObjectCount,
00113          Graph_EntityCount,
00114          Graph_AggregateCount,
00115          Graph_EnvironmentalProcessCount
00116       };
00117 
00118    };
00119 }
00120 

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)