svcore
1.9
|
Text point type for use in a SparseModel. More...
#include <TextModel.h>
Classes | |
struct | Comparator |
struct | OrderComparator |
Public Member Functions | |
TextPoint (long _frame) | |
TextPoint (long _frame, float _height, QString _label) | |
int | getDimensions () const |
QString | getLabel () const |
void | toXml (QTextStream &stream, QString indent="", QString extraAttributes="") const |
Stream this exportable object out to XML on a text stream. | |
QString | toDelimitedDataString (QString delimiter, int sampleRate) const |
virtual QString | toXmlString (QString indent="", QString extraAttributes="") const |
Convert this exportable object to XML in a string. | |
Static Public Member Functions | |
static QString | encodeEntities (QString) |
static QString | encodeColour (int r, int g, int b) |
static int | getObjectExportId (const void *) |
Public Attributes | |
long | frame |
float | height |
QString | label |
Text point type for use in a SparseModel.
This represents a piece of text at a given time and y-value in the [0,1) range (indicative of height on the window). Intended for casual textual annotations.
Definition at line 31 of file TextModel.h.
TextPoint::TextPoint | ( | long | _frame | ) | [inline] |
Definition at line 34 of file TextModel.h.
TextPoint::TextPoint | ( | long | _frame, |
float | _height, | ||
QString | _label | ||
) | [inline] |
Definition at line 35 of file TextModel.h.
int TextPoint::getDimensions | ( | ) | const [inline] |
Definition at line 38 of file TextModel.h.
QString TextPoint::getLabel | ( | ) | const [inline] |
Definition at line 44 of file TextModel.h.
References label.
void TextPoint::toXml | ( | QTextStream & | stream, |
QString | indent = "" , |
||
QString | extraAttributes = "" |
||
) | const [inline, virtual] |
Stream this exportable object out to XML on a text stream.
Implements XmlExportable.
Definition at line 46 of file TextModel.h.
References XmlExportable::encodeEntities(), frame, height, and label.
QString TextPoint::toDelimitedDataString | ( | QString | delimiter, |
int | sampleRate | ||
) | const [inline] |
Definition at line 54 of file TextModel.h.
References frame, RealTime::frame2RealTime(), height, label, and RealTime::toString().
QString XmlExportable::toXmlString | ( | QString | indent = "" , |
QString | extraAttributes = "" |
||
) | const [virtual, inherited] |
Convert this exportable object to XML in a string.
The default implementation calls toXml and returns the result as a string. Do not override this unless you really know what you're doing.
Definition at line 25 of file XmlExportable.cpp.
References XmlExportable::toXml().
Referenced by ModelTransformerFactory::getConfigurationForTransform(), and RDFTransformFactoryImpl::getTransforms().
QString XmlExportable::encodeEntities | ( | QString | s | ) | [static, inherited] |
Definition at line 41 of file XmlExportable.cpp.
Referenced by TextMatcher::test(), PluginXml::toXml(), OneDimensionalPoint::toXml(), TimeValuePoint::toXml(), toXml(), ImagePoint::toXml(), RegionRec::toXml(), Note::toXml(), FlexiNote::toXml(), WritableWaveFileModel::toXml(), WaveFileModel::toXml(), SparseValueModel< RegionRec >::toXml(), Transform::toXml(), and Model::toXml().
QString XmlExportable::encodeColour | ( | int | r, |
int | g, | ||
int | b | ||
) | [static, inherited] |
Definition at line 54 of file XmlExportable.cpp.
int XmlExportable::getObjectExportId | ( | const void * | object | ) | [static, inherited] |
Definition at line 71 of file XmlExportable.cpp.
References mutex.
Referenced by FFTDataServer::generateFileBasename(), AlignmentModel::toXml(), EditableDenseThreeDimensionalModel::toXml(), and Model::toXml().
long TextPoint::frame |
Definition at line 40 of file TextModel.h.
Referenced by TextPoint::Comparator::operator()(), TextPoint::OrderComparator::operator()(), toDelimitedDataString(), and toXml().
float TextPoint::height |
Definition at line 41 of file TextModel.h.
Referenced by TextModel::getSetDataCommand(), TextPoint::Comparator::operator()(), toDelimitedDataString(), and toXml().
QString TextPoint::label |
Definition at line 42 of file TextModel.h.
Referenced by getLabel(), TextModel::getSetDataCommand(), TextPoint::Comparator::operator()(), toDelimitedDataString(), and toXml().