MuseScore
3.4
Music composition and notation
|
Helper class for writing connecting elements. More...
#include <connector.h>
Public Member Functions | |
ConnectorInfoWriter (XmlWriter &xml, const Element *current, const Element *connector, int track=-1, Fraction={ -1, 1}) | |
ConnectorInfoWriter * | prev () const |
ConnectorInfoWriter * | next () const |
const Element * | connector () const |
void | write () |
Public Member Functions inherited from Ms::ConnectorInfo | |
ConnectorInfo (const Element *current, int track=-1, Fraction={ -1, 1}) | |
ConnectorInfo (const Score *score, const Location ¤tLocation) | |
ConnectorInfo * | prev () const |
ConnectorInfo * | next () const |
ConnectorInfo * | start () |
ConnectorInfo * | end () |
ElementType | type () const |
const Location & | location () const |
bool | connect (ConnectorInfo *other) |
bool | finished () const |
int | connectionDistance (const ConnectorInfo &c2) const |
void | forceConnect (ConnectorInfo *c2) |
bool | hasPrevious () const |
bool | hasNext () const |
bool | isStart () const |
bool | isMiddle () const |
bool | isEnd () const |
Protected Member Functions | |
virtual const char * | tagName () const =0 |
Protected Member Functions inherited from Ms::ConnectorInfo | |
void | updateLocation (const Element *e, Location &i, bool clipboardmode) |
void | updateCurrentInfo (bool clipboardmode) |
bool | currentUpdated () const |
void | setCurrentUpdated (bool v) |
ConnectorInfo * | findFirst () |
const ConnectorInfo * | findFirst () const |
ConnectorInfo * | findLast () |
const ConnectorInfo * | findLast () const |
Protected Attributes | |
const Element * | _connector |
Protected Attributes inherited from Ms::ConnectorInfo | |
ElementType | _type { ElementType::INVALID } |
Location | _currentLoc |
Location | _prevLoc { Location::absolute() } |
Location | _nextLoc { Location::absolute() } |
ConnectorInfo * | _prev { 0 } |
ConnectorInfo * | _next { 0 } |
Private Attributes | |
XmlWriter * | _xml |
Helper class for writing connecting elements.
Subclasses should fill _prevInfo and _nextInfo with the proper information on the connector's endpoints.
Ms::ConnectorInfoWriter::ConnectorInfoWriter | ( | XmlWriter & | xml, |
const Element * | current, | ||
const Element * | connector, | ||
int | track = -1 , |
||
Fraction | frac = { -1, 1} |
||
) |
|
inline |
|
inline |
|
inline |
|
protectedpure virtual |
Implemented in Ms::SpannerWriter.
void Ms::ConnectorInfoWriter::write | ( | ) |
|
protected |
|
private |