##// END OF EJS Templates
Animation refactor...
Animation refactor * removes animation per derived item desing * new design aims to make centralized animation hadnling * removes animationitem and animator templets * removes axisanimationitem * adds chartanimator * adds chartanimatioms * add axis and xy animations

File last commit:

r530:d482058261e4
r530:d482058261e4
Show More
chartitem_p.h
33 lines | 703 B | text/x-c | CLexer
#ifndef CHARTITEM_H_
#define CHARTITEM_H_
#include "domain_p.h"
#include <QGraphicsItem>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartAnimator;
class ChartItem : public QGraphicsItem
{
enum ChartItemTypes{ AXIS_ITEM = UserType+1, XYLINE_ITEM};
public:
ChartItem(QGraphicsItem* parent = 0):QGraphicsItem(parent),
m_animator(0){};
//TODO make pure
virtual void handleGeometryChanged(const QRectF&){};
virtual void handleDomainChanged(const Domain& domain){};
void setAnimator(ChartAnimator* animator){
m_animator=animator;
}
virtual ~ChartItem(){};
protected:
ChartAnimator* m_animator;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif /* CHARTITEM_H_ */