Kind-of worked on the R-Tree; not really enough time to do much.
[aesalon.git] / include / artisan / gviewport / Object.h
blob4ea5109a2394007dc22542b0a28bec91fc67e6fc
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/Object.h
8 */
10 #ifndef AesalonArtisan_GViewport_Object_H
11 #define AesalonArtisan_GViewport_Object_H
13 #include "Rect.h"
14 #include "RenderedImage.h"
16 namespace Artisan {
17 namespace GViewport {
19 class Object {
20 private:
21 Rect m_bound;
22 public:
23 Object(Rect bound) : m_bound(bound) {}
24 virtual ~Object() {}
26 const Rect &bound() const { return m_bound; }
28 virtual void renderOnto(RenderedImage &image) = 0;
31 } // namespace GViewport
32 } // namespace Artisan
34 #endif