svcore  1.9
ImagePoint Struct Reference

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

#include <ImageModel.h>

Inheritance diagram for ImagePoint:
Collaboration diagram for ImagePoint:

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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