[vtkusers] how to correctly subclass vtkActor?
    José Eduardo Meireles 
    jemeireles at gmail.com
       
    Tue Jan  7 12:01:28 EST 2014
    
    
  
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!
    
    
More information about the vtkusers
mailing list