CADrawableSlur Class Reference

#include <drawableslur.h>

Inheritance diagram for CADrawableSlur:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 CADrawableSlur (CASlur *slur, CADrawableContext *c, int x1, int y1, int xMid, int yMid, int x1, int y1)
virtual ~CADrawableSlur ()
CASlurslur ()
void draw (QPainter *p, const CADrawSettings s)
CADrawableSlurclone (CADrawableContext *newContext=0)
int x1 ()
int y1 ()
int xMid ()
int yMid ()
int x2 ()
int y2 ()
void setX1 (int x1)
void setY1 (int y1)
void setXMid (int xMid)
void setYMid (int yMid)
void setX2 (int x2)
void setY2 (int y2)

Private Member Functions

void updateGeometry ()
int min (int, int, int)
int max (int, int, int)

Private Attributes

int _x1
int _y1
int _xMid
int _yMid
int _x2
int _y2


Detailed Description

Definition at line 16 of file drawableslur.h.


Constructor & Destructor Documentation

CADrawableSlur::CADrawableSlur ( CASlur slur,
CADrawableContext c,
int  x1,
int  y1,
int  xMid,
int  yMid,
int  x2,
int  y2 
)

Copyright (c) 2006-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 LICENSE.GPL for details.

Definition at line 11 of file drawableslur.cpp.

References CADrawableMusElement::DrawableSlur, CADrawable::height(), CADrawableMusElement::setDrawableMusElementType(), CADrawable::setNeededHeight(), CADrawable::setNeededWidth(), setX1(), setX2(), setXMid(), setY1(), setY2(), setYMid(), updateGeometry(), and CADrawable::width().

Referenced by clone().

Here is the call graph for this function:

Here is the caller graph for this function:

CADrawableSlur::~CADrawableSlur (  )  [virtual]

Definition at line 27 of file drawableslur.cpp.


Member Function Documentation

CASlur* CADrawableSlur::slur (  )  [inline]

Definition at line 21 of file drawableslur.h.

References CADrawableMusElement::_musElement.

Referenced by clone(), and draw().

Here is the caller graph for this function:

void CADrawableSlur::draw ( QPainter *  p,
const CADrawSettings  s 
) [virtual]

Implements CADrawable.

Definition at line 62 of file drawableslur.cpp.

References CADrawSettings::color, min(), slur(), CASlur::SlurDotted, CASlur::SlurSolid, CADrawable::width(), CADrawSettings::x, xMid(), CADrawable::xPos(), CADrawSettings::y, y1(), y2(), yMid(), and CADrawSettings::z.

Here is the call graph for this function:

CADrawableSlur * CADrawableSlur::clone ( CADrawableContext newContext = 0  )  [virtual]

Implements CADrawableMusElement.

Definition at line 113 of file drawableslur.cpp.

References CADrawableSlur(), CADrawableMusElement::drawableContext(), slur(), CADrawable::width(), xMid(), CADrawable::xPos(), y1(), y2(), and yMid().

Here is the call graph for this function:

int CADrawableSlur::x1 (  )  [inline]

Definition at line 26 of file drawableslur.h.

References _x1.

Referenced by updateGeometry().

Here is the caller graph for this function:

int CADrawableSlur::y1 (  )  [inline]

Definition at line 27 of file drawableslur.h.

References _y1.

Referenced by clone(), draw(), CAEngraver::reposit(), and updateGeometry().

Here is the caller graph for this function:

int CADrawableSlur::xMid (  )  [inline]

Definition at line 28 of file drawableslur.h.

References _xMid.

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

Here is the caller graph for this function:

int CADrawableSlur::yMid (  )  [inline]

Definition at line 29 of file drawableslur.h.

References _yMid.

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

Here is the caller graph for this function:

int CADrawableSlur::x2 (  )  [inline]

Definition at line 30 of file drawableslur.h.

References _x2.

Referenced by updateGeometry().

Here is the caller graph for this function:

