TimeValuePoint Struct Reference

#include <SparseTimeValueModel.h>

List of all members.


Detailed Description

Time/value point type for use in a SparseModel or SparseValueModel.

With this point type, the model basically represents a wiggly-line plot with points at arbitrary intervals of the model resolution.

Definition at line 29 of file SparseTimeValueModel.h.

Public Member Functions

 TimeValuePoint (long _frame)
 TimeValuePoint (long _frame, float _value, QString _label)
int getDimensions () const
QString getLabel () const
void toXml (QTextStream &stream, QString indent="", QString extraAttributes="") const
QString toDelimitedDataString (QString delimiter, size_t sampleRate) const

Public Attributes

long frame
float value
QString label

Classes

struct  Comparator
struct  OrderComparator


Constructor & Destructor Documentation

TimeValuePoint::TimeValuePoint ( long  _frame  )  [inline]

Definition at line 32 of file SparseTimeValueModel.h.

TimeValuePoint::TimeValuePoint ( long  _frame,
float  _value,
QString  _label 
) [inline]

Definition at line 33 of file SparseTimeValueModel.h.


Member Function Documentation

int TimeValuePoint::getDimensions (  )  const [inline]

Definition at line 36 of file SparseTimeValueModel.h.

QString TimeValuePoint::getLabel (  )  const [inline]

Definition at line 42 of file SparseTimeValueModel.h.

References label.

void TimeValuePoint::toXml ( QTextStream &  stream,
QString  indent = "",
QString  extraAttributes = "" 
) const [inline]

Definition at line 44 of file SparseTimeValueModel.h.

References frame, label, and value.

QString TimeValuePoint::toDelimitedDataString ( QString  delimiter,
size_t  sampleRate 
) const [inline]

Definition at line 51 of file SparseTimeValueModel.h.

References frame, RealTime::frame2RealTime(), label, RealTime::toString(), and value.


Member Data Documentation

long TimeValuePoint::frame

Definition at line 38 of file SparseTimeValueModel.h.

Referenced by TimeValueLayer::editOpen(), TimeValueLayer::moveSelection(), TimeValuePoint::OrderComparator::operator()(), TimeValuePoint::Comparator::operator()(), toDelimitedDataString(), and toXml().

float TimeValuePoint::value

Definition at line 39 of file SparseTimeValueModel.h.

Referenced by TimeValuePoint::Comparator::operator()(), TimeValueLayer::paste(), toDelimitedDataString(), and toXml().

QString TimeValuePoint::label

Definition at line 40 of file SparseTimeValueModel.h.

Referenced by getLabel(), TimeValuePoint::Comparator::operator()(), toDelimitedDataString(), and toXml().


The documentation for this struct was generated from the following file:
Generated on Wed Feb 20 15:45:37 2008 for SonicVisualiser by  doxygen 1.5.1