tumvis.cpp 591 Bytes
Newer Older
schultezub's avatar
schultezub committed
1
2
3
4
5
6
#include "tgt/camera.h"
#include "tgt/qt/qtapplication.h"
#include "tgt/qt/qtcanvas.h"

#include "tumvispainter.h"

7
using namespace TUMVis;
schultezub's avatar
schultezub committed
8

9
10
11
int main(int argc, char** argv) {  
    tgt::QtApplication* app = new tgt::QtApplication(argc, argv);
    tgt::QtCanvas* canvas = new tgt::QtCanvas("TUMVis");
schultezub's avatar
schultezub committed
12

13
    app->addCanvas(canvas);  
schultezub's avatar
schultezub committed
14

15
    app->init();  
schultezub's avatar
schultezub committed
16

17
18
19
20
    tgt::Camera camera;  
    canvas->setCamera(&camera);  
    TumVisPainter painter(canvas);  
    canvas->setPainter(&painter);  
schultezub's avatar
schultezub committed
21

22
    app->run();  
schultezub's avatar
schultezub committed
23

24
25
    delete canvas;  
    delete app;  
schultezub's avatar
schultezub committed
26

27
    return 0;  
schultezub's avatar
schultezub committed
28
}