[vtkusers] how to correctly subclass vtkActor?

Bill Lorensen bill.lorensen at gmail.com
Tue Jan 7 12:05:01 EST 2014


Look at Rendering/Core/vtkFollower.h

It is a subclass of vtkActor


On Tue, Jan 7, 2014 at 12:01 PM, José Eduardo Meireles
<jemeireles at gmail.com> wrote:
> Hi All,
> I already posted this question here a couple days ago:
> http://stackoverflow.com/questions/20945017/how-to-subclass-vtkactor
>
> //.h
> #include <vtkActor.h>
> #include <vtkObjectFactory.h>
>
> class Node;
>
> struct Actor : public vtkActor {
>     static Actor* New();
>     vtkTypeMacro(Actor, vtkActor)
>
>     //my ptr
>     Node* holding_node;
> };
>
> //.cpp
> #include "actor.h"
> vtkStandardNewMacro(Actor)
>
>
> How do I properly subclass vtkActor? I have used the code below and it
> compiles fine, but I cannot get it to render.
> Any ideas or recommended readings?
>
> thanks!
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list