[Insight-users] VtkFltk in InsightApplications

zhao yong qiang zhao-yq at cs . sjtu . edu . cn
Mon, 9 Jun 2003 23:12:27 +0800


This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C32EDC.97F00C00
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi, 

    I write the following code to use fltkVTKImageViewer
(InsightApplications/Auxiliary/vtkFltk)to show image:

 

#include "itkImage.h"

#include "itkDICOMImageIO2.h"

#include "itkImageFileReader.h"

#include "itkDICOMImageIO2Factory.h"

 

#include "fltkVTKImageViewer.h"

 

#include <config.h>

#include <FL/Fl.H>

 

int main(int argc, char **argv)

{

         typedef float InputPixelType;

         const unsigned int Dimension = 2;

         typedef itk::Image< InputPixelType, Dimension > InputImageType;

 

 
itk::ObjectFactoryBase::RegisterFactory(itk::DICOMImageIO2Factory::New()
);  

       itk::DICOMImageIO2::Pointer DICOMImage = 

                     itk::DICOMImageIO2::New();

  

         itk::ImageFileReader<InputImageType>::Pointer fileReader  = 

                     itk::ImageFileReader<InputImageType>::New();

 

            fileReader->SetImageIO(DICOMImage);

            fileReader->SetFileName("f:\\test\\t1.dcm");

            fileReader->UpdateLargestPossibleRegion();

 

         typedef fltk::VTKImageViewer<InputImageType::PixelType>
ImageViewer;

         ImageViewer::Pointer viewer = ImageViewer::New();            

          viewer->SetImage(fileReader->GetOutput());

          viewer->Show();

 

         Fl::run(); 

         return 0;

}

 

it showed such mistake:

E:\P609\fltkVTKImageViewer.h(49) : error C2143: syntax error : missing
';' before '<'

        E:\P609\fltkVTKImageViewer.h(89) : see reference to class
template instantiation 'fltk::VTKImageViewer<ImagePixelType>' being
compiled

E:\P609\fltkVTKImageViewer.h(49) : error C2059: syntax error : '<'

        E:\P609\fltkVTKImageViewer.h(89) : see reference to class
template instantiation 'fltk::VTKImageViewer<ImagePixelType>' being
compiled

E:\P609\fltkVTKImageViewer.h(49) : error C2238: unexpected token(s)
preceding ';'

        E:\P609\fltkVTKImageViewer.h(89) : see reference to class
template instantiation 'fltk::VTKImageViewer<ImagePixelType>' being
compiled

E:\P609\fltkVTKImageViewer.h(50) : error C2059: syntax error : '<'

        E:\P609\fltkVTKImageViewer.h(89) : see reference to class
template instantiation 'fltk::VTKImageViewer<ImagePixelType>' being
compiled

E:\P609\fltkVTKImageViewer.h(50) : error C2238: unexpected token(s)
preceding ';'

        E:\P609\fltkVTKImageViewer.h(89) : see reference to class
template instantiation 'fltk::VTKImageViewer<ImagePixelType>' being
compiled

E:\P609\fltkVTKImageViewer.h(49) : error C2143: syntax error : missing
';' before '<'

        E:\P609\main\main.cxx(45) : see reference to class template
instantiation 'fltk::VTKImageViewer<float>' being compiled

E:\P609\fltkVTKImageViewer.h(49) : error C2059: syntax error : '<'

        E:\P609\main\main.cxx(45) : see reference to class template
instantiation 'fltk::VTKImageViewer<float>' being compiled

E:\P609\fltkVTKImageViewer.h(49) : error C2238: unexpected token(s)
preceding ';'

        E:\P609\main\main.cxx(45) : see reference to class template
instantiation 'fltk::VTKImageViewer<float>' being compiled

E:\P609\fltkVTKImageViewer.h(50) : error C2059: syntax error : '<'

        E:\P609\main\main.cxx(45) : see reference to class template
instantiation 'fltk::VTKImageViewer<float>' being compiled

E:\P609\fltkVTKImageViewer.h(50) : error C2238: unexpected token(s)
preceding ';'

        E:\P609\main\main.cxx(45) : see reference to class template
instantiation 'fltk::VTKImageViewer<float>' being compiled

E:\P609\main\main.cxx(46) : error C2039: 'SetImage' : is not a member of
'VTKImageViewerBase'

        E:\P609\fltkVTKImageViewerBase.h(26) : see declaration of
'VTKImageViewerBase'

E:\P609\main\main.cxx(47) : error C2039: 'Show' : is not a member of
'VTKImageViewerBase'

        E:\P609\fltkVTKImageViewerBase.h(26) : see declaration of
'VTKImageViewerBase'

Error executing cl.exe.

 

It made me confused. In class fltkVTKImageViewer, it defines the member
of SetImage() and Show(). Why it found them in its parent class?

Thanks a lot !!

Sincerely, 
                          Zhao Yongqiang
                          Dept. of Computer Science & Engineering
                          Shanghai JiaoTong University
                          Shanghai, China
                          zhao-yq at cs . sjtu . edu . cn

 


------=_NextPart_000_0001_01C32EDC.97F00C00
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:10.5pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.emailstyle17
	{font-family:Arial;
	color:windowtext;}
