Canorus 0.0
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
CADrawableMark Class Reference

Drawable instance of marks This class draws the actual marks on the canvas. More...

#include <drawablemark.h>

Inheritance diagram for CADrawableMark:
Inheritance graph
[legend]

Public Member Functions

 CADrawableMark (CAMark *mark, CADrawableContext *drawableContext, double x, double y)
 
virtual ~CADrawableMark ()
 
void draw (QPainter *p, CADrawSettings s)
 
CADrawableMarkclone (CADrawableContext *newContext=0)
 
CAMarkmark ()
 
void setRehersalMarkNumber (int n)
 
int rehersalMarkNumber ()
 
- Public Member Functions inherited from CADrawableMusElement
 CADrawableMusElement (CAMusElement *musElement, CADrawableContext *drawableContext, double x, double y)
 
CADrawableMusElementType drawableMusElementType ()
 
CAMusElementmusElement ()
 
CADrawableContextdrawableContext ()
 
void setDrawableContext (CADrawableContext *context)
 
virtual CADrawableMusElementclone (CADrawableContext *newContext=0)=0
 
- Public Member Functions inherited from CADrawable
 CADrawable (double x, double y)
 
virtual ~CADrawable ()
 
virtual void draw (QPainter *p, const CADrawSettings s)=0
 
virtual CADrawableclone ()
 
void drawHScaleHandles (QPainter *p, const CADrawSettings s)
 
void drawVScaleHandles (QPainter *p, const CADrawSettings s)
 
CADrawableType drawableType ()
 
double xPos () const
 
double yPos () const
 
double width () const
 
double height () const
 
double neededSpaceWidth () const
 
double neededSpaceHeight () const
 
double neededWidth () const
 
double neededHeight () const
 
double xCenter () const
 
double yCenter () const
 
const QRect bBox () const
 
bool isVisible () const
 
bool isSelectable () const
 
bool isHScalable () const
 
bool isVScalable () const
 
void setXPos (double xPos)
 
void setYPos (double yPos)
 
void setWidth (double width)
 
void setHeight (double height)
 
void setNeededSpaceWidth (double width)
 
void setNeededSpaceHeight (double height)
 
void setVisible (bool v)
 
void setSelectable (bool s)
 
void setHScalable (bool s)
 
void setVScalable (bool s)
 

Static Public Member Functions

static QString fingerListToString (const QList< CAFingering::CAFingerNumber > list)
 

Private Attributes

CANote_tempoNote
 
CADrawableNote_tempoDNote
 
QPixmap * _pixmap
 
int _rehersalMarkNumber
 

Static Private Attributes

static const double DEFAULT_TEXT_SIZE = 16
 
static const double DEFAULT_PIXMAP_SIZE = 25
 

Additional Inherited Members

- Public Types inherited from CADrawableMusElement
enum  CADrawableMusElementType {
  DrawableNote , DrawableRest , DrawableMidiNote , DrawableClef ,
  DrawableKeySignature , DrawableTimeSignature , DrawableBarline , DrawableAccidental ,
  DrawableSlur , DrawableTuplet , DrawableSyllable , DrawableFunctionMark ,
  DrawableFunctionMarkSupport , DrawableFiguredBassNumber , DrawableMark
}
 
- Public Types inherited from CADrawable
enum  CADrawableType { DrawableMusElement , DrawableContext }
 
enum  CADirection {
  Undefined , Top , Bottom , Left ,
  Right , TopLeft , TopRight , BottomLeft ,
  BottomRight
}
 
- Protected Member Functions inherited from CADrawableMusElement
void setDrawableMusElementType (CADrawableMusElementType t)
 
- Protected Member Functions inherited from CADrawable
void setDrawableType (CADrawableType t)
 
- Protected Attributes inherited from CADrawableMusElement
CADrawableMusElementType _drawableMusElementType
 
CADrawableContext_drawableContext
 
CAMusElement_musElement
 
bool _selectable
 
- Protected Attributes inherited from CADrawable
CADrawableType _drawableType
 
double _xPos
 
double _yPos
 
double _width
 
double _height
 
double _neededSpaceWidth
 
double _neededSpaceHeight
 
bool _visible
 
bool _selectable
 
bool _hScalable
 
bool _vScalable
 
- Static Protected Attributes inherited from CADrawable
static const int SCALE_HANDLES_SIZE = 2
 

Detailed Description

Drawable instance of marks This class draws the actual marks on the canvas.

Constructor & Destructor Documentation

◆ CADrawableMark()

CADrawableMark::CADrawableMark ( CAMark mark,
CADrawableContext dContext,
double  x,
double  y 
)

◆ ~CADrawableMark()

CADrawableMark::~CADrawableMark ( )
virtual

References _pixmap, _tempoDNote, and _tempoNote.

Member Function Documentation

