svcore  1.9
TextPoint Struct Reference

Text point type for use in a SparseModel. More...

#include <TextModel.h>

Inheritance diagram for TextPoint:
Collaboration diagram for TextPoint:

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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::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]

Member Data Documentation


The documentation for this struct was generated from the following file: