svcore
1.9
|
#include <Selection.h>
Public Types | |
typedef std::set< Selection > | SelectionList |
enum | { NO_ID = -1 } |
typedef int | ExportId |
Public Member Functions | |
MultiSelection () | |
virtual | ~MultiSelection () |
const SelectionList & | getSelections () const |
void | setSelection (const Selection &selection) |
void | addSelection (const Selection &selection) |
void | removeSelection (const Selection &selection) |
void | clearSelections () |
void | getExtents (sv_frame_t &startFrame, sv_frame_t &endFrame) const |
Selection | getContainingSelection (sv_frame_t frame, bool defaultToFollowing) const |
Return the selection that contains a given frame. More... | |
void | toXml (QTextStream &stream, QString indent="", QString extraAttributes="") const override |
Stream this exportable object out to XML on a text stream. More... | |
QString | toString () 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 | |
SelectionList | m_selections |
Detailed Description
Definition at line 63 of file Selection.h.
Member Typedef Documentation
typedef std::set<Selection> MultiSelection::SelectionList |
Definition at line 69 of file Selection.h.
|
inherited |
Definition at line 33 of file XmlExportable.h.
Member Enumeration Documentation
|
inherited |
Enumerator | |
---|---|
NO_ID |
Definition at line 28 of file XmlExportable.h.
Constructor & Destructor Documentation
MultiSelection::MultiSelection | ( | ) |
Definition at line 102 of file Selection.cpp.
|
virtual |
Definition at line 106 of file Selection.cpp.
Member Function Documentation
const MultiSelection::SelectionList & MultiSelection::getSelections | ( | ) | const |
Definition at line 111 of file Selection.cpp.
Referenced by CSVStreamWriter::writeInChunks(), and WavFileWriter::writeModel().
void MultiSelection::setSelection | ( | const Selection & | selection | ) |
Definition at line 117 of file Selection.cpp.
Referenced by WavFileWriter::writeModel().
void MultiSelection::addSelection | ( | const Selection & | selection | ) |
Definition at line 124 of file Selection.cpp.
Referenced by CSVFileWriter::write(), and CSVStreamWriter::writeInChunks().
void MultiSelection::removeSelection | ( | const Selection & | selection | ) |
!! Likewise this needs to cope correctly with the situation
Definition at line 156 of file Selection.cpp.
void MultiSelection::clearSelections | ( | ) |
Definition at line 169 of file Selection.cpp.
void MultiSelection::getExtents | ( | sv_frame_t & | startFrame, |
sv_frame_t & | endFrame | ||
) | const |
Definition at line 177 of file Selection.cpp.
Referenced by CSVFileWriter::writeSelection().
Selection MultiSelection::getContainingSelection | ( | sv_frame_t | frame, |
bool | defaultToFollowing | ||
) | const |
Return the selection that contains a given frame.
If defaultToFollowing is true, and if the frame is not in a selected area, return the next selection after the given frame. Return the empty selection if no appropriate selection is found.
Definition at line 196 of file Selection.cpp.
References Selection::Selection().
Referenced by Labeller::labelAll(), Labeller::subdivide(), and Labeller::winnow().
|
overridevirtual |
Stream this exportable object out to XML on a text stream.
Implements XmlExportable.
Definition at line 217 of file Selection.cpp.
QString MultiSelection::toString | ( | ) | const |
Definition at line 231 of file Selection.cpp.
|
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().
|
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().
|
staticinherited |
Definition at line 41 of file XmlExportable.cpp.
Referenced by TextMatcher::test(), PluginXml::toXml(), ReadOnlyWaveFileModel::toXml(), Transform::toXml(), WritableWaveFileModel::toXml(), Model::toXml(), Event::toXml(), RegionModel::toXml(), BoxModel::toXml(), SparseTimeValueModel::toXml(), NoteModel::toXml(), and XmlExportable::~XmlExportable().
|
staticinherited |
Definition at line 54 of file XmlExportable.cpp.
Referenced by XmlExportable::~XmlExportable().
Member Data Documentation
|
protected |
Definition at line 95 of file Selection.h.
The documentation for this class was generated from the following files:
Generated by 1.8.11