Re: [Ltilib-devel] Catch mouse button pressed events in viewer
Status: Beta
Brought to you by:
alvarado
From: Pablo A. <pal...@ie...> - 2008-03-06 14:17:57
|
Hello, The cvrlib will be at the end the one we will continue developing, however, it is in a quite premature stage. I still maintain the LTI-Lib 2 to provide the functionality some of my students require for their projects. Porting from the LTI-Lib 2 to the CVR-Lib is straightforward; even a PERL script already does most of the job. By now I would recomend you to work with the LTI-Lib 2, but maybe some ports from the LTI-Lib 1 will be necessary. The documentation for both libraries is there as well. With "make doxydoc" in the linux directory in a linux machine you will create the whole doxygen documentation, and in the doc/styleguide/en you can "compile" the developers' guide. Regards, Pablo On Wednesday 05 March 2008 17:11, Per Rosengren wrote: > Maybe I should use ltilib2 or cvrlib instead. What would you recommend > from a user's point of view? > > Is there any documentation for the newer versions (Perhaps only in > cvs/svn)? > Where can I find cvrlib (broken link on webpage)? > > Pablo Alvarado wrote: > > Hello, > > > > in the LTI-Lib 1 that wasn't possible. In the LTI-Lib 2 it is easier. > > I'm affraid you have to rewrite the viewer for that matter in the older > > version (that's the reason for a complete version in the LTI-Lib 2, where > > the viewer was designed to easily build editors for users inserting > > points, drawing regions, etc. etc.) > > > > Regards, > > > > Pablo > > > > On Wednesday 05 March 2008 16:09, Per Rosengren wrote: > >> How do I catch mouse button pressed events in viewer? I tried to > >> reimplement viewer::mainWindow::mouseButtonHandler in a mainWindow child > >> class, and viewer::ensureWindow to create objects of the new class, in a > >> new viewer child class, but I failed since ensureWindow isn't virtual. > >> > >> My only solution right now is to copy and modify viewer to notify my > >> program of key pressed events, or to replace the show and ensureWindow > >> functions, but these solutions are very ugly. -- Dr. Pablo Alvarado E-Mail: pal...@ie... Escuela de Ingeniería Electrónica Tel.: (+506) 550 2106 Instituto Tecnológico de Costa Rica Fax.: (+506) 591 6629 Apartado Postal 159-7050 Cartago Costa Rica |