[vtk-developers] First time trying VTK-6.0, strange error: no override found for 'vtkPolyDataMapper'.

Mingcheng Chen linyufly at gmail.com
Fri May 3 15:46:24 EDT 2013


Hi David,

Thanks!

Best regards,
Mingcheng Chen


On Fri, May 3, 2013 at 3:55 AM, David Cole <dlrdave at aol.com> wrote:

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



-- 
Research Assistant in Graphics Group
University of Illinois at Urbana-Champaign
http://mingchengchen.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20130503/64d41681/attachment.html>


More information about the vtk-developers mailing list