Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
CAEngraver Class Reference

Class for correctly placing the abstract notes to the score canvas. More...

#include <engraver.h>

Static Public Member Functions

static void reposit (CAScoreViewPort *v)
 

Static Private Member Functions

static void placeMarks (CADrawableMusElement *, CAScoreViewPort *, int)
 

Static Private Attributes

static int * streamsRehersalMarks
 
static QList
< CADrawableMusElement * > 
scalableElts
 

Detailed Description

Class for correctly placing the abstract notes to the score canvas.

This class is a bridge between the data part of Canorus and the UI. Out of data CAMusElement* and CAContext* objects, it creates their CADrawable* instances.

Member Function Documentation

void CAEngraver::placeMarks ( CADrawableMusElement e,
CAScoreViewPort v,
int  streamIdx 
)
staticprivate
void CAEngraver::reposit ( CAScoreViewPort v)
static

Repositions the notes in the abstract sheet of the given score viewport v so they fit nicely. This function doesn't clear the viewport, but only adds the elements.

References CAScoreViewPort::addCElement(), CAScoreViewPort::addMElement(), CADrawableFunctionMarkSupport::Alterations, CALyricsContext::associatedVoice(), CAMusElement::Barline, CADrawableFunctionMarkSupport::ChordArea, CADrawableClef::clef(), CAMusElement::Clef, CADrawableContext::context(), CAMusElement::context(), CASheet::contextAt(), CASheet::contextCount(), CAContext::contextType(), CADrawableLyricsContext::DEFAULT_TEXT_VERTICAL_SPACING, CADiatonicKey::diatonicKeyToString(), CADrawableContext::drawableContextType(), CADrawableContext::DrawableStaff, CADrawableFunctionMarkSupport::Ellipse, CADrawableContext::findMElement(), CAScoreViewPort::findMElement(), CAFunctionMark::function(), CAMusElement::FunctionMark, CAContext::FunctionMarkContext, CADrawable::height(), INITIAL_X_OFFSET, CADrawableFunctionMark::isExtenderLineVisible(), CAMusElement::isPlayable(), CADrawableFunctionMarkSupport::Key, CAFunctionMark::key(), CADrawableKeySignature::keySignature(), CAMusElement::KeySignature, CADrawableFunctionMarkContext::Lower, CAContext::LyricsContext, CADrawableFunctionMarkContext::Middle, MINIMUM_SPACE, CAMusElement::musElementType(), CADrawable::neededWidth(), CAMusElement::Note, placeMarks(), CAContext::previous(), CADrawableFunctionMarkSupport::Rectangle, CAMusElement::Rest, scalableElts, CADrawableFunctionMark::setExtenderLineVisible(), CADrawableFunctionMarkSupport::setRectWider(), CADrawable::setWidth(), CADrawableSlur::setX2(), CADrawableSlur::setXMid(), CADrawable::setXPos(), CADrawableSlur::setY2(), CADrawableSlur::setYMid(), CAScoreViewPort::sheet(), CASlur::SlurDown, CASlur::SlurNeutral, CASlur::SlurPreferred, CASlur::SlurUp, CAContext::Staff, CAVoice::staff(), streamsRehersalMarks, CAMusElement::Syllable, CAFunctionMark::T, CADrawableTimeSignature::timeSignature(), CAMusElement::TimeSignature, CAScoreViewPort::timeToCoords(), CAFunctionMark::tonicDegree(), CADrawableFunctionMarkSupport::Tonicization, CAFunctionMark::Undefined, CADrawableFunctionMarkContext::Upper, CADrawable::width(), CADrawable::xPos(), CADrawableSlur::y1(), CADrawableSlur::y2(), and CADrawable::yPos().

Referenced by CAScoreViewPort::rebuild().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

QList< CADrawableMusElement * > CAEngraver::scalableElts
staticprivate

Referenced by placeMarks(), and reposit().

int * CAEngraver::streamsRehersalMarks
staticprivate

Referenced by placeMarks(), and reposit().


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