131 qreal
x()
const {
return ipos().x(); }
228 ChordRest*
cr(
int track)
const {
return toChordRest(_elist[track]); }
std::vector< Shape > shapes()
Definition: segment.h:215
virtual Element * prevElement()
Definition: element.cpp:1618
virtual void read(XmlReader &)
Definition: segment.cpp:843
virtual void scanElements(void *data, void(*func)(void *, Element *), bool all=true)
Definition: segment.cpp:1068
Staff * staff() const
Definition: element.cpp:254
Element * lastInPrevSegments(int activeStaff)
Definition: segment.cpp:1798
Segment * prev1enabled() const
Definition: segment.cpp:323
Segment * next1() const
return next Segment, don’t stop searching at end of Measure
Definition: segment.cpp:223
void removeElement(int track)
Definition: segment.cpp:95
bool isKeySigAnnounceType() const
Definition: segment.h:241
qreal minHorizontalDistance(Segment *, bool isSystemGap) const
Definition: segment.cpp:2052
qreal _stretch
Definition: segment.h:55
Segment * nextEnabled() const
Definition: segment.h:261
Pid
Definition: property.h:62
void removeAnnotation(Element *e)
Definition: segment.cpp:1033
void setStretch(qreal v)
Definition: segment.h:157
int staffIdx() const
Definition: element.h:322
const Shape & staffShape(int staffIdx) const
Definition: segment.h:217
Fraction ticks() const
Definition: segment.h:163
void sortStaves(QList< int > &dst)
Definition: segment.cpp:753
void clearAnnotations()
Definition: segment.cpp:1047
Element * lastElement(int staff)
Definition: segment.cpp:1116
Segment * prevEnabled() const
Definition: segment.h:285
void init()
Definition: segment.cpp:199
bool isChordRestType() const
Definition: segment.h:239
Element * element(int track) const
Definition: segment.h:116
virtual ElementType type() const
Definition: segment.h:81
Virtual base class for slurs, ties, lines etc.
Definition: spanner.h:136
Element * firstInNextSegments(int activeStaff)
Definition: segment.cpp:1246
virtual Segment * clone() const
Definition: segment.h:80
one measure in a system
Definition: measure.h:65
Fraction _tick
Definition: segment.h:52
Element * getElement(int staff)
Definition: segment.cpp:1148
bool isStartRepeatBarLineType() const
Definition: segment.h:236
Segment * _prev
Definition: segment.h:58
Shape & staffShape(int staffIdx)
Definition: segment.h:218
bool isBreathType() const
Definition: segment.h:238
std::vector< Element * > _annotations
Definition: segment.h:60
virtual void write(XmlWriter &) const
Definition: segment.cpp:827
Segment(Measure *m=0)
Definition: segment.cpp:113
bool isAmbitusType() const
Definition: segment.h:234
Base class of score layout elements.
Definition: element.h:158
void swapElements(int i1, int i2)
Definition: segment.cpp:813
void setTicks(const Fraction &v)
Definition: segment.h:164
Segment * next() const
Definition: segment.h:85
Element * firstAnnotation(Segment *s, int activeStaff)
Definition: segment.cpp:1212
bool isTimeSigAnnounceType() const
Definition: segment.h:242
int track() const
Definition: element.h:316
bool isHeaderClefType() const
Definition: segment.h:232
qreal minRight() const
Definition: segment.cpp:1994
qreal & rxpos()
Definition: element.h:236
qreal x() const
Definition: segment.h:131
Element * parent() const
Definition: element.h:192
virtual bool setProperty(Pid propertyId, const QVariant &)
Definition: segment.cpp:893
bool written() const
Definition: segment.h:151
void setNext(Segment *e)
Definition: segment.h:89
Element * prevAnnotation(Element *e)
Definition: segment.cpp:1193
virtual Fraction rtick() const override
Definition: segment.h:159
Element * lastElementOfSegment(Segment *s, int activeStaff)
Definition: segment.cpp:1395
Measure * measure() const
Definition: segment.h:129
qreal dotPosX(int staffIdx) const
Definition: segment.h:177
Element * nextAnnotation(Element *e)
Definition: segment.cpp:1173
virtual QVariant getProperty(Pid propertyId) const
Definition: segment.cpp:863
~Segment()
Definition: segment.cpp:183
System * system() const
Definition: segment.h:130
const std::vector< Element * > & annotations() const
Definition: segment.h:168
void removeStaff(int staff)
Definition: segment.cpp:433
const std::vector< Shape > & shapes() const
Definition: segment.h:216
void setEmpty(bool val) const
Definition: segment.h:69
bool isBarLineType() const
Definition: segment.h:237
Segment * next1enabled() const
Definition: segment.cpp:235
bool isBeginBarLineType() const
Definition: segment.h:230
bool splitsTuplet() const
Definition: segment.cpp:917
std::vector< qreal > _dotPosX
Definition: segment.h:63
Element * firstElementOfSegment(Segment *s, int activeStaff)
Definition: segment.cpp:1273
virtual Pid propertyId(const QStringRef &xmlName) const override
Definition: element.cpp:1326
void setFlag(ElementFlag f, bool v)
Definition: element.h:203
SegmentType
Definition: types.h:333
Segment * next1MM() const
Definition: segment.cpp:247
void setX(qreal v)
Definition: segment.h:132
bool isEndBarLineType() const
Definition: segment.h:240
ChordRest * nextChordRest(int track, bool backwards=false) const
Definition: segment.cpp:399
void createShapes()
Definition: segment.cpp:1899
virtual Fraction tick() const override
Definition: segment.cpp:212
qreal minLeft() const
Definition: segment.cpp:2021
Spanner * firstSpanner(int activeStaff)
Definition: segment.cpp:1420
Segment * prev1() const
return previous Segment, don’t stop searching at Measure begin
Definition: segment.cpp:315
bool visible() const
Definition: element.h:210
Segment * next1MMenabled() const
Definition: segment.cpp:273
Segment * prevActive() const
Definition: segment.h:273
Element * lastAnnotation(Segment *s, int activeStaff)
Definition: segment.cpp:1225
virtual QVariant propertyDefault(Pid) const
Definition: segment.cpp:879
Segment * nextCR(int track=-1, bool sameStaff=false) const
Definition: segment.cpp:370
std::vector< Element * > & elist()
Definition: segment.h:123
Definition: aeolus.cpp:26
std::vector< Element * > findAnnotations(ElementType type, int minTrack, int maxTrack)
Returns the list of found annotations or nullptr if nothing was found.
Definition: segment.cpp:1020
bool empty() const
Definition: segment.h:150
Segment * prev1MMenabled() const
Definition: segment.cpp:339
std::vector< Element * > _elist
Definition: segment.h:61
Spatium extraLeadingSpace() const
Definition: segment.h:180
SegmentType _segmentType
Definition: segment.h:51
Spanner * lastSpanner(int activeStaff)
Definition: segment.cpp:1441
void setPrev(Segment *e)
Definition: segment.h:95
void setExtraLeadingSpace(Spatium v)
Definition: segment.h:181
bool enabled() const
Definition: element.h:419
Ms::Element * elementAt(int track) const
Definition: segment.cpp:1058
qreal stretch() const
Definition: segment.h:156
Fraction _ticks
Definition: segment.h:53
virtual Element * nextElement()
Definition: element.cpp:1584
bool operator>(const Segment &) const
return true if segment is after s in list
Definition: segment.cpp:956
void setDotPosX(int staffIdx, qreal val)
Definition: segment.h:178
void setWritten(bool val) const
Definition: segment.h:152
const std::vector< Element * > & elist() const
Definition: segment.h:122
bool hasAnnotationOrElement(ElementType type, int minTrack, int maxTrack) const
return true if an annotation of type type or and element is found in the track range ...
Definition: segment.cpp:989
bool isKeySigType() const
Definition: segment.h:233
Definition: chordrest.h:48
void setSegmentType(SegmentType t)
Definition: segment.cpp:162
const char * subTypeName() const
Definition: segment.cpp:47
void checkEmpty() const
Definition: segment.cpp:794
virtual void setScore(Score *) override
Definition: segment.cpp:172
bool isType(const SegmentType t) const
Definition: segment.h:229
Segment * nextActive() const
Definition: segment.h:249
Segment * prev() const
Definition: segment.h:91
Element * prevElementOfSegment(Segment *s, Element *e, int activeStaff)
Definition: segment.cpp:1340
void fixStaffIdx()
Definition: segment.cpp:780
void checkElement(Element *, int track)
Definition: segment.cpp:453
One row of measures for all instruments; a complete piece of the timeline.
Definition: system.h:79
bool operator<(const Segment &) const
return true if segment is before s in list
Definition: segment.cpp:938
void createShape(int staffIdx)
Definition: segment.cpp:1910
virtual void add(Element *)
Definition: segment.cpp:471
bool hasElements() const
Returns true if the segment has at least one element.
Definition: segment.cpp:975
Definition: fraction.h:46
ElementType
Definition: types.h:34
std::vector< Shape > _shapes
Definition: segment.h:62
ChordRest * cr(int track) const
Definition: segment.h:228
bool flag(ElementFlag f) const
Definition: element.h:205
bool isTimeSigType() const
Definition: segment.h:235
virtual QString accessibleExtraInfo() const override
Definition: segment.cpp:1838
Segment * prev1MM() const
Definition: segment.cpp:331
bool notChordRestType(Segment *s)
Definition: segment.cpp:1467
Element * findAnnotation(ElementType type, int minTrack, int maxTrack)
Returns the first found annotation of type type or nullptr if nothing was found.
Definition: segment.cpp:1006
void setRtick(const Fraction &v)
Definition: segment.h:160
qreal minHorizontalCollidingDistance(Segment *ns) const
Definition: segment.cpp:2037
Element * firstElement(int staff)
Definition: segment.cpp:1093
Element * nextElementOfSegment(Segment *s, Element *e, int activeStaff)
Definition: segment.cpp:1291
Spatium _extraLeadingSpace
Definition: segment.h:54
const QPointF & ipos() const
Definition: element.h:229
void insertStaff(int staff)
Definition: segment.cpp:413
bool isClefType() const
Definition: segment.h:231
void setElement(int track, Element *el)
Definition: segment.cpp:78
Segment * _next
Definition: segment.h:57
SegmentType segmentType() const
Definition: segment.h:147