|
svcore
1.9
|
#include <Selection.h>


Public Types | |
| typedef std::set< Selection > | SelectionList |
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 (int &startFrame, int &endFrame) const |
| Selection | getContainingSelection (int frame, bool defaultToFollowing) const |
| Return the selection that contains a given frame. More... | |
| virtual void | toXml (QTextStream &stream, QString indent="", QString extraAttributes="") const |
| Stream this exportable object out to XML on a text stream. 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) |
| static int | getObjectExportId (const void *) |
Protected Attributes | |
| SelectionList | m_selections |
Definition at line 61 of file Selection.h.
| typedef std::set<Selection> MultiSelection::SelectionList |
Definition at line 67 of file Selection.h.
| MultiSelection::MultiSelection | ( | ) |
Definition at line 102 of file Selection.cpp.
|
virtual |
Definition at line 106 of file Selection.cpp.
| const MultiSelection::SelectionList & MultiSelection::getSelections | ( | ) | const |
Definition at line 111 of file Selection.cpp.
References m_selections.
Referenced by WavFileWriter::writeModel(), and CSVFileWriter::writeSelection().
| void MultiSelection::setSelection | ( | const Selection & | selection | ) |
Definition at line 117 of file Selection.cpp.
References addSelection(), and clearSelections().
Referenced by WavFileWriter::writeModel().
| void MultiSelection::addSelection | ( | const Selection & | selection | ) |
Definition at line 124 of file Selection.cpp.
References m_selections.
Referenced by setSelection().
| void MultiSelection::removeSelection | ( | const Selection & | selection | ) |
!! Likewise this needs to cope correctly with the situation
Definition at line 156 of file Selection.cpp.
References m_selections.
| void MultiSelection::clearSelections | ( | ) |
Definition at line 169 of file Selection.cpp.
References m_selections.
Referenced by setSelection().
| void MultiSelection::getExtents | ( | int & | startFrame, |
| int & | endFrame | ||
| ) | const |
Definition at line 177 of file Selection.cpp.
References m_selections.
| Selection MultiSelection::getContainingSelection | ( | int | 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 m_selections.
Referenced by Labeller::labelAll().
|
virtual |
Stream this exportable object out to XML on a text stream.
Implements XmlExportable.
Definition at line 217 of file Selection.cpp.
References m_selections.
|
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().
|
staticinherited |
Definition at line 41 of file XmlExportable.cpp.
Referenced by TextMatcher::test(), PluginXml::toXml(), OneDimensionalPoint::toXml(), TimeValuePoint::toXml(), ImagePoint::toXml(), TextPoint::toXml(), RegionRec::toXml(), Note::toXml(), FlexiNote::toXml(), WritableWaveFileModel::toXml(), WaveFileModel::toXml(), SparseValueModel< RegionRec >::toXml(), Transform::toXml(), and Model::toXml().
|
staticinherited |
Definition at line 54 of file XmlExportable.cpp.
|
staticinherited |
Definition at line 71 of file XmlExportable.cpp.
References mutex.
Referenced by FFTDataServer::generateFileBasename(), AlignmentModel::toXml(), EditableDenseThreeDimensionalModel::toXml(), and Model::toXml().
|
protected |
Definition at line 89 of file Selection.h.
Referenced by addSelection(), clearSelections(), getContainingSelection(), getExtents(), getSelections(), removeSelection(), and toXml().