◆ clone()

CADrawableMark * CADrawableMark::clone ( CADrawableContext newContext = 0)
virtual

Implements CADrawableMusElement.

References CADrawableMark(), CADrawableMusElement::drawableContext(), mark(), CADrawable::xPos(), and CADrawable::yPos().

Here is the call graph for this function:

◆ draw()

void CADrawableMark::draw ( QPainter *  p,
CADrawSettings  s 
)
virtual

Implements CADrawable.

References _pixmap, _tempoDNote, CAArticulation::Accent, CAMark::Articulation, CAMark::BookMark, CAArticulation::Breath, CARepeatMark::Coda, CADrawSettings::color, CACrescendo::Crescendo, CAMark::Crescendo, CARepeatMark::DalCoda, CARepeatMark::DalSegno, CARepeatMark::DalVarCoda, DEFAULT_PIXMAP_SIZE, DEFAULT_TEXT_SIZE, CAArticulation::DownBow, CAArticulation::DownMordent, CAArticulation::DownPrall, CADrawableNote::draw(), CAMark::Dynamic, CAArticulation::Espressivo, CAMark::Fermata, CACanorus::fetaCodepoint(), CAMark::Fingering, CAFingering::fingerList(), fingerListToString(), CAArticulation::Flageolet, CADrawable::height(), CAMark::InstrumentChange, CAMidiDevice::instrumentName(), CAFingering::isOriginal(), CAArticulation::LinePrall, CAFermata::LongFermata, CAArticulation::Marcato, mark(), CAArticulation::Mordent, CAFermata::NormalFermata, CAMusElement::Note, CAArticulation::Open, CAMark::Pedal, CAArticulation::Portato, CAArticulation::Prall, CAArticulation::PrallDown, CAArticulation::PrallMordent, CAArticulation::PrallPrall, CAArticulation::PrallUp, CAMark::RehersalMark, rehersalMarkNumber(), CAMark::RepeatMark, CARepeatMark::repeatMarkType(), CAArticulation::ReverseTurn, CAMark::Ritardando, CARitardando::Ritardando, CARepeatMark::Segno, CAFermata::ShortFermata, CASlur::SlurDown, CAArticulation::Staccatissimo, CAArticulation::Staccato, CAArticulation::Stopped, CAMark::Tempo, CAArticulation::Tenuto, CAMark::Text, CAArticulation::Trill, CAArticulation::Turn, CAArticulation::Undefined, CAMark::Undefined, CARepeatMark::Undefined, CAArticulation::UpBow, CAArticulation::UpMordent, CAArticulation::UpPrall, CARepeatMark::VarCoda, CAFermata::VeryLongFermata, CARepeatMark::Volta, CARepeatMark::voltaNumber(), CADrawable::width(), CADrawSettings::x, CADrawSettings::y, and CADrawSettings::z.

Here is the call graph for this function:

◆ fingerListToString()

QString CADrawableMark::fingerListToString ( const QList< CAFingering::CAFingerNumber list)
static

Converts the list of fingers to Emmentaler string.

References CACanorus::fetaCodepoint(), CAFingering::LHeel, CAFingering::LToe, CAFingering::RHeel, CAFingering::RToe, and CAFingering::Thumb.

Referenced by CADrawableMark(), and draw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mark()

CAMark * CADrawableMark::mark ( )
inline

References CADrawableMusElement::musElement().

Referenced by CADrawableMark(), clone(), and draw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rehersalMarkNumber()

int CADrawableMark::rehersalMarkNumber ( )
inline

References _rehersalMarkNumber.

Referenced by draw().

Here is the caller graph for this function:

◆ setRehersalMarkNumber()

void CADrawableMark::setRehersalMarkNumber ( int  n)
inline

References _rehersalMarkNumber.

Referenced by CALayoutEngine::placeMarks().

Here is the caller graph for this function:

Member Data Documentation

◆ _pixmap

QPixmap* CADrawableMark::_pixmap
private

◆ _rehersalMarkNumber

int CADrawableMark::_rehersalMarkNumber
private

◆ _tempoDNote

CADrawableNote* CADrawableMark::_tempoDNote
private

◆ _tempoNote

CANote* CADrawableMark::_tempoNote
private

Referenced by CADrawableMark(), and ~CADrawableMark().

◆ DEFAULT_PIXMAP_SIZE

const double CADrawableMark::DEFAULT_PIXMAP_SIZE = 25
staticprivate

Referenced by CADrawableMark(), and draw().

◆ DEFAULT_TEXT_SIZE

const double CADrawableMark::DEFAULT_TEXT_SIZE = 16
staticprivate

Copyright (c) 2007, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.

Licensed under the GNU GENERAL PUBLIC LICENSE. See COPYING for details.

Referenced by CADrawableMark(), and draw().


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