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

David Cole dlrdave at aol.com
Fri May 3 06:14:51 EDT 2013


And I added the same info to a new wiki page:

     
http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines

And linked to the new page from a new item on the migration guide page.

Feel free to edit/improve.




-----Original Message-----
From: David Cole <dlrdave at aol.com>
To: linyufly <linyufly at gmail.com>; bill.lorensen 
<bill.lorensen at gmail.com>
Cc: vtk-developers <vtk-developers at vtk.org>
Sent: Fri, May 3, 2013 5:55 am
Subject: Re: [vtk-developers] First time trying VTK-6.0, strange error: 
no override found for 'vtkPolyDataMapper'.


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

https://github.com/Kitware/VTK/commit/9385718b82e6af83b7e7dcc90a937419edc6892b
    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








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

Follow this link to subscribe/unsubscribe:
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

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtk-developers




  



More information about the vtk-developers mailing list