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

Helper class for reading beams, tuplets and spanners. More...

#include <connector.h>

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

Public Member Functions

 ConnectorInfoReader (XmlReader &e, Element *current, int track=-1)
 
 ConnectorInfoReader (XmlReader &e, Score *current, int track=-1)
 
ConnectorInfoReaderprev () const
 
ConnectorInfoReadernext () const
 
Elementconnector ()
 
const Elementconnector () const
 
ElementreleaseConnector ()
 
bool read ()
 
void update ()
 
void addToScore (bool pasteMode)
 
- Public Member Functions inherited from Ms::ConnectorInfo
 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
 

Static Public Member Functions

static void readConnector (std::unique_ptr< ConnectorInfoReader > info, XmlReader &e)
 

Private Member Functions

void readEndpointLocation (Location &l)
 

Private Attributes

XmlReader_reader
 
Element_connector
 
ScoreElement_connectorReceiver
 

Additional Inherited Members

- 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)
 
ConnectorInfofindFirst ()
 
const ConnectorInfofindFirst () const
 
ConnectorInfofindLast ()
 
const ConnectorInfofindLast () const
 
- 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 }
 

Detailed Description

Helper class for reading beams, tuplets and spanners.

Constructor & Destructor Documentation

◆ ConnectorInfoReader() [1/2]

Ms::ConnectorInfoReader::ConnectorInfoReader ( XmlReader e,
Element current,
int  track = -1 
)

◆ ConnectorInfoReader() [2/2]

Ms::ConnectorInfoReader::ConnectorInfoReader ( XmlReader e,
Score current,
int  track = -1 
)

Member Function Documentation

◆ addToScore()

void Ms::ConnectorInfoReader::addToScore ( bool  pasteMode)

◆ connector() [1/2]

Element * Ms::ConnectorInfoReader::connector ( )

◆ connector() [2/2]

const Element * Ms::ConnectorInfoReader::connector ( ) const

◆ next()

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

◆ prev()

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

◆ read()

bool Ms::ConnectorInfoReader::read ( )

◆ readConnector()

void Ms::ConnectorInfoReader::readConnector ( std::unique_ptr< ConnectorInfoReader info,
XmlReader e 
)
static

◆ readEndpointLocation()

void Ms::ConnectorInfoReader::readEndpointLocation ( Location l)
private

◆ releaseConnector()

Element * Ms::ConnectorInfoReader::releaseConnector ( )

◆ update()

void Ms::ConnectorInfoReader::update ( )

Member Data Documentation

◆ _connector

Element* Ms::ConnectorInfoReader::_connector
private

◆ _connectorReceiver

ScoreElement* Ms::ConnectorInfoReader::_connectorReceiver
private

◆ _reader

XmlReader* Ms::ConnectorInfoReader::_reader
private

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