svcore
1.9
|
Image point type for use in a SparseModel. More...
#include <ImageModel.h>
Classes | |
struct | Comparator |
struct | OrderComparator |
Public Member Functions | |
ImagePoint (long _frame) | |
ImagePoint (long _frame, QString _image, 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 |
QString | image |
QString | label |
Image point type for use in a SparseModel.
This represents an image, identified by filename, at a given time. The filename can be empty, in which case we instead have a space to put an image in.
Definition at line 31 of file ImageModel.h.
ImagePoint::ImagePoint | ( | long | _frame | ) | [inline] |
Definition at line 34 of file ImageModel.h.
ImagePoint::ImagePoint | ( | long | _frame, |
QString | _image, | ||
QString | _label | ||
) | [inline] |
Definition at line 35 of file ImageModel.h.
int ImagePoint::getDimensions | ( | ) | const [inline] |
Definition at line 38 of file ImageModel.h.
QString ImagePoint::getLabel | ( | ) | const [inline] |
Definition at line 44 of file ImageModel.h.
References label.
void ImagePoint::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 ImageModel.h.
References XmlExportable::encodeEntities(), frame, image, and label.
QString ImagePoint::toDelimitedDataString | ( | QString | delimiter, |
int | sampleRate | ||
) | const [inline] |
Definition at line 58 of file ImageModel.h.
References frame, RealTime::frame2RealTime(), image, 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(), TextPoint::toXml(), 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 ImagePoint::frame |
Definition at line 40 of file ImageModel.h.
Referenced by ImagePoint::Comparator::operator()(), ImagePoint::OrderComparator::operator()(), toDelimitedDataString(), and toXml().
QString ImagePoint::image |
Definition at line 41 of file ImageModel.h.
Referenced by ImageModel::ChangeImageCommand::ChangeImageCommand(), ImageModel::getSetDataCommand(), ImagePoint::Comparator::operator()(), toDelimitedDataString(), and toXml().
QString ImagePoint::label |
Definition at line 42 of file ImageModel.h.
Referenced by ImageModel::ChangeImageCommand::ChangeImageCommand(), getLabel(), ImageModel::getSetDataCommand(), ImagePoint::Comparator::operator()(), toDelimitedDataString(), and toXml().