|
|
| Metadata () |
| | Constructs a new Metadata object with empty values.
|
| |
| void | addSource (SourceID id, SourceType type, const SourceSettings &settings, FrameTime startOffset=0) |
| | Adds a new source to the metadata. More...
|
| |
| void | addVideo (SourceID id, const std::string &path) |
| | Adds a new recorded video file for the specified source. More...
|
| |
|
void | clearSources () |
| | Removes all sources from the Metadata object.
|
| |
| std::vector< CalibrationPoint > | getCalibrationPoints (SourceID source) |
| | Gets the calibration points of the specified source. More...
|
| |
| QDir | getContainingDirectory () const |
| | Gets the path of the directory specifying where the metadata file is located. More...
|
| |
| std::vector< GraphMarker > | getMarkers () const |
| | Gets the markers associated with the metadata. More...
|
| |
| std::vector< SourceID > | getSources () const |
| | Gets the ids of the sources associated with the metadata. More...
|
| |
| SourceSettings | getSourceSettings (SourceID source) const |
| | Gets the source settings for the specified source from the metadata. More...
|
| |
| FrameTime | getStartOffset (SourceID source) const |
| | Gets the start offset for the specified source. More...
|
| |
| int | getVideoCount () const |
| | Gets the total video count of all sources. More...
|
| |
| std::vector< std::string > | getVideos (SourceID id) |
| | Gets the recorded videos associated with the specified source. More...
|
| |
| bool | readFromFile (const std::string &path) |
| | Reads the metadata information from the specified XML file. More...
|
| |
| void | setCalibrationPoints (const std::vector< CalibrationPoint > &points) |
| | Sets the calibration points for the metadata. More...
|
| |
| void | setCalibrationPoints (SourceID id, const std::vector< CalibrationPoint > &points) |
| | Sets the calibration points for the specified source. More...
|
| |
| void | setMarkers (const std::vector< GraphMarker > &markers) |
| | Sets the graph markers for the metadata. More...
|
| |
| bool | writeToFile () const |
| | Writes the metadata to the default file. More...
|
| |
| bool | writeToFile (const std::string &path) const |
| | Writes the metadata to the specified file. More...
|
| |
| const_iterator | begin () const |
| | Returns a const iterator to the beginning of the collection. More...
|
| |
| const_iterator | end () const |
| | Returns a const iterator to the end of the collection. More...
|
| |
| std::string | get (const std::string &name) const |
| | Gets the value of the specified key as a string. More...
|
| |
| bool | getBool (const std::string &name) const |
| | Gets the value of the specified key as a bool. More...
|
| |
| QColor | getColor (const std::string &name) const |
| | Gets the value of the specified key as a QColor. More...
|
| |
| QString | getQString (const std::string &name) const |
| | Gets the value of the specified key as a QString. More...
|
| |
| double | getDouble (const std::string &name) const |
| | Gets the value of the specified key as a double. More...
|
| |
| int | getInt (const std::string &name) const |
| | Gets the value of the specified key as an integer. More...
|
| |
| template<typename ValueType , int N> |
| std::array< ValueType, N > | getValues (const std::string &name) const |
| | Gets an array of values from the specified key. More...
|
| |
| void | set (const std::string &name, const std::string &value) |
| | Sets the value of the specified key. More...
|
| |
| void | setBool (const std::string &name, bool value) |
| | Sets the value of the specified key as a bool. More...
|
| |
| void | setColor (const std::string &name, const QColor &value) |
| | Sets the value of the specified key as a QColor. More...
|
| |
| void | setInt (const std::string &name, int value) |
| | Sets the value of the specified key as an int. More...
|
| |
| template<typename... T> |
| void | setValues (const std::string &name, T...values) |
| | Sets the value of the specified key as an array. More...
|
| |
| void | setQString (const std::string &name, const QString &value) |
| | Sets the value of the specified key as a QString. More...
|
| |
| bool | trySet (const std::string &name, const std::string &value) |
| | Attempts to set the value of the specified key. More...
|
| |
Represents the metadata associated with a measurement.
Provides methods for reading and writing the metadata from and to an XML file.
- Author
- Mika Lehtinen