[vtkusers] how to subclass vtkActor

WackoWanderer marcwang17 at hotmail.com
Mon Sep 4 16:01:48 EDT 2017


I am trying to subclass the vtkActor class. But my class keeps getting the
error "undefined reference to `vtkIntraLatticeObject::New()". When I try to
instantiate it in a vtksmartpointer. 
I found this  link
<https://stackoverflow.com/questions/20945017/how-to-subclass-vtkactor>  . I
tried it but I get "undefined reference to
vtkIntraLatticeObject::vtkIntraLatticeObject()". I am also not 100%
convinced this is the way to go. It seems a bit complicated especially
compared to the next  example
<http://www.vtk.org/Wiki/VTK/Examples/Cxx/Picking/HighlightPickedActor>   I
found. So I have difficulty understanding what's so different with my code
or what I am missing. 
So here's my class files vtkIntraLatticeObject.h
<http://vtk.1045678.n5.nabble.com/file/t342143/vtkIntraLatticeObject.h>  
vtkIntraLatticeObject.cc
<http://vtk.1045678.n5.nabble.com/file/t342143/vtkIntraLatticeObject.cc>  




--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170904/81b22a82/attachment.html>


More information about the vtkusers mailing list