예제 #1
0
파일: Core.cpp 프로젝트: polakv/3dsoftviz
AppCore::Core::Core(QApplication * app)
{
	//Application initialization
    core = this;

    Util::ApplicationConfig *appConf = Util::ApplicationConfig::get();

    messageWindows = new QOSG::MessageWindows();

	//Counting forces for layout algorithm, init layout, viewer and window
    this->alg = new Layout::FRAlgorithm();

    this->thr = new Layout::LayoutThread(this->alg);
    this->cg = new Vwr::CoreGraph();
    this->cw = new QOSG::CoreWindow(0, this->cg, app, this->thr);
    this->cw->resize(
    	appConf->getNumericValue (
    		"UI.MainWindow.DefaultWidth",
    		std::auto_ptr<long> (new long(200)),
    		std::auto_ptr<long> (NULL),
    		1024
    	),
    	appConf->getNumericValue (
			"UI.MainWindow.DefaultHeight",
			std::auto_ptr<long> (new long(200)),
			std::auto_ptr<long> (NULL),
			768
		)
    );
    this->cw->show();

    app->exec();
}