MuseScore
3.4
Music composition and notation
|
Stores a general information on various connecting elements (currently only spanners) including their endpoints locations. More...
#include <connector.h>
Public Member Functions | |
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 | |
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 | |
ElementType | _type { ElementType::INVALID } |
Location | _currentLoc |
Location | _prevLoc { Location::absolute() } |
Location | _nextLoc { Location::absolute() } |
ConnectorInfo * | _prev { 0 } |
ConnectorInfo * | _next { 0 } |
Private Member Functions | |
bool | finishedLeft () const |
bool | finishedRight () const |
Static Private Member Functions | |
static int | orderedConnectionDistance (const ConnectorInfo &c1, const ConnectorInfo &c2) |
Private Attributes | |
const Element * | _current { 0 } |
bool | _currentUpdated { false } |
const Score * | _score |
Stores a general information on various connecting elements (currently only spanners) including their endpoints locations.
Base class of helper classes used to read and write such elements.
Ms::ConnectorInfo::ConnectorInfo | ( | const Element * | current, |
int | track = -1 , |
||
Fraction | frac = { -1, 1} |
||
) |
bool Ms::ConnectorInfo::connect | ( | ConnectorInfo * | other | ) |
int Ms::ConnectorInfo::connectionDistance | ( | const ConnectorInfo & | c2 | ) | const |
|
inlineprotected |
ConnectorInfo * Ms::ConnectorInfo::end | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
bool Ms::ConnectorInfo::finished | ( | ) | const |
|
private |
|
private |
void Ms::ConnectorInfo::forceConnect | ( | ConnectorInfo * | c2 | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
staticprivate |
|
inline |
|
inlineprotected |
ConnectorInfo * Ms::ConnectorInfo::start | ( | ) |
|
inline |
|
protected |
|
protected |
|
private |
|
protected |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |
|
private |
|
protected |