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

#include <skyline.h>

Public Member Functions

 SkylineLine (bool n)
 
void add (const Shape &s)
 
void add (const QRectF &r)
 
void add (qreal x, qreal y, qreal w)
 
void clear ()
 
void paint (QPainter &) const
 
void dump () const
 
qreal minDistance (const SkylineLine &) const
 
qreal max () const
 
bool valid (const SkylineSegment &s) const
 
bool isNorth () const
 
SegIter begin ()
 
SegConstIter begin () const
 
SegIter end ()
 
SegConstIter end () const
 

Private Types

typedef std::vector< SkylineSegment >::iterator SegIter
 
typedef std::vector< SkylineSegment >::const_iterator SegConstIter
 

Private Member Functions

SegIter insert (SegIter i, qreal x, qreal y, qreal w)
 
void append (qreal x, qreal y, qreal w)
 
SegIter find (qreal x)
 
SegConstIter find (qreal x) const
 

Private Attributes

const bool north
 
std::vector< SkylineSegmentseg
 

Member Typedef Documentation

◆ SegConstIter

typedef std::vector<SkylineSegment>::const_iterator Ms::SkylineLine::SegConstIter
private

◆ SegIter

typedef std::vector<SkylineSegment>::iterator Ms::SkylineLine::SegIter
private

Constructor & Destructor Documentation

◆ SkylineLine()

Ms::SkylineLine::SkylineLine ( bool  n)
inline

Member Function Documentation

◆ add() [1/3]

void Ms::SkylineLine::add ( const Shape s)

◆ add() [2/3]

void Ms::SkylineLine::add ( const QRectF &  r)

◆ add() [3/3]

void Ms::SkylineLine::add ( qreal  x,
qreal  y,
qreal  w 
)

◆ append()

void Ms::SkylineLine::append ( qreal  x,
qreal  y,
qreal  w 
)
private

◆ begin() [1/2]

SegIter Ms::SkylineLine::begin ( )
inline

◆ begin() [2/2]

SegConstIter Ms::SkylineLine::begin ( ) const
inline

◆ clear()

void Ms::SkylineLine::clear ( )
inline

◆ dump()

void Ms::SkylineLine::dump ( ) const

◆ end() [1/2]

SegIter Ms::SkylineLine::end ( )
inline

◆ end() [2/2]

SegConstIter Ms::SkylineLine::end ( ) const
inline

◆ find() [1/2]

SkylineLine::SegIter Ms::SkylineLine::find ( qreal  x)
private

◆ find() [2/2]

SkylineLine::SegConstIter Ms::SkylineLine::find ( qreal  x) const
private

◆ insert()

SkylineLine::SegIter Ms::SkylineLine::insert ( SegIter  i,
qreal  x,
qreal  y,
qreal  w 
)
private

◆ isNorth()

bool Ms::SkylineLine::isNorth ( ) const
inline

◆ max()

qreal Ms::SkylineLine::max ( ) const

◆ minDistance()

qreal Ms::SkylineLine::minDistance ( const SkylineLine sl) const

◆ paint()

void Ms::SkylineLine::paint ( QPainter &  p) const

◆ valid()

bool Ms::SkylineLine::valid ( const SkylineSegment s) const

Member Data Documentation

◆ north

const bool Ms::SkylineLine::north
private

◆ seg

std::vector<SkylineSegment> Ms::SkylineLine::seg
private

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