MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Slots | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Properties
MAKLogger::DtLgrDataViewComponent Class Reference
+ Inheritance diagram for MAKLogger::DtLgrDataViewComponent:
+ Collaboration diagram for MAKLogger::DtLgrDataViewComponent:

Public Slots

virtual void reloadFile (QString fileName)
 File has changed; reload it. More...
 
virtual void reloadFile (const DtLgrEditorInterface::FileDataOperations &fileOp)
 Edit operation has changed data; reload it. More...
 
virtual void syncRunningData (DtLgrGuiModel &)
 Running data has changed; sync it with the view. More...
 
virtual void syncExpandingData (DtLgrGuiModel &)
 Expanding data has changed; sync it with the view. More...
 
- Public Slots inherited from MAKLogger::DtLgrGuiComponent

Public Member Functions

 DtLgrDataViewComponent (DtLgrGuiModel &model, const QString &name)
 The CTOR. More...
 
virtual ~DtLgrDataViewComponent ()
 The DTOR. More...
 
virtual void update ()
 This is called to update the component. More...
 
virtual double updateTime ()
 Returns the desired times between updates in seconds. More...
 
virtual QWidgetinitialize (QWidget *parent)
 This method is called when the logger Gui has been initialized. More...
 
virtual void activate ()
 This method is called when the component is shown. More...
 
virtual void deactivate ()
 This method is called when the component is hidden. More...
 
virtual DtLgrZoomableWidgetzoomComponent ()
 Access component as zoom component, return NULL if component is not a zoom component. More...
 
virtual void updateExportData (DtLgrDataViewSetSP set)
 Called by other threads to set the data to be used. More...
 
virtual void addRunningData (const DtLgrDataViewSet &set)
 Added by other threads to add data to the running set. More...
 
virtual DtLgrDataViewSetSP getExportData ()
 Get a pointer the the current data set. More...
 
virtual bool getRunningData (DtLgrDataViewSet &outputSet)
 Get the running data into the output set. More...
 
virtual void reloadFile ()
 Reload the file data into the view. More...
 
virtual QWidgetgraph ()
 
virtual void enableZoom ()
 
- Public Member Functions inherited from MAKLogger::DtLgrGuiComponent
virtual ~DtLgrGuiComponent ()
 Default Destructor. More...
 
virtual void startTimer (QObject *parent)
 Called to start the update timer. More...
 
virtual void stopTimer ()
 Called to stop the update timer. More...
 
virtual void release (QWidget *parent)
 The component is being removed. More...
 
virtual bool canExit () const
 This method provides a way for components to control whether the application can quit. More...
 
virtual bool canCloseFile () const
 This method provides a way for components to control whether the application can close a file. More...
 
virtual QWidgetcontainer ()
 Get the container widget. More...
 
virtual void setContainer (QWidget *widget)
 Sets the container. More...
 
virtual const QIcon & iconSet () const
 Get an optional icon set. By default returns null QIconSet. More...
 
virtual void setIconSet (const QIcon &iconSet)
 
virtual QString name () const
 Get the component name. More...
 
virtual QKeySequence shortcut () const
 Get the component's accelerator. More...
 
virtual void setKeySequence (const QKeySequence &sequence)
 Set the key sequence of the view component menu item. More...
 

Static Public Attributes

static DtRelativeTime theSliceLast
 
static DtRelativeTime thePadFirst
 

Protected Member Functions

virtual void syncData ()
 Synchronize the data. More...
 
void toggleRunningData (const bool &running)
 Update running state. More...
 
void lastTimeChanged (const DtAbsoluteTime &lastTime)
 Update last time. More...
 
void jumpTimeChanged (const DtAbsoluteTime &jumpTime)
 Jump in time. More...
 
void fileExpandingChanged (const bool &isExpanding)
 File has stopped expanding (as far as playback interface is concerned). More...
 
void followExportIntervalChanged (const double &interval)
 Follow export interval has changed. More...
 
void updateCurrentSet (const DtString &exportType)
 Call back for updating the current data set after the export is complete. More...
 
virtual void adjustValue (unsigned long &value, const DtLgrDataViewSet::DataPoint &dataPoint)
 Adjust the data value using the given data point. More...
 
virtual double updateGraph (const DtLgrDataViewSet &aSet, double firstVisibleTime, double lastVisibleTime)
 Update the graph via a dataset. More...
 
void cancelUpdateCurrentSet (const DtString &exportType)
 Call back for canceling the data set update request. More...
 
- Protected Member Functions inherited from MAKLogger::DtLgrGuiComponent
 DtLgrGuiComponent (QString name)
 

Protected Attributes

DtLgrGuiModelmyModel
 
DtProgressiveLineGraphmyGraph
 
QWidgetmyMainWidget
 
DtMutex * myDataMutex
 
DtMutex * myRunningMutex
 
DtString myExporteraName
 
bool myDataOutOfSyncFlag
 
bool myWaitingForDataFlag
 
bool myActivatedFlag
 
bool myRecording
 
bool myFileLoading
 
bool myJumpPending
 
DtAbsoluteTime myUpdateFirstTime
 
