# HG changeset patch # User Chris Cannam # Date 1402914525 -3600 # Node ID 3efc20c59a947a137ed7fc715b2a3b0de6c02200 # Parent 85879408f6657f4076d73839d590c9fb80b78e73 Add comment about meaning of start and end frame of selection diff -r 85879408f665 -r 3efc20c59a94 base/Selection.h --- a/base/Selection.h Mon Jun 16 09:28:12 2014 +0100 +++ b/base/Selection.h Mon Jun 16 11:28:45 2014 +0100 @@ -21,6 +21,21 @@ #include "XmlExportable.h" +/** + * A selection object simply represents a range in time, via start and + * end frame. + * + * The end frame is the index of the frame just *after* the end of the + * selection. For example a selection of length 10 frames starting at + * time 0 will have start frame 0 and end frame 10. This will be + * contiguous with (rather than overlapping with) a selection that + * starts at frame 10. + * + * Any selection with equal start and end frames is empty, + * representing "no selection". All empty selections are equal under + * the comparison operators. The default constructor makes an empty + * selection with start and end frames equal to zero. + */ class Selection { public: