MuseScore  3.4
Music composition and notation
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
Ms::ConnectorInfo Class Reference

Stores a general information on various connecting elements (currently only spanners) including their endpoints locations. More...

#include <connector.h>

Inheritance diagram for Ms::ConnectorInfo:
Inheritance graph
[legend]
Collaboration diagram for Ms::ConnectorInfo:
Collaboration graph
[legend]

Public Member Functions

 ConnectorInfo (const Element *current, int track=-1, Fraction={ -1, 1})
 
 ConnectorInfo (const Score *score, const Location &currentLocation)
 
ConnectorInfoprev () const
 
ConnectorInfonext () const
 
ConnectorInfostart ()
 
ConnectorInfoend ()
 
ElementType type () const
 
const Locationlocation () 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)
 
ConnectorInfofindFirst ()
 
const ConnectorInfofindFirst () const
 
ConnectorInfofindLast ()
 
const ConnectorInfofindLast () 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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ConnectorInfo() [1/2]

Ms::ConnectorInfo::ConnectorInfo ( const Element current,
int  track = -1,
Fraction  frac = { -1, 1} 
)

◆ ConnectorInfo() [2/2]

Ms::ConnectorInfo::ConnectorInfo ( const Score score,
const Location currentLocation 
)

Member Function Documentation

◆ connect()

bool Ms::ConnectorInfo::connect ( ConnectorInfo other)

◆ connectionDistance()

int Ms::ConnectorInfo::connectionDistance ( const ConnectorInfo c2) const

◆ currentUpdated()

bool Ms::ConnectorInfo::currentUpdated ( ) const
inlineprotected

◆ end()

ConnectorInfo * Ms::ConnectorInfo::end ( )

◆ findFirst() [1/2]

ConnectorInfo * Ms::ConnectorInfo::findFirst ( )
protected

◆ findFirst() [2/2]

const ConnectorInfo * Ms::ConnectorInfo::findFirst ( ) const
protected

◆ findLast() [1/2]

ConnectorInfo * Ms::ConnectorInfo::findLast ( )
protected

◆ findLast() [2/2]

const ConnectorInfo * Ms::ConnectorInfo::findLast ( ) const
protected

◆ finished()

bool Ms::ConnectorInfo::finished ( ) const

◆ finishedLeft()

bool Ms::ConnectorInfo::finishedLeft ( ) const
private

◆ finishedRight()

bool Ms::ConnectorInfo::finishedRight ( ) const
private

◆ forceConnect()

void Ms::ConnectorInfo::forceConnect ( ConnectorInfo c2)

◆ hasNext()

bool Ms::ConnectorInfo::hasNext ( ) const
inline

◆ hasPrevious()

bool Ms::ConnectorInfo::hasPrevious ( ) const
inline

◆ isEnd()

bool Ms::ConnectorInfo::isEnd ( ) const
inline

◆ isMiddle()

bool Ms::ConnectorInfo::isMiddle ( ) const
inline

◆ isStart()

bool Ms::ConnectorInfo::isStart ( ) const
inline

◆ location()

const Location& Ms::ConnectorInfo::location ( ) const
inline

◆ next()

ConnectorInfo* Ms::ConnectorInfo::next ( ) const
inline

◆ orderedConnectionDistance()

int Ms::ConnectorInfo::orderedConnectionDistance ( const ConnectorInfo c1,
const ConnectorInfo c2 
)
staticprivate

◆ prev()

ConnectorInfo* Ms::ConnectorInfo::prev ( ) const
inline

◆ setCurrentUpdated()

void Ms::ConnectorInfo::setCurrentUpdated ( bool  v)
inlineprotected

◆ start()

ConnectorInfo * Ms::ConnectorInfo::start ( )

◆ type()

ElementType Ms::ConnectorInfo::type ( ) const
inline

◆ updateCurrentInfo()

void Ms::ConnectorInfo::updateCurrentInfo ( bool  clipboardmode)
protected

◆ updateLocation()

void Ms::ConnectorInfo::updateLocation ( const Element e,
Location i,
bool  clipboardmode 
)
protected

Member Data Documentation

◆ _current

const Element* Ms::ConnectorInfo::_current { 0 }
private

◆ _currentLoc

Location Ms::ConnectorInfo::_currentLoc
protected

◆ _currentUpdated

bool Ms::ConnectorInfo::_currentUpdated { false }
private

◆ _next

ConnectorInfo* Ms::ConnectorInfo::_next { 0 }
protected

◆ _nextLoc

Location Ms::ConnectorInfo::_nextLoc { Location::absolute() }
protected

◆ _prev

ConnectorInfo* Ms::ConnectorInfo::_prev { 0 }
protected

◆ _prevLoc

Location Ms::ConnectorInfo::_prevLoc { Location::absolute() }
protected

◆ _score

const Score* Ms::ConnectorInfo::_score
private

◆ _type

ElementType Ms::ConnectorInfo::_type { ElementType::INVALID }
protected

The documentation for this class was generated from the following files: