25 #ifndef CHANNELSPECSRENDERER_HH 26 #define CHANNELSPECSRENDERER_HH 32 #include <QtCore/QObject> 34 #include <blitz/array.h> 37 class QXmlStreamWriter;
84 virtual void render(QPainter* painter = NULL)
const = 0;
ChannelSpecsRenderer(ChannelSpecs *channel, ViewWidget *view)
virtual void setCacheUpdatesEnabled(bool enable)
Enables or disables the updates of the rendering cache.
bool _cacheUpdatesEnabled
ChannelSpecs * channel() const
virtual void updateCache() const
Update the rendering cache.
virtual void userInteractionEvent(UserInteractionEvent *e)
Reimplement this function if your specialized ChannelSpecsRenderer should respond to a passed UserInt...
virtual ~ChannelSpecsRenderer()
ViewWidget * view() const
bool cacheUpdatesEnabled() const
Check whether cache updates are enabled.
virtual bool event(QEvent *event)
Interprets and distributes the given event.
virtual void render(QPainter *painter=NULL) const =0
Main rendering routine which is called whenever a paintEvent() on the ViewWidget occurs.