1 // Copyright (C) 2008 Ben Asselstine
3 // This program is free software; you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation; either version 3 of the License, or
6 // (at your option) any later version.
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU Library General Public License for more details.
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software
15 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 #ifndef TILE_PREVIEW_SCENE_H
18 #define TILE_PREVIEW_SCENE_H
21 #include <sigc++/trackable.h>
24 #include "tilestyle.h"
29 class TilePreviewScene: public sigc::trackable
32 TilePreviewScene (Tile *tile,
33 std::vector<PixMask*> standard_images,
34 guint32 height, guint32 width,
37 Glib::RefPtr<Gdk::Pixbuf> getTileStylePixbuf(int x, int y);
38 TileStyle* getTileStyle(int x, int y);
39 int getWidth() {return d_width;}
40 int getHeight() {return d_height;}
41 Tile *getTile() {return d_tile;}
42 Glib::RefPtr<Gdk::Pixbuf> renderScene(guint32 tilesize);
45 std::list<TileStyle::Type> d_model;
46 std::vector<Glib::RefPtr<Gdk::Pixbuf> > d_view;
47 std::vector<TileStyle*> d_tilestyles;
51 std::vector<PixMask*> d_standard_images;