MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes

A tab widget with components for graphing data over time. More...

+ Inheritance diagram for DtAssistantPlotWidget:
+ Collaboration diagram for DtAssistantPlotWidget:

Public Member Functions

 DtAssistantPlotWidget (const QString &units, QWidget *parent=0)
 Default CTOR Instantiates a new DtAssistantPlotWidget. More...
 
virtual ~DtAssistantPlotWidget ()
 Virtual DTOR (no-op) More...
 
virtual unsigned createNewSeries (const QString &seriesName)
 Creates a new series to be plotted and returns the series ID. More...
 
virtual void updateSeries (unsigned seriesId, double time, double val)
 Updates the given plotter's series with the latest data. More...
 
virtual void setSeriesData (unsigned seriesId, double *times, double *vals, unsigned numVals)
 Updates the given plotter's series with the latest data. More...
 
virtual void clear ()
 Clears all data from the plot. More...
 
virtual const DtAssistantPlotplotter () const
 
virtual DtAssistantPlotplotter ()
 
virtual void updatePlots ()
 
virtual QSize sizeHint () const
 

Protected Slots

void visibleTimeScaleFactorChanged (float factor)
 
void scrollbarPositionChanged (int val)
 Updates the visible plot ranges when the scrollbar is adjusted. More...
 

Protected Member Functions

void layoutTab ()
 Sets up the layout of the tab (non-virtual) This method is called from the constructor to set up the tab's layout on instantiation. More...
 
virtual void resizeEvent (QResizeEvent *evt)
 Updates the amount of time visible on the plot when resized. More...
 

Protected Attributes

unsigned myNextSeriesId
 
double myLastPlottedTime
 
double myFirstPlottedTime
 
double myNumSecondsVisible
 
float myVisibleTimeScaleFactor
 
DtAssistantPlotmyPlotter
 
QScrollBar * myScrollbar
 
QAction * myAction
 
QString myUnits
 

Detailed Description

A tab widget with components for graphing data over time.

Constructor & Destructor Documentation

DtAssistantPlotWidget::DtAssistantPlotWidget ( const QString &  units,
QWidget parent = 0 
)

Default CTOR Instantiates a new DtAssistantPlotWidget.

Parameters
unitsthe units for the y axis
parentthe QWidget's parent
virtual DtAssistantPlotWidget::~DtAssistantPlotWidget ( )
virtual

Virtual DTOR (no-op)

Member Function Documentation

virtual void DtAssistantPlotWidget::clear ( )
virtual

Clears all data from the plot.

virtual unsigned DtAssistantPlotWidget::createNewSeries ( const QString &  seriesName)
virtual

Creates a new series to be plotted and returns the series ID.

Parameters
seriesNamethe name assigned to the new series
void DtAssistantPlotWidget::layoutTab ( )
protected

Sets up the layout of the tab (non-virtual) This method is called from the constructor to set up the tab's layout on instantiation.

virtual const DtAssistantPlot& DtAssistantPlotWidget::plotter ( ) const
virtual
virtual DtAssistantPlot& DtAssistantPlotWidget::plotter ( )
virtual
virtual void DtAssistantPlotWidget::resizeEvent ( QResizeEvent *  evt)
protectedvirtual

Updates the amount of time visible on the plot when resized.

void DtAssistantPlotWidget::scrollbarPositionChanged ( int  val)
protectedslot

Updates the visible plot ranges when the scrollbar is adjusted.

Parameters
valthe new value of the scrollbar
virtual void DtAssistantPlotWidget::setSeriesData ( unsigned  seriesId,
double *  times,
double *  vals,
unsigned  numVals 
)
virtual

Updates the given plotter's series with the latest data.

Parameters
seriesIdthe id of the series to set
timesthe times for each snapshot of data ( x axis values )
valsthe values of the data at the given times ( y axis values )
numValsthe number of values in times and vals
virtual QSize DtAssistantPlotWidget::sizeHint ( ) const
virtual
virtual void DtAssistantPlotWidget::updatePlots ( )
virtual
virtual void DtAssistantPlotWidget::updateSeries ( unsigned  seriesId,
double  time,
double  val 
)
virtual

Updates the given plotter's series with the latest data.

Parameters
seriesIdthe id of the series to update
timethe time the data snapshot was taken ( x axis value )
valthe value of the data at the given time ( y axis value )
void DtAssistantPlotWidget::visibleTimeScaleFactorChanged ( float  factor)
protectedslot

Member Data Documentation

QAction* DtAssistantPlotWidget::myAction
protected
double DtAssistantPlotWidget::myFirstPlottedTime
protected
double DtAssistantPlotWidget::myLastPlottedTime
protected
unsigned DtAssistantPlotWidget::myNextSeriesId
protected
double DtAssistantPlotWidget::myNumSecondsVisible
protected
DtAssistantPlot* DtAssistantPlotWidget::myPlotter
protected
QScrollBar* DtAssistantPlotWidget::myScrollbar
protected
QString DtAssistantPlotWidget::myUnits
protected
float DtAssistantPlotWidget::myVisibleTimeScaleFactor
protected

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

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)