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:

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

ImagePoint::ImagePoint ( long  _frame)
inline

Definition at line 34 of file ImageModel.h.

◆ ImagePoint() [2/2]

ImagePoint::ImagePoint ( long  _frame,
QString  _image,
QString  _label 
)
inline

Definition at line 35 of file ImageModel.h.

Member Function Documentation

◆ getDimensions()

int ImagePoint::getDimensions ( ) const
inline

Definition at line 38 of file ImageModel.h.

◆ getLabel()

QString ImagePoint::getLabel ( ) const
inline

Definition at line 44 of file ImageModel.h.

References label.

◆ toXml()

void ImagePoint::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 ImageModel.h.

References XmlExportable::encodeEntities(), frame, image, and label.

◆ toDelimitedDataString()

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

◆ 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

◆ image

◆ label


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