DtAbsoluteTime myUpdateLastTime
 
DtAbsoluteTime myLastTimeChange
 
DtAbsoluteTime myPreviousFirstTime
 
DtAbsoluteTime myPreviousLastTime
 
DtAbsoluteTime myJumpTime
 
DtTime myNextExportTime
 
DtLgrDataViewSetSP myExportedDataSet
 
DtLgrDataViewSetmyRunningDataSet
 
DtLgrDataViewSetmyCompleteDataSet
 
size_t myRunningDataIndex
 
bool myIsExpanding
 
DtTime myExportInterval
 
DtClock myClock
 
QColor myGraphBG
 
QColor myGraphFG
 
QColor myUpdateColor
 
QColor myInteraColor
 
QColor myCheckpColor
 
- Protected Attributes inherited from MAKLogger::DtLgrGuiComponent
QWidgetmyContainer
 
QTimer * myTimer
 
QString myName
 
QIcon myIconSet
 
QKeySequence mySequence
 

Static Protected Attributes

static const int Graph_Updates = 0
 
static const int Graph_Interactions = 1
 
static const int Graph_Checkpoints = 2
 

Properties

QColor GraphBG
 
QColor GraphFG
 
QColor UpdateColor
 
QColor InteraColor
 
QColor CheckpColor
 

Constructor & Destructor Documentation

MAKLogger::DtLgrDataViewComponent::DtLgrDataViewComponent ( DtLgrGuiModel model,
const QString &  name 
)

The CTOR.

virtual MAKLogger::DtLgrDataViewComponent::~DtLgrDataViewComponent ( )
virtual

The DTOR.

Member Function Documentation

virtual void MAKLogger::DtLgrDataViewComponent::activate ( )
virtual

This method is called when the component is shown.

Implements MAKLogger::DtLgrGuiComponent.

virtual void MAKLogger::DtLgrDataViewComponent::addRunningData ( const DtLgrDataViewSet set)
virtual

Added by other threads to add data to the running set.

virtual void MAKLogger::DtLgrDataViewComponent::adjustValue ( unsigned long &  value,
const DtLgrDataViewSet::DataPoint dataPoint 
)
protectedvirtual

Adjust the data value using the given data point.

Reimplemented in MAKLogger::DtLgrSizeViewComponent.

void MAKLogger::DtLgrDataViewComponent::cancelUpdateCurrentSet ( const DtString &  exportType)
protected

Call back for canceling the data set update request.

virtual void MAKLogger::DtLgrDataViewComponent::deactivate ( )
virtual

This method is called when the component is hidden.

Implements MAKLogger::DtLgrGuiComponent.

virtual void MAKLogger::DtLgrDataViewComponent::enableZoom ( )
virtual
void MAKLogger::DtLgrDataViewComponent::fileExpandingChanged ( const bool &  isExpanding)
protected

File has stopped expanding (as far as playback interface is concerned).

void MAKLogger::DtLgrDataViewComponent::followExportIntervalChanged ( const double &  interval)
protected

Follow export interval has changed.

virtual DtLgrDataViewSetSP MAKLogger::DtLgrDataViewComponent::getExportData ( )
virtual

Get a pointer the the current data set.

virtual bool MAKLogger::DtLgrDataViewComponent::getRunningData ( DtLgrDataViewSet outputSet)
virtual

Get the running data into the output set.

Return true if new data was acquired.

virtual QWidget* MAKLogger::DtLgrDataViewComponent::graph ( )
virtual
virtual QWidget* MAKLogger::DtLgrDataViewComponent::initialize ( QWidget parent)
virtual

This method is called when the logger Gui has been initialized.

Implements MAKLogger::DtLgrGuiComponent.

Reimplemented in MAKLogger::DtLgrSizeViewComponent.

void MAKLogger::DtLgrDataViewComponent::jumpTimeChanged ( const DtAbsoluteTime jumpTime)
protected

Jump in time.

void MAKLogger::DtLgrDataViewComponent::lastTimeChanged ( const DtAbsoluteTime lastTime)
protected

Update last time.

virtual void MAKLogger::DtLgrDataViewComponent::reloadFile ( )
virtual

Reload the file data into the view.

virtual void MAKLogger::DtLgrDataViewComponent::reloadFile ( QString  fileName)
virtualslot

File has changed; reload it.

virtual void MAKLogger::DtLgrDataViewComponent::reloadFile ( const DtLgrEditorInterface::FileDataOperations fileOp)
virtualslot

Edit operation has changed data; reload it.

virtual void MAKLogger::DtLgrDataViewComponent::syncData ( )
protectedvirtual

Synchronize the data.

virtual void MAKLogger::DtLgrDataViewComponent::syncExpandingData ( DtLgrGuiModel )
virtualslot

Expanding data has changed; sync it with the view.

virtual void MAKLogger::DtLgrDataViewComponent::syncRunningData ( DtLgrGuiModel )
virtualslot

Running data has changed; sync it with the view.

void MAKLogger::DtLgrDataViewComponent::toggleRunningData ( const bool &  running)
protected

Update running state.

virtual void MAKLogger::DtLgrDataViewComponent::update ( )
virtual

