HdThread.cxx

Go to the documentation of this file.
00001 
00014 // inconsistent dll linkage
00015 #ifdef _MSC_VER
00016 #include "msdevstudio/MSconfig.h"
00017 #endif
00018 
00019 #include "HdThread.h"
00020 
00021 #include "QtApp.h"
00022 
00023 #include <iostream>
00024 using std::cout;
00025 using std::endl;
00026 
00027 using namespace hippodraw;
00028 
00029 HdThread::HdThread ( )
00030   : QThread ()
00031 {
00032 }
00033 
00034 HdThread::~HdThread ()
00035 {
00036 }
00037 
00038 void
00039 HdThread::
00040 run ()
00041 {
00042   static int argc = 1;
00043   static char * argv[1];
00044   argv[0] = const_cast < char * > ( "/HippoDraw");// fake abs path for Mac OS X
00045 
00046   QtApp app ( argc, argv );
00047   app.setFirstWindow();
00048 
00049   try {
00050     app.exec ();
00051   }
00052   catch ( std::exception & e ) {
00053     std::cout << e.what()
00054               << std::endl;
00055   }
00056 }

Generated for HippoDraw Class Library by doxygen