#include <Path.h>

Inheritance diagram for Path:
Inheritance graph
Collaboration diagram for Path:
Collaboration graph

Public Types

typedef std::set< PathPointPoints
 
enum  { NO_ID = -1 }
 
typedef int ExportId
 

Public Member Functions

 Path (sv_samplerate_t sampleRate, int resolution)
 
 Path (const Path &)=default
 
Pathoperator= (const Path &)=default
 
sv_samplerate_t getSampleRate () const
 
int getResolution () const
 
int getPointCount () const
 
const PointsgetPoints () const
 
void add (PathPoint p)
 
void remove (PathPoint p)
 
void clear ()
 
void toXml (QTextStream &out, QString indent="", QString extraAttributes="") const override
 XmlExportable methods. More...
 
QString toDelimitedDataString (QString delimiter, DataExportOptions, sv_frame_t startFrame, sv_frame_t duration) const
 
ExportId getExportId () const
 Return the numerical export identifier for this object. More...
 
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)
 

Protected Attributes

sv_samplerate_t m_sampleRate
 
int m_resolution
 
Points m_points
 

Detailed Description

Definition at line 60 of file Path.h.

Member Typedef Documentation

typedef std::set<PathPoint> Path::Points

Definition at line 70 of file Path.h.

typedef int XmlExportable::ExportId
inherited

Definition at line 33 of file XmlExportable.h.

Member Enumeration Documentation

anonymous enum
inherited
Enumerator
NO_ID 

Definition at line 28 of file XmlExportable.h.

Constructor & Destructor Documentation

Path::Path ( sv_samplerate_t  sampleRate,
int  resolution 
)
inline

Definition at line 63 of file Path.h.

Path::Path ( const Path )
default

Member Function Documentation

Path& Path::operator= ( const Path )
default
sv_samplerate_t Path::getSampleRate ( ) const
inline

Definition at line 72 of file Path.h.

int Path::getResolution ( ) const
inline

Definition at line 73 of file Path.h.

int Path::getPointCount ( ) const
inline

Definition at line 75 of file Path.h.

const Points& Path::getPoints ( ) const
inline

Definition at line 79 of file Path.h.

Referenced by AlignmentModel::performAlignment().

void Path::add ( PathPoint  p)
inline

Definition at line 83 of file Path.h.

void Path::remove ( PathPoint  p)
inline

Definition at line 87 of file Path.h.

void Path::clear ( )
inline

Definition at line 91 of file Path.h.

void Path::toXml ( QTextStream &  out,
QString  indent = "",
QString  extraAttributes = "" 
) const
inlineoverridevirtual

XmlExportable methods.

Implements XmlExportable.

Definition at line 98 of file Path.h.

QString Path::toDelimitedDataString ( QString  delimiter,
DataExportOptions  ,
sv_frame_t  startFrame,
sv_frame_t  duration 
) const
inline

Definition at line 144 of file Path.h.

int XmlExportable::getExportId ( ) const
inherited

Return the numerical export identifier for this object.

It's allocated the first time this is called, so objects on which this is never called do not get allocated one.

Definition at line 71 of file XmlExportable.cpp.

References XmlExportable::m_exportId, and mutex.

Referenced by EditableDenseThreeDimensionalModel::toXml(), BasicCompressedDenseThreeDimensionalModel::toXml(), EventSeries::toXml(), ImageModel::toXml(), TextModel::toXml(), Model::toXml(), SparseOneDimensionalModel::toXml(), RegionModel::toXml(), BoxModel::toXml(), SparseTimeValueModel::toXml(), NoteModel::toXml(), and XmlExportable::~XmlExportable().

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(), RDFTransformFactoryImpl::getTransforms(), and XmlExportable::~XmlExportable().

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

Definition at line 54 of file XmlExportable.cpp.

Referenced by XmlExportable::~XmlExportable().

Member Data Documentation

sv_samplerate_t Path::m_sampleRate
protected

Definition at line 163 of file Path.h.

int Path::m_resolution
protected

Definition at line 164 of file Path.h.

Points Path::m_points
protected

Definition at line 165 of file Path.h.


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