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

#include <drawable.h>

Inheritance diagram for CADrawable:
Inheritance graph
[legend]

List of all members.

Public Types

enum  CADrawableType { DrawableMusElement, DrawableContext }
enum  CADirection {
  Undefined, Top, Bottom, Left,
  Right, TopLeft, TopRight, BottomLeft,
  BottomRight
}

Public Member Functions

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

Protected Member Functions

void setDrawableType (CADrawableType t)

Protected Attributes

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

static const int SCALE_HANDLES_SIZE = 2

Member Enumeration Documentation

Enumerator:
Undefined 
Top 
Bottom 
Left 
Right 
TopLeft 
TopRight 
BottomLeft 
BottomRight 
Enumerator:
DrawableMusElement 
DrawableContext 

Constructor & Destructor Documentation

CADrawable::CADrawable ( double  x,
double  y 
)
virtual CADrawable::~CADrawable ( ) [inline, virtual]

Member Function Documentation

const QRect CADrawable::bBox ( ) [inline]

References _height, _width, _xPos, and _yPos.

CADrawable * CADrawable::clone ( ) [virtual]
virtual void CADrawable::draw ( QPainter *  p,
const CADrawSettings  s 
) [pure virtual]

References _drawableType.

void CADrawable::drawHScaleHandles ( QPainter *  p,
const CADrawSettings  s 
)

References CADrawSettings::color, height(), SCALE_HANDLES_SIZE, width(), CADrawSettings::x, CADrawSettings::y, and CADrawSettings::z.

Here is the call graph for this function:

void CADrawable::drawVScaleHandles ( QPainter *  p,
const CADrawSettings  s 
)

References CADrawSettings::color, height(), SCALE_HANDLES_SIZE, width(), CADrawSettings::x, CADrawSettings::y, and CADrawSettings::z.

Here is the call graph for this function:

double CADrawable::height ( ) [inline]
bool CADrawable::isHScalable ( ) [inline]

References _hScalable.

Referenced by CAEngraver::placeMarks().

Here is the caller graph for this function:

bool CADrawable::isSelectable ( ) [inline]

References _selectable.

Referenced by CAScoreViewPort::addToSelection(), and CAScoreViewPort::selectMElement().

Here is the caller graph for this function:

bool CADrawable::isVisible ( ) [inline]

References _visible.

bool CADrawable::isVScalable ( ) [inline]

References _vScalable.

Referenced by CAEngraver::placeMarks().

Here is the caller graph for this function:

double CADrawable::neededHeight ( ) [inline]

References _height, and _neededSpaceHeight.

double CADrawable::neededSpaceHeight ( ) [inline]

References _neededSpaceHeight.

double CADrawable::neededSpaceWidth ( ) [inline]

References _neededSpaceWidth.

double CADrawable::neededWidth ( ) [inline]

References _neededSpaceWidth, and _width.

Referenced by CAEngraver::reposit().

Here is the caller graph for this function:

void CADrawable::setDrawableType ( CADrawableType  t) [inline, protected]

References _drawableType.

Referenced by CADrawableContext::CADrawableContext(), and CADrawableMusElement::CADrawableMusElement().

Here is the caller graph for this function:

void CADrawable::setHeight ( double  height) [inline]
void CADrawable::setHScalable ( bool  s) [inline]

References _hScalable.

Referenced by CADrawableMark::CADrawableMark().

Here is the caller graph for this function:

void CADrawable::setNeededSpaceHeight ( double  height) [inline]

References _neededSpaceHeight, and height().

Referenced by CADrawableSlur::CADrawableSlur().

Here is the call graph for this function:

Here is the caller graph for this function:

void CADrawable::setNeededSpaceWidth ( double  width) [inline]

References _neededSpaceWidth, and width().

Referenced by CADrawableBarline::CADrawableBarline(), and CADrawableSlur::CADrawableSlur().

Here is the call graph for this function:

Here is the caller graph for this function:

void CADrawable::setSelectable ( bool  s) [inline]

References _selectable.

Referenced by CADrawableAccidental::CADrawableAccidental(), and CADrawableFunctionMarkSupport::CADrawableFunctionMarkSupport().

Here is the caller graph for this function:

void CADrawable::setVisible ( bool  v) [inline]

References _visible.

void CADrawable::setVScalable ( bool  s) [inline]

References _vScalable.

void CADrawable::setWidth ( double  width) [inline]
void CADrawable::setXPos ( double  xPos) [inline]
void CADrawable::setYPos ( double  yPos) [inline]
double CADrawable::width ( ) [inline]
double CADrawable::xCenter ( ) [inline]

References _width, and _xPos.

double CADrawable::xPos ( ) [inline]
double CADrawable::yCenter ( ) [inline]

References _height, and _yPos.

Referenced by CADrawableTimeSignature::CADrawableTimeSignature().

Here is the caller graph for this function:

double CADrawable::yPos ( ) [inline]

Member Data Documentation

Referenced by drawableType(), and setDrawableType().

double CADrawable::_height [protected]
bool CADrawable::_hScalable [protected]

Referenced by isHScalable(), and setHScalable().

double CADrawable::_neededSpaceHeight [protected]
double CADrawable::_neededSpaceWidth [protected]
bool CADrawable::_selectable [protected]

Reimplemented in CADrawableMusElement.

Referenced by isSelectable(), and setSelectable().

bool CADrawable::_visible [protected]

Referenced by isVisible(), and setVisible().

bool CADrawable::_vScalable [protected]

Referenced by isVScalable(), and setVScalable().

double CADrawable::_width [protected]
double CADrawable::_xPos [protected]
double CADrawable::_yPos [protected]
const int CADrawable::SCALE_HANDLES_SIZE = 2 [static, protected]

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.

Referenced by drawHScaleHandles(), and drawVScaleHandles().


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