Canorus 0.0
Public Member Functions | Private Attributes | List of all members
CADrawableTuplet Class Reference

#include <drawabletuplet.h>

Inheritance diagram for CADrawableTuplet:
Inheritance graph
[legend]

Public Member Functions

 CADrawableTuplet (CATuplet *tuplet, CADrawableContext *c, double x1, double y1, double x2, double y2)
 
virtual ~CADrawableTuplet ()
 
CATuplettuplet ()
 
void draw (QPainter *p, const CADrawSettings s)
 
CADrawableTupletclone (CADrawableContext *newContext=0)
 
double x1 ()
 
double y1 ()
 
double x2 ()
 
double y2 ()
 
void setX1 (double x1)
 
void setY1 (double y1)
 
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)
 
virtual CADrawableMusElementclone (CADrawableContext *newContext=0)=0
 
- Public Member Functions inherited from CADrawable
 CADrawable (double x, double y)
 
virtual ~CADrawable ()
 
virtual void draw (QPainter *p, const CADrawSettings s)=0
 
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 Attributes

double _x1
 
double _x2
 
double _y1
 
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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ CADrawableTuplet()

CADrawableTuplet::CADrawableTuplet ( CATuplet tuplet,
CADrawableContext c,
double  x1,
double  y1,
double  x2,
double  y2 
)

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

References CADrawableMusElement::DrawableTuplet, CADrawable::height(), CADrawableMusElement::setDrawableMusElementType(), CADrawable::setHeight(), CADrawable::setWidth(), CADrawable::setYPos(), x1(), x2(), y1(), y2(), and CADrawable::yPos().

Referenced by clone().

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

◆ ~CADrawableTuplet()

CADrawableTuplet::~CADrawableTuplet ( )
virtual

Member Function Documentation

◆ clone()

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

Implements CADrawableMusElement.

References CADrawableTuplet(), CADrawableMusElement::drawableContext(), tuplet(), x1(), x2(), y1(), and y2().

Here is the call graph for this function:

◆ draw()

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

◆ setX1()

void CADrawableTuplet::setX1 ( double  x1)
inline

References _x1, and x1().

Here is the call graph for this function:

◆ setX2()

void CADrawableTuplet::setX2 ( double  x2)
inline

References _x2, and x2().

Here is the call graph for this function:

◆ setY1()

void CADrawableTuplet::setY1 ( double  y1)
inline

References _y1, and y1().

Here is the call graph for this function:

◆ setY2()

void CADrawableTuplet::setY2 ( double  y2)
inline

References _y2, and y2().

Here is the call graph for this function:

◆ tuplet()

CATuplet * CADrawableTuplet::tuplet ( )
inline

References CADrawableMusElement::_musElement.

Referenced by clone(), and draw().

Here is the caller graph for this function:

◆ x1()

double CADrawableTuplet::x1 ( )
inline

References _x1.

Referenced by CADrawableTuplet(), clone(), and setX1().

Here is the caller graph for this function:

◆ x2()

double CADrawableTuplet::x2 ( )
inline

References _x2.

Referenced by CADrawableTuplet(), clone(), and setX2().

Here is the caller graph for this function:

◆ y1()

double CADrawableTuplet::y1 ( )
inline

References _y1.

Referenced by CADrawableTuplet(), clone(), and setY1().

Here is the caller graph for this function:

◆ y2()

double CADrawableTuplet::y2 ( )
inline

References _y2.

Referenced by CADrawableTuplet(), clone(), and setY2().

Here is the caller graph for this function:

Member Data Documentation

◆ _x1

double CADrawableTuplet::_x1
private

Referenced by setX1(), and x1().

◆ _x2

double CADrawableTuplet::_x2
private

Referenced by setX2(), and x2().

◆ _y1

double CADrawableTuplet::_y1
private

Referenced by setY1(), and y1().

◆ _y2

double CADrawableTuplet::_y2
private

Referenced by setY2(), and y2().


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