Hi David,<br><br>The reason you&#39;re getting the compiler warning is that the FindCell that you&#39;ve declared in the derived class hides the virtual FindCell class in the base class because they have the same name but different signatures.  You&#39;d have to do something like imageData-&gt;Superclass::FindCell(x, cell, cellId,...); in order to call the base class directly or play around with the derived class definition.  <br>
<br>Read <a href="http://www.parashift.com/c++-faq-lite/strange-inheritance.html#faq-23.9">http://www.parashift.com/c++-faq-lite/strange-inheritance.html#faq-23.9</a> for more info.<br><br>With all this said, you&#39;ll want to rename your simplified FindCell function.<br>
<br>Andy<br><br>Date: Mon, 12 Apr 2010 18:56:00 -0400<br>
From: David Doria &lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>&gt;<br>
Subject: [vtk-developers] Add FindCell(double[3]) to vtkImageData<br>
To: VTK Developers &lt;<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:o2rc19fcadc1004121556l11f1a847ld4e9c7a75efc2a1d@mail.gmail.com">o2rc19fcadc1004121556l11f1a847ld4e9c7a75efc2a1d@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=windows-1252<br>
<br>
After some discussion with David Gobbi on the users list, we have<br>
decided that it seems reasonable to add a function<br>
<br>
vtkImageData::FindCell(double[<div id=":3q" class="ii gt">3])<br>
<br>
which calls the more complex:<br>
virtual vtkIdType       FindCell (double x[3], vtkCell *cell, vtkIdType<br>
cellId, double tol2, int &amp;subId, double pcoords[3], double *weights)<br>
<br>
with some reasonable defaults.<br>
<br>
Here are the files with the new function FindCell(double[3])<br>
<a href="http://www.rpi.edu/%7Edoriad/VTK_List/FindCell/" target="_blank">http://www.rpi.edu/~doriad/VTK_List/FindCell/</a><br>
<br>
It works, but I get this warning:<br>
<br>
In file included from /home/doriad/src/VTK/Filtering/vtkUniformGrid.cxx:15:<br>
/home/doriad/src/VTK/Filtering/vtkImageData.h:69: warning: ?virtual<br>
vtkIdType vtkImageData::FindCell(double*)? was hidden<br>
/home/doriad/src/VTK/Filtering/vtkUniformGrid.h:55: warning:   by<br>
?vtkUniformGrid::FindCell?<br>
<br>
After some googling it looked like there is indeed something that can<br>
be done to fix this, but I don&#39;t understand exactly what is happening.<br>
<br>
Please take a look at these files and let us know what you think.<br>
<br>
Thanks,<br>
<br>
David D.</div>