span.EmailStyle18
	{font-family:Arial;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	layout-grid:15.6pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DZH-CN link=3Dblue vlink=3Dpurple =
style=3D'text-justify-trim:punctuation'>

<div class=3DSection1 style=3D'layout-grid:15.6pt'>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>Hi, </span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp; I write the following code =
to use
fltkVTKImageViewer (InsightApplications/Auxiliary/vtkFltk)to show =
image:</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>#include =
&quot;itkImage.h&quot;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>#include =
&quot;itkDICOMImageIO2.h&quot;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>#include =
&quot;itkImageFileReader.h&quot;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>#include =
&quot;itkDICOMImageIO2Factory.h&quot;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>#include =
&quot;fltkVTKImageViewer.h&quot;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>#include &lt;config.h&gt;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>#include &lt;FL/Fl.H&gt;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>int main(int argc, char =
**argv)</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>{</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=

typedef float InputPixelType;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
 const
unsigned int Dimension =3D 2;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=

typedef itk::Image&lt; InputPixelType, Dimension &gt; =
InputImageType;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=

itk::ObjectFactoryBase::RegisterFactory(itk::DICOMImageIO2Factory::New())=
;&nbsp;
</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
itk::DICOMImageIO2::Pointer DICOMImage =3D </span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; itk::DICOMImageIO2::New();</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp; </span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=

itk::ImageFileReader&lt;InputImageType&gt;::Pointer fileReader&nbsp; =3D =
</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp; =
itk::ImageFileReader&lt;InputImageType&gt;::New();</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=

&nbsp;&nbsp; fileReader-&gt;SetImageIO(DICOMImage);</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=

&nbsp;&nbsp; =
fileReader-&gt;SetFileName(&quot;f:\\test\\t1.dcm&quot;);</span></font></=
p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=

&nbsp;&nbsp; =
fileReader-&gt;UpdateLargestPossibleRegion();</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=

typedef fltk::VTKImageViewer&lt;InputImageType::PixelType&gt; =
ImageViewer;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=

ImageViewer::Pointer viewer =3D
ImageViewer::New();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; </span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=

&nbsp;viewer-&gt;SetImage(fileReader-&gt;GetOutput());</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=

&nbsp;viewer-&gt;Show();</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=

Fl::run(); </span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
 return
0;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>}</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>it showed such mistake:</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>E:\P609\fltkVTKImageViewer.h(49) : error C2143: =
syntax
error : missing ';' before '&lt;'</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
E:\P609\fltkVTKImageViewer.h(89) : see reference to class template
instantiation 'fltk::VTKImageViewer&lt;ImagePixelType&gt;' being =
compiled</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>E:\P609\fltkVTKImageViewer.h(49) : error C2059: =
syntax
error : '&lt;'</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
E:\P609\fltkVTKImageViewer.h(89) : see reference to class template
instantiation 'fltk::VTKImageViewer&lt;ImagePixelType&gt;' being =
compiled</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>E:\P609\fltkVTKImageViewer.h(49) : error C2238:
unexpected token(s) preceding ';'</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;E:\P609\fltkVTKImageViewer.h(89) : see reference =
to
class template instantiation =
'fltk::VTKImageViewer&lt;ImagePixelType&gt;' being
compiled</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>E:\P609\fltkVTKImageViewer.h(50) : error C2059: =
syntax
error : '&lt;'</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
E:\P609\fltkVTKImageViewer.h(89) : see reference to class template
instantiation 'fltk::VTKImageViewer&lt;ImagePixelType&gt;' being =
compiled</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>E:\P609\fltkVTKImageViewer.h(50) : error C2238:
unexpected token(s) preceding ';'</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
E:\P609\fltkVTKImageViewer.h(89) : see reference to class template
instantiation 'fltk::VTKImageViewer&lt;ImagePixelType&gt;' being =
compiled</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>E:\P609\fltkVTKImageViewer.h(49) : error C2143: =
syntax
error : missing ';' before '&lt;'</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
E:\P609\main\main.cxx(45) : see reference to class template =
instantiation
'fltk::VTKImageViewer&lt;float&gt;' being compiled</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>E:\P609\fltkVTKImageViewer.h(49) : error C2059: =
syntax
error : '&lt;'</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
E:\P609\main\main.cxx(45) : see reference to class template =
instantiation
'fltk::VTKImageViewer&lt;float&gt;' being compiled</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>E:\P609\fltkVTKImageViewer.h(49) : error C2238:
unexpected token(s) preceding ';'</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
E:\P609\main\main.cxx(45) : see reference to class template =
instantiation
'fltk::VTKImageViewer&lt;float&gt;' being compiled</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>E:\P609\fltkVTKImageViewer.h(50) : error C2059: =
syntax
error : '&lt;'</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
E:\P609\main\main.cxx(45) : see reference to class template =
instantiation
'fltk::VTKImageViewer&lt;float&gt;' being compiled</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>E:\P609\fltkVTKImageViewer.h(50) : error C2238:
unexpected token(s) preceding ';'</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
E:\P609\main\main.cxx(45)
: see reference to class template instantiation
'fltk::VTKImageViewer&lt;float&gt;' being compiled</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>E:\P609\main\main.cxx(46) : error C2039: =
'SetImage' :
is not a member of 'VTKImageViewerBase'</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
E:\P609\fltkVTKImageViewerBase.h(26) : see declaration of =
'VTKImageViewerBase'</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>E:\P609\main\main.cxx(47) : error C2039: 'Show' =
: is
not a member of 'VTKImageViewerBase'</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
E:\P609\fltkVTKImageViewerBase.h(26) : see declaration of =
'VTKImageViewerBase'</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>Error executing cl.exe.</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>It made me confused. In class =
fltkVTKImageViewer, it
defines the member of SetImage() and Show(). Why it found them in its =
parent
class?</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'>Thanks a lot !!</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:10.0pt'>Sincerely, <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;
Zhao Yongqiang<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;
Dept. of Computer Science &amp; Engineering<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;
Shanghai JiaoTong University<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;
Shanghai, China<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;
<a =
href=3D"mailto:zhao-yq at cs . sjtu . edu . cn">zhao-yq at cs . sjtu . edu . cn</a></span><=
/font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:10.0pt'>&nbsp;</span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0001_01C32EDC.97F00C00--