Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
CADrawableContext Class Reference

#include <drawablecontext.h>

Inheritance diagram for CADrawableContext:
Inheritance graph
[legend]

List of all members.

Public Types

enum  CADrawableContextType { DrawableStaff, DrawableLyricsContext, DrawableFunctionMarkContext }

Public Member Functions

 CADrawableContext (CAContext *c, double x, double y)
CAContextcontext ()
CADrawableContextType drawableContextType ()
virtual void addMElement (CADrawableMusElement *elt)
virtual int removeMElement (CADrawableMusElement *elt)
CADrawableMusElementlastDrawableMusElement ()
virtual CADrawableContextclone ()=0
QList< CADrawableMusElement * > & drawableMusElementList ()
CADrawableMusElementfindMElement (CAMusElement *elt)
QList< CADrawableMusElement * > findInRange (double x1, double x2)

Protected Member Functions

void setDrawableContextType (CADrawableContextType type)

Protected Attributes

CADrawableContextType _drawableContextType
CAContext_context
QList< CADrawableMusElement * > _drawableMusElementList

Member Enumeration Documentation

Enumerator:
DrawableStaff 
DrawableLyricsContext 
DrawableFunctionMarkContext 

Constructor & Destructor Documentation

CADrawableContext::CADrawableContext ( CAContext c,
double  x,
double  y 
)

Copyright (c) 2006-2009, 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.

References CADrawable::DrawableContext, and CADrawable::setDrawableType().

Here is the call graph for this function:


Member Function Documentation

virtual void CADrawableContext::addMElement ( CADrawableMusElement elt) [inline, virtual]

Reimplemented in CADrawableStaff.

References _drawableMusElementList, and CADrawable::xPos().

Referenced by CAScoreViewPort::addMElement().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual CADrawableContext* CADrawableContext::clone ( ) [pure virtual]

Reimplemented from CADrawable.

Implemented in CADrawableStaff, CADrawableFunctionMarkContext, and CADrawableLyricsContext.

Referenced by CAScoreViewPort::importCElements().

Here is the caller graph for this function:

QList< CADrawableMusElement * > CADrawableContext::findInRange ( double  x1,
double  x2 
)

Returns a list of drawable music elements the current drawable context includes between the horizontal coordinates x1 and x2. The element is in a list already if only part of the element is touched by the region. That is the first returned element's left border is smaller than x1 and the last returned element's right border is larger than x2.

References _drawableMusElementList, CADrawable::width(), and CADrawable::xPos().

Here is the call graph for this function:

References _drawableMusElementList.

Referenced by CAEngraver::reposit().

Here is the caller graph for this function:

virtual int CADrawableContext::removeMElement ( CADrawableMusElement elt) [inline, virtual]

Reimplemented in CADrawableStaff.

References _drawableMusElementList.

Referenced by CAScoreViewPort::removeMElement().

Here is the caller graph for this function:


Member Data Documentation


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