AwCore
AnyWave core library
|
This class defines the AwMarker object. More...
Public Member Functions | |
AwMarker () | |
AwMarker (AwMarker *marker) | |
QString & | label () |
int | type () |
qint16 | value () |
float | start () |
float | duration () |
float | end () |
QStringList & | targetChannels () |
Static Public Member Functions | |
static int | stringToType (const QString &s) |
static QString | typeToString (qint32 t) |
static QStringList | markersTypeList () |
This class defines the AwMarker object.
Markers can mark a specified position in a file or a time selection. They can also target some channels. By default a marker is defined to be global. Addings channels as targets will make it channel specific.
AwMarker::AwMarker | ( | ) |
Default constructor that defines a Single marker.
AwMarker::AwMarker | ( | AwMarker * | marker | ) |
Copy constructor.
|
inline |
Returns the duration in seconds. Single marker has a duration of 0
|
inline |
Returns the ending position of a marker from the beginning of data block.
|
inline |
Returns the marker's label.
|
static |
Returns a string list of all possible marker types.
|
inline |
Returns the position in seconds from the beginning of data block.
|
static |
Returns an integer value indicating the marker's type based on a string.
|
inline |
Returns a string list containing all the channels targeted by the marker. If the list is empty then the marker is not targetting channels but it is a global marker.
|
inline |
Returns the marker's type. AwMarker::Single or AwMarker::Selection.
|
static |
Returns a string indicating the marker's type based on a integer value.
|
inline |
Returns the marker associated valued or -1 if no value is associated to the marker.