Canorus  0.0
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 () 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)
 

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, 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
 

Constructor & Destructor Documentation

◆ CADrawableSlur()

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(), updateGeometry(), x1(), x2(), xMid(), y1(), y2(), and yMid().

Referenced by clone().

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

◆ ~CADrawableSlur()

CADrawableSlur::~CADrawableSlur ( )
virtual

Member Function Documentation

◆ clone()

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

◆ draw()

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

◆ max()

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:

◆ min()

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:

◆ setX1()

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:

◆ setX2()

void CADrawableSlur::setX2 ( double  x2)
inline

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

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

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

◆ setXMid()

void CADrawableSlur::setXMid ( double  xMid)
inline

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

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

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

◆ setY1()

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:

◆ setY2()

void CADrawableSlur::setY2 ( double  y2)
inline

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

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

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

◆ setYMid()

void CADrawableSlur::setYMid ( double  yMid)
inline

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

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

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

◆ slur()

CASlur* CADrawableSlur::slur ( )
inline

References CADrawableMusElement::_musElement.

Referenced by clone(), and draw().

Here is the caller graph for this function:

◆ updateGeometry()

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:

◆ x1()

double CADrawableSlur::x1 ( )
inline

References _x1.

Referenced by CADrawableSlur(), setX1(), and updateGeometry().

Here is the caller graph for this function:

◆ x2()

double CADrawableSlur::x2 ( )
inline

References _x2.

Referenced by CADrawableSlur(), setX2(), and updateGeometry().

Here is the caller graph for this function:

◆ xMid()

double CADrawableSlur::xMid ( )
inline

References _xMid.

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

Here is the caller graph for this function:

◆ y1()

double CADrawableSlur::y1 ( )
inline

References _y1.

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

Here is the caller graph for this function:

◆ y2()

double CADrawableSlur::y2 ( )
inline

References _y2.

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

Here is the caller graph for this function:

◆ yMid()

double CADrawableSlur::yMid ( )
inline

References _yMid.

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

Here is the caller graph for this function:

Member Data Documentation

◆ _x1

double CADrawableSlur::_x1
private

Referenced by setX1(), and x1().

◆ _x2

double CADrawableSlur::_x2
private

Referenced by setX2(), and x2().

◆ _xMid

double CADrawableSlur::_xMid
private

Referenced by setXMid(), and xMid().

◆ _y1

double CADrawableSlur::_y1
private

Referenced by setY1(), and y1().

◆ _y2

double CADrawableSlur::_y2
private

Referenced by setY2(), and y2().

◆ _yMid

double CADrawableSlur::_yMid
private

Referenced by setYMid(), and yMid().


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