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:

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. More...
 
QString toDelimitedDataString (QString delimiter, int sampleRate) const
 
virtual QString toXmlString (QString indent="", QString extraAttributes="") const
 Convert this exportable object to XML in a string. More...
 

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() [1/2]

TextPoint::TextPoint ( long  _frame)
inline

Definition at line 34 of file TextModel.h.

◆ TextPoint() [2/2]

TextPoint::TextPoint ( long  _frame,
float  _height,
QString  _label 
)
inline

Definition at line 35 of file TextModel.h.

Member Function Documentation

◆ getDimensions()

int TextPoint::getDimensions ( ) const
inline

Definition at line 38 of file TextModel.h.

◆ getLabel()

QString TextPoint::getLabel ( ) const
inline

Definition at line 44 of file TextModel.h.

References label.

◆ toXml()

void TextPoint::toXml ( QTextStream &  stream,
QString  indent = "",
QString  extraAttributes = "" 
) const
inlinevirtual

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.

◆ toDelimitedDataString()

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().

◆ toXmlString()

QString XmlExportable::toXmlString ( QString  indent = "",
QString  extraAttributes = "" 
) const
virtualinherited

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().

◆ encodeEntities()

◆ encodeColour()

QString XmlExportable::encodeColour ( int  r,
int  g,
int  b 
)
staticinherited

Definition at line 54 of file XmlExportable.cpp.

◆ getObjectExportId()

int XmlExportable::getObjectExportId ( const void *  object)
staticinherited

Member Data Documentation

◆ frame

long TextPoint::frame

◆ height

float TextPoint::height

◆ label

QString TextPoint::label

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