MAK RTIspy API Documentation for HLA 1516
List of all members | Public Member Functions | Protected Attributes | Static Protected Attributes

A custom QwtPlotCurve that can self-update and toggle. More...

+ Inheritance diagram for DtAssistantPlotSeries:
+ Collaboration diagram for DtAssistantPlotSeries:

Public Member Functions

 DtAssistantPlotSeries (DtAssistantPlot *plot, unsigned seriesId, const QString &title)
 CTOR Instantiates a new DtQtGpsAccuracyPlotSeries for use with the given plot.
virtual ~DtAssistantPlotSeries ()
 Virtual DTOR.
void setData (double *timeVals, double *dataVals, unsigned numVals)
 Sets the data for the series.
virtual void addDataPoint (double time, double val)
 Adds a data point to the series.
virtual void clear ()
 Clears the data representing the series state.
virtual void setEnabled (bool state)
 Sets whether the series is visible on the plot and legend.
virtual unsigned seriesId () const
 Get the id this series is indexed as.
virtual void itemChanged ()
virtual void updateLegend (QwtLegend *legend) const

Protected Attributes

double * myTimeVals
double * myDataVals
unsigned myNumVals
unsigned mySeriesId
DtAssistantPlotmyPlot
bool myEnabledFlag

Static Protected Attributes

static const unsigned theMaxDataPoints = 20000

Detailed Description

A custom QwtPlotCurve that can self-update and toggle.

Constructor & Destructor Documentation

DtAssistantPlotSeries::DtAssistantPlotSeries ( DtAssistantPlot plot,
unsigned  seriesId,
const QString &  title 
)

CTOR Instantiates a new DtQtGpsAccuracyPlotSeries for use with the given plot.

Parameters
plotthe parent plot for the series (used when toggling series visibility)
titlethe name of the series

References myDataVals, myTimeVals, and theMaxDataPoints.

DtAssistantPlotSeries::~DtAssistantPlotSeries ( )
virtual

Virtual DTOR.

References myDataVals, and myTimeVals.

Member Function Documentation

void DtAssistantPlotSeries::addDataPoint ( double  time,
double  val 
)
virtual

Adds a data point to the series.

Parameters
timethe time (x value)
valuethe value (y value)

References myDataVals, myNumVals, myTimeVals, and theMaxDataPoints.

Referenced by DtAssistantPlot::updateSeries().

void DtAssistantPlotSeries::clear ( )
virtual

Clears the data representing the series state.

References myDataVals, myNumVals, and myTimeVals.

void DtAssistantPlotSeries::itemChanged ( )
virtual
unsigned DtAssistantPlotSeries::seriesId ( ) const
virtual

Get the id this series is indexed as.

References mySeriesId.

Referenced by DtAssistantPlotWidget::createNewSeries().

void DtAssistantPlotSeries::setData ( double *  timeVals,
double *  dataVals,
unsigned  numVals 
)

Sets the data for the series.

References myDataVals, myNumVals, and myTimeVals.

Referenced by DtAssistantPlotWidget::setSeriesData().

void DtAssistantPlotSeries::setEnabled ( bool  state)
virtual

Sets whether the series is visible on the plot and legend.

Parameters
statewhether the series is visible on the plot and legend

References myEnabledFlag, and myPlot.

Referenced by DtAssistantPlot::createPlotSeries().

void DtAssistantPlotSeries::updateLegend ( QwtLegend *  legend) const
virtual

Member Data Documentation

double* DtAssistantPlotSeries::myDataVals
protected
bool DtAssistantPlotSeries::myEnabledFlag
protected

Referenced by setEnabled().

unsigned DtAssistantPlotSeries::myNumVals
protected

Referenced by addDataPoint(), clear(), and setData().

DtAssistantPlot* DtAssistantPlotSeries::myPlot
protected

Referenced by setEnabled().

unsigned DtAssistantPlotSeries::mySeriesId
protected

Referenced by seriesId().

double* DtAssistantPlotSeries::myTimeVals
protected
const unsigned DtAssistantPlotSeries::theMaxDataPoints = 20000
staticprotected

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

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)