svcore  1.9
TimeValuePoint Struct Reference

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

#include <SparseTimeValueModel.h>

Classes

struct  Comparator
 
struct  OrderComparator
 

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, int sampleRate) const
 

Public Attributes

long frame
 
float value
 
QString label
 

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.

Constructor & Destructor Documentation

◆ TimeValuePoint() [1/2]

TimeValuePoint::TimeValuePoint ( long  _frame)
inline

Definition at line 32 of file SparseTimeValueModel.h.

◆ TimeValuePoint() [2/2]

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

Definition at line 33 of file SparseTimeValueModel.h.

Member Function Documentation

◆ getDimensions()

int TimeValuePoint::getDimensions ( ) const
inline

Definition at line 36 of file SparseTimeValueModel.h.

◆ getLabel()

QString TimeValuePoint::getLabel ( ) const
inline

Definition at line 42 of file SparseTimeValueModel.h.

References label.

◆ toXml()

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

Definition at line 44 of file SparseTimeValueModel.h.

References XmlExportable::encodeEntities(), frame, label, and value.

◆ toDelimitedDataString()

QString TimeValuePoint::toDelimitedDataString ( QString  delimiter,
int  sampleRate 
) const
inline

Member Data Documentation

◆ frame

◆ value

◆ label


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