|
svcore
1.9
|
#include <Labeller.h>


Public Types | |
| enum | ValueType { ValueNone, ValueFromSimpleCounter, ValueFromCyclicalCounter, ValueFromTwoLevelCounter, ValueFromFrameNumber, ValueFromRealTime, ValueFromDurationFromPrevious, ValueFromDurationToNext, ValueFromTempoFromPrevious, ValueFromTempoToNext, ValueFromExistingNeighbour, ValueFromLabel } |
| typedef std::map< ValueType, QString > | TypeNameMap |
Public Member Functions | |
| Labeller (ValueType type=ValueNone) | |
| Labeller (const Labeller &l) | |
| virtual | ~Labeller () |
| TypeNameMap | getTypeNames () const |
| ValueType | getType () const |
| void | setType (ValueType type) |
| int | getCounterValue () const |
| void | setCounterValue (int v) |
| int | getSecondLevelCounterValue () const |
| void | setSecondLevelCounterValue (int v) |
| int | getCounterCycleSize () const |
| void | setCounterCycleSize (int s) |
| void | setSampleRate (float rate) |
| void | resetCounters () |
| void | incrementCounter () |
| template<typename PointType > | |
| void | label (PointType &newPoint, PointType *prevPoint=0) |
| template<typename PointType > | |
| void | labelAll (SparseModel< PointType > &model, MultiSelection *ms) |
| template<typename PointType > | |
| void | setValue (PointType &newPoint, PointType *prevPoint=0) |
| bool | requiresPrevPoint () const |
| bool | actingOnPrevPoint () const |
Protected Member Functions | |
| template<typename PointType > | |
| float | getValueFor (PointType &newPoint, PointType *prevPoint) |
Protected Attributes | |
| ValueType | m_type |
| int | m_counter |
| int | m_counter2 |
| int | m_cycle |
| int | m_dp |
| float | m_rate |
Definition at line 29 of file Labeller.h.
| typedef std::map<ValueType, QString> Labeller::TypeNameMap |
Definition at line 85 of file Labeller.h.
| enum Labeller::ValueType |
Definition at line 34 of file Labeller.h.
Definition at line 66 of file Labeller.h.
|
inline |
Definition at line 74 of file Labeller.h.
|
inlinevirtual |
Definition at line 83 of file Labeller.h.
|
inline |
Definition at line 86 of file Labeller.h.
References ValueFromCyclicalCounter, ValueFromDurationFromPrevious, ValueFromDurationToNext, ValueFromExistingNeighbour, ValueFromFrameNumber, ValueFromLabel, ValueFromRealTime, ValueFromSimpleCounter, ValueFromTempoFromPrevious, ValueFromTempoToNext, ValueFromTwoLevelCounter, and ValueNone.
|
inline |
Definition at line 115 of file Labeller.h.
References m_type.
|
inline |
Definition at line 116 of file Labeller.h.
References m_type.
|
inline |
Definition at line 118 of file Labeller.h.
References m_counter.
|
inline |
Definition at line 119 of file Labeller.h.
References m_counter.
|
inline |
Definition at line 121 of file Labeller.h.
References m_counter2.
|
inline |
Definition at line 122 of file Labeller.h.
References m_counter2.
|
inline |
Definition at line 124 of file Labeller.h.
References m_cycle.
|
inline |
Definition at line 125 of file Labeller.h.
|
inline |
Definition at line 135 of file Labeller.h.
References m_rate.
|
inline |
Definition at line 137 of file Labeller.h.
References m_counter, m_counter2, and m_cycle.
|
inline |
Definition at line 143 of file Labeller.h.
References m_counter, m_counter2, m_cycle, m_type, ValueFromCyclicalCounter, and ValueFromTwoLevelCounter.
Referenced by getValueFor(), and label().
|
inline |
Definition at line 155 of file Labeller.h.
References actingOnPrevPoint(), incrementCounter(), m_counter, m_counter2, m_type, ValueFromFrameNumber, ValueFromTwoLevelCounter, and ValueNone.
|
inline |
Definition at line 175 of file Labeller.h.
References actingOnPrevPoint(), SparseModel< PointType >::addPoint(), SparseModel< PointType >::deletePoint(), MultiSelection::getContainingSelection(), and SparseModel< PointType >::getPoints().
|
inline |
Definition at line 222 of file Labeller.h.
References actingOnPrevPoint(), m_type, and ValueFromExistingNeighbour.
|
inline |
Definition at line 239 of file Labeller.h.
References m_type, ValueFromDurationFromPrevious, ValueFromDurationToNext, and ValueFromTempoFromPrevious.
|
inline |
Definition at line 246 of file Labeller.h.
References m_type, ValueFromDurationToNext, and ValueFromTempoToNext.
Referenced by label(), labelAll(), and setValue().
|
inlineprotected |
Definition at line 253 of file Labeller.h.
References incrementCounter(), m_counter, m_counter2, m_dp, m_rate, m_type, ValueFromCyclicalCounter, ValueFromDurationFromPrevious, ValueFromDurationToNext, ValueFromExistingNeighbour, ValueFromFrameNumber, ValueFromLabel, ValueFromRealTime, ValueFromSimpleCounter, ValueFromTempoFromPrevious, ValueFromTempoToNext, ValueFromTwoLevelCounter, and ValueNone.
|
protected |
Definition at line 326 of file Labeller.h.
Referenced by actingOnPrevPoint(), getType(), getValueFor(), incrementCounter(), label(), requiresPrevPoint(), setType(), and setValue().
|
protected |
Definition at line 327 of file Labeller.h.
Referenced by getCounterValue(), getValueFor(), incrementCounter(), label(), resetCounters(), setCounterCycleSize(), and setCounterValue().
|
protected |
Definition at line 328 of file Labeller.h.
Referenced by getSecondLevelCounterValue(), getValueFor(), incrementCounter(), label(), resetCounters(), and setSecondLevelCounterValue().
|
protected |
Definition at line 329 of file Labeller.h.
Referenced by getCounterCycleSize(), incrementCounter(), resetCounters(), and setCounterCycleSize().
|
protected |
Definition at line 330 of file Labeller.h.
Referenced by getValueFor(), and setCounterCycleSize().
|
protected |
Definition at line 331 of file Labeller.h.
Referenced by getValueFor(), and setSampleRate().