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

#include <drawableslur.h>

Inheritance diagram for CADrawableSlur:
Inheritance graph
[legend]

Public Member Functions

 CADrawableSlur (CASlur *slur, CADrawableContext *c, double x1, double y1, double xMid, double yMid, double x2, double y2)
 
virtual ~CADrawableSlur ()
 
CASlurslur ()
 
void draw (QPainter *p, const CADrawSettings s)
 
CADrawableSlurclone (CADrawableContext *newContext=0)
 
double x1 ()
 
double y1 ()
 
double xMid ()
 
double yMid ()
 
double x2 ()
 
double y2 ()
 
void setX1 (double x1)
 
void setY1 (double y1)
 
void setXMid (double xMid)
 
void setYMid (double yMid)
 
void setX2 (double x2)
 
void setY2 (double y2)
 
- Public Member Functions inherited from CADrawableMusElement
 CADrawableMusElement (CAMusElement *musElement, CADrawableContext *drawableContext, double x, double y)
 
CADrawableMusElementType drawableMusElementType ()
 
CAMusElementmusElement ()
 
CADrawableContextdrawableContext ()
 
void setDrawableContext (CADrawableContext *context)
 
- Public Member Functions inherited from CADrawable
 CADrawable (double x, double y)
 
virtual ~CADrawable ()
 
virtual CADrawableclone ()
 
void drawHScaleHandles (QPainter *p, const CADrawSettings s)
 
void drawVScaleHandles (QPainter *p, const CADrawSettings s)
 
CADrawableType drawableType ()
 
double xPos ()
 
double yPos ()
 
double width ()
 
double height ()
 
double neededSpaceWidth ()
 
double neededSpaceHeight ()
 
double neededWidth ()
 
double neededHeight ()
 
double xCenter ()
 
double yCenter ()
 
const QRect bBox ()
 
bool isVisible ()
 
bool isSelectable ()
 
bool isHScalable ()
 
bool isVScalable ()
 
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)
 

Private Member Functions

void updateGeometry ()
 
double min (double, double, double)
 
double max (double, double, double)
 

Private Attributes

double _x1
 
double _y1
 
double _xMid
 
double _yMid
 
double _x2
 
double _y2
 

Additional Inherited Members

- Public Types inherited from CADrawableMusElement
enum  CADrawableMusElementType {
  DrawableNote, DrawableRest, DrawableClef, DrawableKeySignature,
  DrawableTimeSignature, DrawableBarline, DrawableAccidental, DrawableSlur,
  DrawableTuplet, DrawableSyllable, DrawableFunctionMark, DrawableFunctionMarkSupport,
  DrawableMark
}
 
- Protected Member Functions inherited from CADrawableMusElement
void setDrawableMusElementType (CADrawableMusElementType t)
 
- Protected Attributes inherited from CADrawableMusElement
CADrawableMusElementType _drawableMusElementType
 
CADrawableContext_drawableContext
 
CAMusElement_musElement
 
bool _selectable
 
- Static Protected Attributes inherited from CADrawable
static const int SCALE_HANDLES_SIZE = 2
 

Constructor & Destructor Documentation

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

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 CADrawableMusElement::DrawableSlur, CADrawableMusElement::setDrawableMusElementType(), CADrawable::setNeededSpaceHeight(), CADrawable::setNeededSpaceWidth(), setX1(), setX2(), setXMid(), setY1(), setY2(), setYMid(), and updateGeometry().

Referenced by clone().

Here is the call graph for this function:

Here is the caller graph for this function:

CADrawableSlur::~CADrawableSlur ( )
virtual

Member Function Documentation

CADrawableSlur * CADrawableSlur::clone ( CADrawableContext newContext = 0)
virtual
void CADrawableSlur::draw ( QPainter *  p,
const CADrawSettings  s 
)
virtual
double CADrawableSlur::max ( double  x,
double  y,
double  z 
)
private

Returns the maximum of all the three integers given.

Referenced by updateGeometry().

Here is the caller graph for this function:

double CADrawableSlur::min ( double  x,
double  y,
double  z 
)
private

Returns the minimum of all the three integers given.

Referenced by draw(), and updateGeometry().

Here is the caller graph for this function:

void CADrawableSlur::setX1 ( double  x1)
inline

References _x1, updateGeometry(), and x1().

Referenced by CADrawableSlur().

Here is the call graph for this function:

Here is the caller graph for this function:

void CADrawableSlur::setX2 ( double  x2)
inline

References _x2, updateGeometry(), and x2().

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

Here is the call graph for this function:

Here is the caller graph for this function:

void CADrawableSlur::setXMid ( double  xMid)
inline

References _xMid, updateGeometry(), and xMid().

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

Here is the call graph for this function:

Here is the caller graph for this function:

void CADrawableSlur::setY1 ( double  y1)
inline

References _y1, updateGeometry(), and y1().

Referenced by CADrawableSlur().

Here is the call graph for this function:

Here is the caller graph for this function:

void CADrawableSlur::setY2 ( double  y2)
inline

References _y2, updateGeometry(), and y2().

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 ( double  yMid)
inline

References _yMid, updateGeometry(), and yMid().

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

Here is the call graph for this function:

Here is the caller graph for this function:

CASlur* CADrawableSlur::slur ( )
inline

References CADrawableMusElement::_musElement.

Referenced by clone(), and draw().

Here is the caller graph for this function:

void CADrawableSlur::updateGeometry ( )
private

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:

double CADrawableSlur::x1 ( )
inline

References _x1.

Referenced by setX1(), and updateGeometry().

Here is the caller graph for this function:

double CADrawableSlur::x2 ( )
inline

References _x2.

Referenced by setX2(), and updateGeometry().

Here is the caller graph for this function:

double CADrawableSlur::xMid ( )
inline

References _xMid.

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

Here is the caller graph for this function:

double CADrawableSlur::y1 ( )
inline

References _y1.

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

Here is the caller graph for this function:

double CADrawableSlur::y2 ( )
inline

References _y2.

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

Here is the caller graph for this function:

double CADrawableSlur::yMid ( )
inline

References _yMid.

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

Here is the caller graph for this function:

Member Data Documentation

double CADrawableSlur::_x1
private

Referenced by setX1(), and x1().

double CADrawableSlur::_x2
private

Referenced by setX2(), and x2().

double CADrawableSlur::_xMid
private

Referenced by setXMid(), and xMid().

double CADrawableSlur::_y1
private

Referenced by setY1(), and y1().

double CADrawableSlur::_y2
private

Referenced by setY2(), and y2().

double CADrawableSlur::_yMid
private

Referenced by setYMid(), and yMid().


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