<div dir="ltr">Hi David,<div><br></div><div>Thanks!</div><div><br></div><div style>Best regards,</div><div style>Mingcheng Chen</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 3, 2013 at 3:55 AM, David Cole <span dir="ltr"><<a href="mailto:dlrdave@aol.com" target="_blank">dlrdave@aol.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If vtkPolyDataMapper::New() is returning NULL, then you are probably not building your project with CMake.<br>
<br>
If you're not building it with CMake, you need to define some symbols to get all the factory methods to produce results.<br>
<br>
Try including this in snippet in all your code that includes VTK usage:<br>
<br>
#define vtkRenderingCore_AUTOINIT 4(vtkInteractionStyle,<u></u>vtkRenderingFreeType,<u></u>vtkRenderingFreeTypeOpenGL,vtk<br>
RenderingOpenGL)<br>
#define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL)<br>
<br>
<br>
See these references (and follow the mailing list threads to their conclusions) for more info:<br>
<a href="http://www.vtk.org/pipermail/vtkusers/2013-April/128255.html" target="_blank">http://www.vtk.org/pipermail/<u></u>vtkusers/2013-April/128255.<u></u>html</a><br>
<a href="https://github.com/Kitware/VTK/commit/9385718b82e6af83b7e7dcc90a937419edc6892b" target="_blank">https://github.com/Kitware/<u></u>VTK/commit/<u></u>9385718b82e6af83b7e7dcc90a9374<u></u>19edc6892b</a><br>
<a href="http://www.vtk.org/pipermail/vtkusers/2013-March/127811.html" target="_blank">http://www.vtk.org/pipermail/<u></u>vtkusers/2013-March/127811.<u></u>html</a><br>
<br>
<br>
HTH,<br>
David<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
-----Original Message-----<br>
From: Mingcheng Chen <<a href="mailto:linyufly@gmail.com" target="_blank">linyufly@gmail.com</a>><br>
To: Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>><br>
Cc: vtk-developers <<a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a>><br>
Sent: Thu, May 2, 2013 11:34 pm<br>
Subject: Re: [vtk-developers] First time trying VTK-6.0, strange error: no override found for 'vtkPolyDataMapper'.<br>
<br>
<br>
Thanks. How about PolyDataMapper?<br>
<br>
<br>
<br>
On Thu, May 2, 2013 at 10:04 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>> wrote:<br>
<br>
There are many changes in VTK6. You have discovered one. Please see:<br>
<a href="http://www.vtk.org/Wiki/VTK/VTK_6_Migration_Guide" target="_blank">http://www.vtk.org/Wiki/VTK/<u></u>VTK_6_Migration_Guide</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Thu, May 2, 2013 at 9:33 PM, Mingcheng Chen <<a href="mailto:linyufly@gmail.com" target="_blank">linyufly@gmail.com</a>> wrote:<br>
<br>
<br>
<br>
Hi,<br>
<br>
<br>
I am using Visual Studio 2010 in Windows 7.<br>
<br>
<br>
Today I installed VTK-6.0 and tried to compile the sphere sample. The code fails in "vtkPolyDataMapper *map = vtkPolyDataMapper::New();"<br>
<br>
<br>
Moreover, it seems map->SetInput(...) is obsolete.<br>
<br>
<br>
Could anybody please tell me how to fix the error?<br>
<br>
<br>
Thanks!<br>
<br>
<br>
Best regards,<br>
Mingcheng Chen<br>
May 2nd, 2013<br>
<br>
<br>
<br>
--<br>
<br>
Research Assistant in Graphics Group<br>
<br>
University of Illinois at Urbana-Champaign<br>
<a href="http://mingchengchen.org" target="_blank">http://mingchengchen.org</a><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/<u></u>listinfo/vtk-developers</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
<br>
Research Assistant in Graphics Group<br>
<br>
University of Illinois at Urbana-Champaign<br>
<a href="http://mingchengchen.org" target="_blank">http://mingchengchen.org</a><br>
<br>
<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/<u></u>listinfo/vtk-developers</a><br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Research Assistant in Graphics Group<br></div>
<div>University of Illinois at Urbana-Champaign</div><div><a href="http://mingchengchen.org" target="_blank">http://mingchengchen.org</a></div></div>
</div>