Utility for testing nodes. More...
#include <Tester.hpp>
Inherits CanvasListener.
Public Member Functions | |
string | getFilename () |
Scene * | getScene () |
void | onCanvasEvent (const CanvasEvent &event) |
void | onCanvasEventDisplay (const CanvasEvent &event) |
void | onCanvasEventKey (const CanvasEvent &event) |
void | open (const string &filename) |
void | start () |
Private Attributes | |
Traverser * | traverser |
Scene * | scene |
CanvasGTK * | canvas |
Camera * | camera |
Gtk::Window * | window |
Utility for testing nodes.
void onCanvasEventDisplay | ( | const CanvasEvent & | event | ) |
Draws the scene.
void onCanvasEventKey | ( | const CanvasEvent & | event | ) |
Key was pressed.
void open | ( | const string & | filename | ) |
Creates a window, opens the scene, and prepares it.
void start | ( | ) |
Starts the window's main loop, catching any exceptions.