OpenTracker

An Open Architecture for Reconfigurable Tracking based on XML | Contact

otqt_manual.h

Go to the documentation of this file.
00001 
00536 #include <otqt/OTQt.h>
00537 
00538 int main( int argc, char ** argv )
00539 {
00540   QApplication a( argc, argv );
00541   MainWindow w;
00542   a.setMainWidget(&w);
00543   w.show();
00544 
00545   /* (B) Initialize/Start Mouse Event Module */
00546   if (!ot::OTQt::triggerMEM("final.xml"))
00547     return -1;
00548 
00549   return a.exec();
00550 }@endverbatim
00551  *
00552  * The integration is done by including the @c OTQt.h header file in (A) and using
00553  * the static wrapper method in (B) passing the final XML configuration file obtained from
00554  * the calibration tool.
00555  *
00556  * @subsection sec_otqt_config_step_5 Compile the Qt application with OTQt
00557  *
00558  * In order to successfully compile the Qt application with OTQt, the Qt application build
00559  * files must be extended if the OpenTracker and/or OTQt header files and libraries have
00560  * been installed to a non-system-default location. Assuming, that the Qt application
00561  * developer employs @e qmake as Makefile generator, the following lines should be
00562  * included into the application project files, adding the necessary compiler and linker
00563  * flags:
00564  *
00565 @verbatim
00566 # (I) Specify Installation Paths
00567 OPENTRACKER_DIR = /non/default/install/directory/OpenTracker
00568 # (II) Add Compiler + Linker Flags
00569 INCLUDEPATH += $${OPENTRACKER_DIR}/include/OpenTracker
00570 LIBS += -Wl,-rpath -Wl,$${OPENTRACKER_DIR}/lib
00571 LIBS += -L$${OPENTRACKER_DIR}/lib -lOpenTracker@endverbatim
00572  *
00573  * @subsection sec_otqt_config_step_6 Start the Qt application with OTQt
00574  *
00575  * After compilation, the Qt application can be started. The OTQt module is started
00576  * automatically together with the application providing the mouse event generating
00577  * services.
00578  *
00579  * Back to @ref sec_otqt_index
00580  */
00581 

copyright (c) 2006 Graz University of Technology