[IGSTK-Users] pure virtual function in

Yaniv, Ziv ZYaniv at childrensnational.org
Fri Dec 21 13:26:06 EST 2012


Hi Sean,

>From the C++ standpoint the pure virtual definition is the way to go. 

As a side comment, we are shifting most of our GUI development to use Qt and will only maintain existing FLTK code but won't develop it further. You may also find the applications in our IGI tutorial (http://public.kitware.com/IGSTKWIKI/index.php/IGI_Tutorial) of interest. The source code is available in the IGSTK apps git repo (details here: http://www.igstk.org/Wiki/IGSTK/Git).

     regards
         Ziv

--
Ziv Yaniv, Ph.D., 
Principal Investigator,
The Sheikh Zayed Institute for Pediatric Surgical Innovation
Children's National Medical Center
6th Floor Main Hospital, Room M7740
111 Michigan Ave., N.W
Washington, D.C 20010
Phone: 202-476-1288
email: zyaniv at childrensnational.org




-----Original Message-----
From: igstk-users-bounces at public.kitware.com on behalf of Sean Lee
Sent: Fri 12/21/2012 10:04 AM
To: Yaniv, Ziv
Cc: igstk-users at public.kitware.com
Subject: Re: [IGSTK-Users] pure virtual function in
 


Thanks Again for your reply.
Another solution could be changing those to pure virtual functions in head file, as followings,
  virtual void InitializeTrackingAndCalibration()=0;  virtual void SaveCalibration()=0;
Which way is better? 
SeanSubject: RE: [IGSTK-Users] pure virtual function in
Date: Fri, 21 Dec 2012 09:35:01 -0500
From: ZYaniv at childrensnational.org
To: kevinseanlee at live.com
CC: igstk-users at public.kitware.com






RE: [IGSTK-Users] pure virtual function in




Hi Sean,



This seems to be a problem with the C++ code generated by FLTK. The PivotCalibrationFLTKWidgetExampleUI.{cxx,h} are autogenerated by FLTK's fluid program from the PivotCalibrationFLTKWidgetExampleUI.fl file. In the older versions of FLTK the generated cxx file contained the following implementation of the function:



void PivotCalibrationFLTKWidgetExampleUI::InitializeTrackingAndCalibration() {

}





An empty implementation which is overridden in the descendent PivotCalibrationFLTKWidgetExample. Based on the error you get I cannot be sure what is the problem. Please take a look at the *.fl file and the code generated by fluid. You will probably need to modify the *.fl file so that the generated C++ code doesn't cause this error.



        regards

            Ziv







--

Ziv Yaniv, Ph.D.,

Principal Investigator,

The Sheikh Zayed Institute for Pediatric Surgical Innovation

Children's National Medical Center

6th Floor Main Hospital, Room M7740

111 Michigan Ave., N.W

Washington, D.C 20010

Phone: 202-476-1288

email: zyaniv at childrensnational.org









-----Original Message-----

From: igstk-users-bounces at public.kitware.com on behalf of Sean Lee

Sent: Fri 12/21/2012 8:29 AM

To: ozgur_guler at gmx.at

Cc: igstk-users at public.kitware.com

Subject: Re: [IGSTK-Users] pure virtual function in





Thanks, Ozgur.

It was fltk-1.3.2. But how do I fix it? Can I keep this version and fix the problem?

Sean



Date: Fri, 21 Dec 2012 07:56:08 -0500

Subject: Re: [IGSTK-Users] pure virtual function in

From: ozgur_guler at gmx.at

To: kevinseanlee at live.com

CC: igstk-users at public.kitware.com



Hi Sean,



which FLTK version do you use?



IGSTK is compatible with FLTK versions 1.1.X

Best,



Ozgur

On Dec 20, 2012 10:19 PM, "Sean Lee" <kevinseanlee at live.com> wrote:











I am getting this link error when I building the calibration example.

1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------2>------ Build started: Project: PivotCalibrationFLTKWidgetExample, Configuration: Debug Win32 ------

2>PivotCalibrationFLTKWidgetExampleUI.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall PivotCalibrationFLTKWidgetExampleUI::InitializeTrackingAndCalibration(void)" (?InitializeTrackingAndCalibration at PivotCalibrationFLTKWidgetExampleUI@@UAEXXZ)

2>PivotCalibrationFLTKWidgetExampleUI.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall PivotCalibrationFLTKWidgetExampleUI::SaveCalibration(void)" (?SaveCalibration at PivotCalibrationFLTKWidgetExampleUI@@UAEXXZ)

2>C:\OpensourceBinary\IGSTK2\bin\Debug\PivotCalibrationFLTKWidgetExample.exe : fatal error LNK1120: 2 unresolved externals========== Build: 1 succeeded, 1 failed, 4 up-to-date, 0 skipped ==========



But suppose that those two functions are pure virtual functions and would be overridden in  PivotCalibrationFLTKWidgetExample.



Any ideas what are happening? Thanks.

Sean                                     





_______________________________________________



Powered by www.kitware.com







Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html







Follow this link to subscribe/unsubscribe:



http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users

                                         






 		 	   		  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20121221/f505dc3c/attachment-0001.html>


More information about the IGSTK-Users mailing list