Kind-of worked on the R-Tree; not really enough time to do much.
[aesalon.git] / include / artisan / gviewport / Renderer.h
blob427bfdaa7217774898736be257369ccf791c0fd0
1 /** Aesalon, a tool to visualize program behaviour in real time.
2 Copyright (C) 2009-2011, Aesalon development team.
4 Aesalon is distributed under the terms of the GNU GPLv3. See
5 the included file LICENSE for more information.
7 @file include/artisan/gviewport/Renderer.h
8 */
10 #ifndef AesalonArtisan_GViewport_Renderer_H
11 #define AesalonArtisan_GViewport_Renderer_H
13 #include <QRunnable>
14 #include <QObject>
16 #include "Data.h"
17 #include "RenderedImage.h"
18 #include "TreeType.h"
20 namespace Artisan {
21 namespace GViewport {
23 class Renderer : public QObject, public QRunnable, public TreeType::SearchProcessor { Q_OBJECT
24 private:
25 RenderedImage *m_image;
26 Data *m_data;
27 public:
28 Renderer(const Rect &dataRange, const Rect &pixelRange, Data *data);
29 virtual ~Renderer();
31 void enqueue();
33 virtual void run();
35 virtual bool process(const TreeType::Bound &bound, Object *value);
36 signals:
37 void finishedRendering(RenderedImage *image);
40 } // namespace GViewport
41 } // namespace Artisan
43 #endif