Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
/home/iurt/rpm/BUILD/canorus-0.7.R1002/src/drawable/drawabletuplet.h
Go to the documentation of this file.
00001 
00008 #ifndef DRAWABLETUPLET_H_
00009 #define DRAWABLETUPLET_H_
00010 
00011 #include "drawable/drawablemuselement.h"
00012 #include "core/tuplet.h"
00013 
00014 class CADrawableTuplet: public CADrawableMusElement {
00015 public:
00016         CADrawableTuplet( CATuplet *tuplet, CADrawableContext *c, double x1, double y1, double x2, double y2 );
00017         virtual ~CADrawableTuplet();
00018 
00019         CATuplet *tuplet() { return static_cast<CATuplet*>(_musElement); }
00020 
00021         void draw(QPainter *p, const CADrawSettings s);
00022         CADrawableTuplet *clone(CADrawableContext* newContext = 0);
00023 
00024         inline double x1() { return _x1; }
00025         inline double y1() { return _y1; }
00026         inline double x2() { return _x2; }
00027         inline double y2() { return _y2; }
00028         inline void setX1( double x1 ) { _x1 = x1; }
00029         inline void setY1( double y1 ) { _y1 = y1; }
00030         inline void setX2( double x2 ) { _x2 = x2; }
00031         inline void setY2( double y2 ) { _y2 = y2; }
00032 
00033 private:
00034         double _x1;
00035         double _x2;
00036         double _y1;
00037         double _y2;
00038 };
00039 
00040 #endif /* DRAWABLETUPLET_H_ */