svcore  1.9
RegionRec Struct Reference

RegionModel – a concrete IntervalModel for intervals associated with a value, which we call regions for no very compelling reason. More...

#include <RegionModel.h>

Classes

struct  Comparator
 
struct  OrderComparator
 

Public Member Functions

 RegionRec ()
 
 RegionRec (long _frame)
 
 RegionRec (long _frame, float _value, int _duration, 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
 
int duration
 
QString label
 

Detailed Description

RegionModel – a concrete IntervalModel for intervals associated with a value, which we call regions for no very compelling reason.

Region "point" type. A region is something that has an onset time, a single value, and a duration. Like other points, it can also have a label.

This is called RegionRec instead of Region to avoid name collisions with the X11 Region struct. Bah.

Definition at line 36 of file RegionModel.h.

Constructor & Destructor Documentation

◆ RegionRec() [1/3]

RegionRec::RegionRec ( )
inline

Definition at line 39 of file RegionModel.h.

◆ RegionRec() [2/3]

RegionRec::RegionRec ( long  _frame)
inline

Definition at line 40 of file RegionModel.h.

◆ RegionRec() [3/3]

RegionRec::RegionRec ( long  _frame,
float  _value,
int  _duration,
QString  _label 
)
inline

Definition at line 41 of file RegionModel.h.

Member Function Documentation

◆ getDimensions()

int RegionRec::getDimensions ( ) const
inline

Definition at line 44 of file RegionModel.h.

◆ getLabel()

QString RegionRec::getLabel ( ) const
inline

Definition at line 51 of file RegionModel.h.

References label.

◆ toXml()

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

Definition at line 53 of file RegionModel.h.

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

◆ toDelimitedDataString()

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

Definition at line 63 of file RegionModel.h.

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

Member Data Documentation

◆ frame

◆ value

float RegionRec::value

◆ duration

int RegionRec::duration

◆ label


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