ImagePoint Struct Reference

#include <ImageModel.h>

Inherits XmlExportable.

Inheritance diagram for ImagePoint:

Inheritance graph
[legend]
Collaboration diagram for ImagePoint:

Collaboration graph
[legend]
List of all members.

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 29 of file ImageModel.h.

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, size_t 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 (QColor)
static int getObjectExportId (const void *)

Public Attributes

long frame
QString image
QString label

Classes

struct  Comparator
struct  OrderComparator


Constructor & Destructor Documentation

ImagePoint::ImagePoint ( long  _frame  )  [inline]

Definition at line 32 of file ImageModel.h.

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

Definition at line 33 of file ImageModel.h.


Member Function Documentation

int ImagePoint::getDimensions (  )  const [inline]

Definition at line 36 of file ImageModel.h.

QString ImagePoint::getLabel (  )  const [inline]

Definition at line 42 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 44 of file ImageModel.h.

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

QString ImagePoint::toDelimitedDataString ( QString  delimiter,
size_t  sampleRate 
) const [inline]

Definition at line 56 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 LayerFactory::setLayerDefaultProperties().

QString XmlExportable::encodeEntities ( QString   )  [static, inherited]

Definition at line 41 of file XmlExportable.cpp.

Referenced by AudioGenerator::getDefaultPlayPluginConfiguration(), SVFileReader::readPlugin(), Layer::toBriefXml(), WaveFileModel::toXml(), Transform::toXml(), TextPoint::toXml(), PluginXml::toXml(), Model::toXml(), Layer::toXml(), toXml(), and Document::writeBackwardCompatibleDerivation().

QString XmlExportable::encodeColour ( QColor   )  [static, inherited]

Definition at line 54 of file XmlExportable.cpp.

Referenced by ColourDatabase::getStringValues().

int XmlExportable::getObjectExportId ( const void *   )  [static, inherited]

Definition at line 71 of file XmlExportable.cpp.

Referenced by FFTDataServer::generateFileBasename(), View::getTextLabelHeight(), Layer::toBriefXml(), SparseModel< PointType >::toXml(), Model::toXml(), Layer::toXml(), EditableDenseThreeDimensionalModel::toXml(), Document::toXml(), and Document::writeBackwardCompatibleDerivation().


Member Data Documentation

long ImagePoint::frame

Definition at line 38 of file ImageModel.h.

Referenced by ImageLayer::moveSelection(), ImagePoint::OrderComparator::operator()(), ImagePoint::Comparator::operator()(), toDelimitedDataString(), and toXml().

QString ImagePoint::image

Definition at line 39 of file ImageModel.h.

Referenced by ImageModel::ChangeImageCommand::ChangeImageCommand(), ImagePoint::Comparator::operator()(), toDelimitedDataString(), and toXml().

QString ImagePoint::label

Definition at line 40 of file ImageModel.h.

Referenced by ImageModel::ChangeImageCommand::ChangeImageCommand(), getLabel(), ImagePoint::Comparator::operator()(), toDelimitedDataString(), and toXml().


The documentation for this struct was generated from the following file:
Generated on Wed Feb 20 15:45:33 2008 for SonicVisualiser by  doxygen 1.5.1