[Insight-users] WrapITK error for wrapping
itkPolylineMask2DImageFilter
Zhu, Yaoyao (NIH/NLM/LHC) [C]
zhuyao at mail.nih.gov
Thu Jun 21 15:47:20 EDT 2007
Gaëtan and all,
I tried to make a java wrapper for itkPolylineMask2DImageFilter.
The script file is as follows:
WRAP_CLASS("itk::PolylineMask2DImageFilter" POINTER)
FOREACH(d ${WRAP_ITK_DIMS})
WRAP_TEMPLATE("${ITKM_UC}${ITKM_UC}${ITKM_D}${d}" "itk::Image<${ITKT_UC},${d}>,itk::PolyLineParametricPath<${d}>,itk::Image<${ITKT_UC},${d}>") ENDFOREACH(d)
END_WRAP_CLASS()
Could you please give me some ideas what is wrong or help me wrap it?
Thanks,
/home/zhuyao/software/itkSharedLinux/Wrapping/WrapITK/Modules/SimpleFilters/wrap_itkPolylineMask2DImageFilter.cxx:26: error: `
PolyLineParametricPath' undeclared in namespace `itk'
/home/zhuyao/software/itkSharedLinux/Wrapping/WrapITK/Modules/SimpleFilters/wrap_itkPolylineMask2DImageFilter.cxx:26: error: wrong
number of template arguments (2, should be 3)
/home/zhuyao/software/InsightToolkit-3.2.0/Code/BasicFilters/itkPolylineMask2DImageFilter.h:42: error: provided
for `template<class TInputImage, class TPolyline, class TOutputImage> class
itk::PolylineMask2DImageFilter'
/home/zhuyao/software/itkSharedLinux/Wrapping/WrapITK/Modules/SimpleFilters/wrap_itkPolylineMask2DImageFilter.cxx:26: error: syntax
error before `,' token
/home/zhuyao/software/itkSharedLinux/Wrapping/WrapITK/Modules/SimpleFilters/wrap_itkPolylineMask2DImageFilter.cxx:27: error: `
PolyLineParametricPath' undeclared in namespace `itk'
/home/zhuyao/software/itkSharedLinux/Wrapping/WrapITK/Modules/SimpleFilters/wrap_itkPolylineMask2DImageFilter.cxx:27: error: wrong
number of template arguments (2, should be 3)
/home/zhuyao/software/InsightToolkit-3.2.0/Code/BasicFilters/itkPolylineMask2DImageFilter.h:42: error: provided
for `template<class TInputImage, class TPolyline, class TOutputImage> class
itk::PolylineMask2DImageFilter'
/home/zhuyao/software/itkSharedLinux/Wrapping/WrapITK/Modules/SimpleFilters/wrap_itkPolylineMask2DImageFilter.cxx:27: error: syntax
error before `,' token
/home/zhuyao/software/itkSharedLinux/Wrapping/WrapITK/Modules/SimpleFilters/wrap_itkPolylineMask2DImageFilter.cxx:29: error: `
PolyLineParametricPath' undeclared in namespace `itk'
/home/zhuyao/software/itkSharedLinux/Wrapping/WrapITK/Modules/SimpleFilters/wrap_itkPolylineMask2DImageFilter.cxx:29: error: wrong
number of template arguments (2, should be 3)
/home/zhuyao/software/InsightToolkit-3.2.0/Code/BasicFilters/itkPolylineMask2DImageFilter.h:42: error: provided
for `template<class TInputImage, class TPolyline, class TOutputImage> class
itk::PolylineMask2DImageFilter'
/home/zhuyao/software/itkSharedLinux/Wrapping/WrapITK/Modules/SimpleFilters/wrap_itkPolylineMask2DImageFilter.cxx:29: error: syntax
error before `,' token
/home/zhuyao/software/itkSharedLinux/Wrapping/WrapITK/Modules/SimpleFilters/wrap_itkPolylineMask2DImageFilter.cxx:30: error: `
PolyLineParametricPath' undeclared in namespace `itk'
/home/zhuyao/software/itkSharedLinux/Wrapping/WrapITK/Modules/SimpleFilters/wrap_itkPolylineMask2DImageFilter.cxx:30: error: wrong
number of template arguments (2, should be 3)
/home/zhuyao/software/InsightToolkit-3.2.0/Code/BasicFilters/itkPolylineMask2DImageFilter.h:42: error: provided
for `template<class TInputImage, class TPolyline, class TOutputImage> class
itk::PolylineMask2DImageFilter'
/home/zhuyao/software/itkSharedLinux/Wrapping/WrapITK/Modules/SimpleFilters/wrap_itkPolylineMask2DImageFilter.cxx:30: error: syntax
error before `,' token
make[2]: *** [Wrapping/WrapITK/Modules/SimpleFilters/wrap_itkPolylineMask2DImageFilter.xml] Error 1
make[1]: *** [Wrapping/WrapITK/Modules/SimpleFilters/CMakeFiles/SimpleFiltersJava.dir/all] Error 2
make: *** [all] Error 2
bash-3.00$
-----Original Message-----
From: Gaëtan Lehmann [mailto:gaetan.lehmann at jouy.inra.fr]
Sent: Wednesday, June 20, 2007 3:04 PM
To: Zhu, Yaoyao (NIH/NLM/LHC) [C]
Cc: insight-users at itk.org
Subject: Re: [Insight-users] Java Wrapping heritence issue
Le 20 juin 07 à 19:56, Zhu, Yaoyao (NIH/NLM/LHC) [C] a écrit :
> Hi, Gaëtan,
>
> I looked at the documentation directory, in "guide.txt" file, it
> said that
> " Currently, WrapITK only supports Python properly; Java and Tcl
> libraries build correctly but the Java and Tcl support classes for
> loading these libraries needs some updating."
>
> I am not sure if WrapITK for Java is working now.
>
I can say it is working currently. I'm even testing it nightly on
several hosts.
The message is very outdated - I have removed it : http://itk.org/cgi-
bin/cvsweb.cgi/Wrapping/WrapITK/Documentation/Guide.txt?
root=Insight&r1=1.1&r2=1.2
Thanks,
Gaëtan
> Thanks,
>
> yaoyao
>
>
>
> -----Original Message-----
> From: Gaëtan Lehmann [mailto:gaetan.lehmann at jouy.inra.fr]
> Sent: Wednesday, June 20, 2007 1:43 PM
> To: Zhu, Yaoyao (NIH/NLM/LHC) [C]
> Cc: insight-users at itk.org
> Subject: Re: [Insight-users] Java Wrapping heritence issue
>
>
> Hi Yaoyao,
>
> You should give a try to WrapITK to use ITK from java. There should
> be way less problems of that kind.
>
> Regards,
>
> Gaëtan
>
>
>
> Le 20 juin 07 à 19:32, Zhu, Yaoyao (NIH/NLM/LHC) [C] a écrit :
>
>>
>> Hi, All,
>>
>> I am working with ITK3.2 with java wrapping generated using CSwig. I
>> found one issue about Java wrapping. The class wrapped is
>> "ContinuousIndexD2", an instantiated class of "ContinuousIndex".
>> Since
>> "ContinuousIndex" is a subclass of "Point", the " ContinuousIndexD2"
>> should be subclass of "Point2D" so that I can use some methods
>> defined
>> in the class of "Point". Right now " ContinuousIndexD2" is not
>> defined
>> such in the java wrapper. The methods defined in "Point" are missing.
>>
>> Am I missing something or it is an issue?
>>
>> Thanks,
>>
>> Yaoyao
>> _______________________________________________
>> Insight-users mailing list
>> Insight-users at itk.org
>> http://www.itk.org/mailman/listinfo/insight-users
>
> --
> Gaëtan Lehmann
> Biologie du Développement et de la Reproduction
> INRA de Jouy-en-Josas (France)
> tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
> http://voxel.jouy.inra.fr
>
>
>
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr
More information about the Insight-users
mailing list