int CADrawableSlur::y2 (  )  [inline]

Definition at line 31 of file drawableslur.h.

References _y2.

Referenced by clone(), draw(), CAEngraver::reposit(), and updateGeometry().

Here is the caller graph for this function:

void CADrawableSlur::setX1 ( int  x1  )  [inline]

Definition at line 32 of file drawableslur.h.

References _x1, and updateGeometry().

Referenced by CADrawableSlur().

Here is the call graph for this function:

Here is the caller graph for this function:

void CADrawableSlur::setY1 ( int  y1  )  [inline]

Definition at line 33 of file drawableslur.h.

References _y1, and updateGeometry().

Referenced by CADrawableSlur().

Here is the call graph for this function:

Here is the caller graph for this function:

void CADrawableSlur::setXMid ( int  xMid  )  [inline]

Definition at line 34 of file drawableslur.h.

References _xMid, and updateGeometry().

Referenced by CADrawableSlur(), and CAEngraver::reposit().

Here is the call graph for this function:

Here is the caller graph for this function:

void CADrawableSlur::setYMid ( int  yMid  )  [inline]

Definition at line 35 of file drawableslur.h.

References _yMid, and updateGeometry().

Referenced by CADrawableSlur(), and CAEngraver::reposit().

Here is the call graph for this function:

Here is the caller graph for this function:

void CADrawableSlur::setX2 ( int  x2  )  [inline]

Definition at line 36 of file drawableslur.h.

References _x2, and updateGeometry().

Referenced by CADrawableSlur(), and CAEngraver::reposit().

Here is the call graph for this function:

Here is the caller graph for this function:

void CADrawableSlur::setY2 ( int  y2  )  [inline]

Definition at line 37 of file drawableslur.h.

References _y2, and updateGeometry().

Referenced by CADrawableSlur(), and CAEngraver::reposit().

Here is the call graph for this function:

Here is the caller graph for this function:

void CADrawableSlur::updateGeometry (  )  [private]

Definition at line 30 of file drawableslur.cpp.

References max(), min(), CADrawable::setHeight(), CADrawable::setWidth(), CADrawable::setXPos(), CADrawable::setYPos(), x1(), x2(), xMid(), CADrawable::xPos(), y1(), y2(), yMid(), and CADrawable::yPos().

Referenced by CADrawableSlur(), setX1(), setX2(), setXMid(), setY1(), setY2(), and setYMid().

Here is the call graph for this function:

Here is the caller graph for this function:

int CADrawableSlur::min ( int  x,
int  y,
int  z 
) [private]

Returns the minimum of all the three integers given.

Definition at line 41 of file drawableslur.cpp.

Referenced by draw(), and updateGeometry().

Here is the caller graph for this function:

int CADrawableSlur::max ( int  x,
int  y,
int  z 
) [private]

Returns the maximum of all the three integers given.

Definition at line 53 of file drawableslur.cpp.

Referenced by updateGeometry().

Here is the caller graph for this function:


Member Data Documentation

int CADrawableSlur::_x1 [private]

Definition at line 44 of file drawableslur.h.

Referenced by setX1(), and x1().

int CADrawableSlur::_y1 [private]

Definition at line 45 of file drawableslur.h.

Referenced by setY1(), and y1().

int CADrawableSlur::_xMid [private]

Definition at line 46 of file drawableslur.h.

Referenced by setXMid(), and xMid().

int CADrawableSlur::_yMid [private]

Definition at line 47 of file drawableslur.h.

Referenced by setYMid(), and yMid().

int CADrawableSlur::_x2 [private]

Definition at line 48 of file drawableslur.h.

Referenced by setX2(), and x2().

int CADrawableSlur::_y2 [private]

Definition at line 49 of file drawableslur.h.

Referenced by setY2(), and y2().


The documentation for this class was generated from the following files:
Generated on Sat Feb 9 13:13:21 2008 for Canorus by  doxygen 1.5.3