#include <qwavmarkerinterface.h>
Inheritance diagram for QwavMarkerInterface:
Public Methods | |
int | addMarker (const QwavMarker &marker) |
bool | removeMarker (uint id) |
QwavMarker & | getMarker (uint id) |
int | hasMarkerAt (uint pixel, ulong firstSample, double zoomFac, int pixelTolerance=3) const |
uint | nrOfMarkers () const |
void | setActiveMarker (int markerId) |
int | activeMarker () const |
vector< uint > | getMarkerIds () const |
Public Attributes | |
const QwavMarker | nullMarker |
Protected Methods | |
QwavMarkerInterface () | |
virtual | ~QwavMarkerInterface () |
|
Returns the id of the active marker.
|
|
Adds marker to the list of markers and returns the id of the marker. If the same marker already exists in the list (same id), nothing is added and -1 is returned.
|
|
Returns the marker with the given id, if it exists. If no marker with that id exists, the QwavMarker::nullMarker is returned.
|
|
Returns a vector containing the id's of the stored markers. These ids can be used to iterate over all markers using getMarker().
|
|
Checks if there is a marker at position pixel. To check this, the firstSample and the zoomFac is needed. If a marker exists at that pixel, the index of the marker is returned. If no marker exists, -1 is returned.
|
|
Returns the number of markers stored.
|
|
Removes the marker with the given id from the internal list.
|
|
Make the marker with id markerId the active one. This is used internally by the GUI to store the id of the currently moved marker.
|