[Insight-developers] problems in itkFilterMeshToMesh
Bill Hoffman
bill.hoffman@kitware.com
Wed, 10 Jan 2001 08:55:33 -0500
--=====================_78644034==_.ALT
Content-Type: text/plain; charset="us-ascii"
Can you post your derived class? I don't think it is possible to
tell what is wrong with the information you have posted. It
looks like you have #included the .txx file twice somehow, or
have duplicated methods in your sub-class without re-naming them.
Also, can you explain how the matrix class is causing trouble.
It has several test programs that are integrated into the system
and are run each day.
(See Testing/Code/Insight3DParty/vxl/vnl/tests/*.cxx)
-Bill
At 08:37 PM 1/9/01 -0600, Ting Chen wrote:
>I am try to build a Filter class derive from the class itkFilterMeshToMesh.
>but when I complie the code, I got the following error message:
>d:\insight\insight\code\common\itkfiltermeshtomesh.txx(32) : error C2995:
>'FilterMeshToMesh<TInputMesh,TOutputMesh>::FilterMeshToMesh<TInputMesh,TOutp
>utMesh>' : template function has already been defined
>
....
>It seems the complier think InputMeshType and TInputMesh are different.
>So how to solve the problem?
>
>Another question is: did any anybody try to include vnl_matrix object in
>their class? I always got error messages when I tried to do so.
--=====================_78644034==_.ALT
Content-Type: text/html; charset="us-ascii"
Can you post your derived class? I don't think it is possible
to
tell what is wrong with the information you have posted. It
looks like you have #included the .txx file twice somehow, or
have duplicated methods in your sub-class without re-naming them.
Also, can you explain how the matrix class is causing trouble.
It has several test programs that are integrated into the system
and are run each day.
(See Testing/Code/Insight3DParty/vxl/vnl/tests/*.cxx)
-Bill
At 08:37 PM 1/9/01 -0600, Ting Chen wrote:
I am try to build a Filter class derive from
the class itkFilterMeshToMesh.
but when I complie the code, I got the following error message:
d:\insight\insight\code\common\itkfiltermeshtomesh.txx(32) : error
C2995:
'FilterMeshToMesh<TInputMesh,TOutputMesh>::FilterMeshToMesh<TInputMesh,TOutp
utMesh>' : template function has already been defined
....
It seems the complier think InputMeshType and
TInputMesh are different.
So how to solve the problem?
Another question is: did any anybody try to include vnl_matrix object
in
their class? I always got error messages when I tried to do so.