This is called to update the component.

Implements MAKLogger::DtLgrGuiComponent.

void MAKLogger::DtLgrDataViewComponent::updateCurrentSet ( const DtString &  exportType)
protected

Call back for updating the current data set after the export is complete.

virtual void MAKLogger::DtLgrDataViewComponent::updateExportData ( DtLgrDataViewSetSP  set)
virtual

Called by other threads to set the data to be used.

virtual double MAKLogger::DtLgrDataViewComponent::updateGraph ( const DtLgrDataViewSet aSet,
double  firstVisibleTime,
double  lastVisibleTime 
)
protectedvirtual

Update the graph via a dataset.

virtual double MAKLogger::DtLgrDataViewComponent::updateTime ( )
virtual

Returns the desired times between updates in seconds.

If updateTime returns 1.0 the component will be updated every second, if it is 0.5 the component will be updated every 30 seconds. Return -1 if update should not be called.

Implements MAKLogger::DtLgrGuiComponent.

virtual DtLgrZoomableWidget* MAKLogger::DtLgrDataViewComponent::zoomComponent ( )
virtual

Access component as zoom component, return NULL if component is not a zoom component.

This interface will be used to automatically connect and disconnect the zoom component slots.

Implements MAKLogger::DtLgrGuiComponent.

Member Data Documentation

const int MAKLogger::DtLgrDataViewComponent::Graph_Checkpoints = 2
staticprotected
const int MAKLogger::DtLgrDataViewComponent::Graph_Interactions = 1
staticprotected
const int MAKLogger::DtLgrDataViewComponent::Graph_Updates = 0
staticprotected
bool MAKLogger::DtLgrDataViewComponent::myActivatedFlag
protected
QColor MAKLogger::DtLgrDataViewComponent::myCheckpColor
protected
DtClock MAKLogger::DtLgrDataViewComponent::myClock
protected
DtLgrDataViewSet* MAKLogger::DtLgrDataViewComponent::myCompleteDataSet
protected
DtMutex* MAKLogger::DtLgrDataViewComponent::myDataMutex
protected
bool MAKLogger::DtLgrDataViewComponent::myDataOutOfSyncFlag
protected
DtLgrDataViewSetSP MAKLogger::DtLgrDataViewComponent::myExportedDataSet
protected
DtString MAKLogger::DtLgrDataViewComponent::myExporteraName
protected
DtTime MAKLogger::DtLgrDataViewComponent::myExportInterval
protected
bool MAKLogger::DtLgrDataViewComponent::myFileLoading
protected
DtProgressiveLineGraph* MAKLogger::DtLgrDataViewComponent::myGraph
protected
QColor MAKLogger::DtLgrDataViewComponent::myGraphBG
protected
QColor MAKLogger::DtLgrDataViewComponent::myGraphFG
protected
QColor MAKLogger::DtLgrDataViewComponent::myInteraColor
protected
bool MAKLogger::DtLgrDataViewComponent::myIsExpanding
protected
bool MAKLogger::DtLgrDataViewComponent::myJumpPending
protected
DtAbsoluteTime MAKLogger::DtLgrDataViewComponent::myJumpTime
protected
DtAbsoluteTime MAKLogger::DtLgrDataViewComponent::myLastTimeChange
protected
QWidget* MAKLogger::DtLgrDataViewComponent::myMainWidget
protected
DtLgrGuiModel* MAKLogger::DtLgrDataViewComponent::myModel
protected
DtTime MAKLogger::DtLgrDataViewComponent::myNextExportTime
protected
DtAbsoluteTime MAKLogger::DtLgrDataViewComponent::myPreviousFirstTime
protected
DtAbsoluteTime MAKLogger::DtLgrDataViewComponent::myPreviousLastTime
protected
bool MAKLogger::DtLgrDataViewComponent::myRecording
protected
size_t MAKLogger::DtLgrDataViewComponent::myRunningDataIndex
protected
DtLgrDataViewSet* MAKLogger::DtLgrDataViewComponent::myRunningDataSet
protected
DtMutex* MAKLogger::DtLgrDataViewComponent::myRunningMutex
protected
QColor MAKLogger::DtLgrDataViewComponent::myUpdateColor
protected
DtAbsoluteTime MAKLogger::DtLgrDataViewComponent::myUpdateFirstTime
protected
DtAbsoluteTime MAKLogger::DtLgrDataViewComponent::myUpdateLastTime
protected
bool MAKLogger::DtLgrDataViewComponent::myWaitingForDataFlag
protected
DtRelativeTime MAKLogger::DtLgrDataViewComponent::thePadFirst
static
DtRelativeTime MAKLogger::DtLgrDataViewComponent::theSliceLast
static

Property Documentation

QColor MAKLogger::DtLgrDataViewComponent::CheckpColor
QColor MAKLogger::DtLgrDataViewComponent::GraphBG
QColor MAKLogger::DtLgrDataViewComponent::GraphFG
QColor MAKLogger::DtLgrDataViewComponent::InteraColor
QColor MAKLogger::DtLgrDataViewComponent::UpdateColor

The documentation for this class was generated from the following file:

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)