<font size="2"><font face="verdana,sans-serif">If your build directory is not the same as source directory, I guess it will make problems, because that file is not copied to build dir because it is not referenced in CMakeLists files.<br>

</font></font><br><div class="gmail_quote">On Tue, Jun 28, 2011 at 22:51, Jihun Kim <span dir="ltr">&lt;<a href="mailto:jihun@umich.edu">jihun@umich.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

I am trying to build it inside ITK. Mentioning ITK_USE_REVIEW, I meant I<br>
re-built ITK again. I was wondering if rebuild affects it.<br>
<br>
By simply adding a new class in the ITK source directory (for example,<br>
src/itk-3.18.0/code/Algorithms), can we incorporate a new class? I would<br>
like to know how to do this?<br>
<br>
Thanks,<br>
<font color="#888888">Jihun<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
-----Original Message-----<br>
From: David Doria [mailto:<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>]<br>
Sent: Tuesday, June 28, 2011 4:44 PM<br>
To: <a href="mailto:jihun@umich.edu">jihun@umich.edu</a><br>
Cc: <a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>
Subject: Re: [Insight-users] new class implementation<br>
<br>
On Tue, Jun 28, 2011 at 4:27 PM, Jihun Kim &lt;<a href="mailto:jihun@umich.edu">jihun@umich.edu</a>&gt; wrote:<br>
&gt; Dear all ITK users,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I have developed my own classes (for example,<br>
&gt; itkMeanSquaresImageToImageMetricJK .h and .cxx). I believe the codes are<br>
&gt; correct because these have worked properly so far. The problem is that,<br>
now,<br>
&gt; I built ITK again in order to change ITK_USE_REVIEW to ON. Now when I<br>
build<br>
&gt; a new project, my compiler (VS C++) says to me that<br>
&gt; &#39;MeanSquaresImageToImageMetricJK&#39; : is not a member of &#39;itk&#39;.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Does anyone know how to implement new classes? I don&#39;t remember how I did<br>
&gt; before. And the way I now remember doesn&#39;t not work at all.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Thanks in advance.<br>
&gt;<br>
&gt; Jihun<br>
&gt;<br>
<br>
Are you trying to build that class inside ITK? Or in a separate<br>
directory with a separate CMakeLists.txt file?<br>
<br>
I don&#39;t see how ITK_USE_REVIEW should affect anything in the second case.<br>
<br>
This: &#39;MeanSquaresImageToImageMetricJK&#39; : is not a member of &#39;itk&#39;.<br>
<br>
probably means that you have not wrapped your class {} definition in a<br>
namespace itk {}.<br>
<br>
David<br>
<br>
<br>
<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br>