subclassing vtkActor..

K.R.Subramanian krs at zappa.uncc.edu
Wed Apr 26 00:31:58 EDT 2000


I needed to use an id with each actor in my app, so I did something
like

class myActor : public vtkActor
{
    public:

        int id;

        myActor()
        {
            id = 0;
        }

};

I tried the above with the Cone3 example; for some reason the cone
doesnt get
rendered at all.  I can tell the actor object is getting created via the
debugger.
I did use the C++ new operator to create an instance of myActor (I have
subclassed
other vtk objects like the vtkXRenderWindowInteractor in the past
without
any problems). Does someone have an idea what could be the problem?

    -- krs

--
K.R.Subramanian                           Phone: (704) 547-4872
Department of Computer Science            FAX:   (704) 547-3516
UNC Charlotte, 228A Kennedy
9201 Univ. City Blvd.                     Email: krs at cs.uncc.edu
Charlotte, NC 28223-0001                  WWW: http://www.cs.uncc.edu/~krs


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20000426/ef3f549b/attachment.html>


More information about the vtkusers mailing list