[vtkusers] deriving my own class from vtkActor
K.R.Subramanian
krs at cs.uncc.edu
Wed Oct 9 09:54:56 EDT 2002
I concur.. I used to be able to derive classes from vtkActor (to add an id for instance)
in vtk3.2.
Sometime back (in response to a similar query), when I tried it again under 4.0, it
wouldnt render
the actor at all. I had tried to modify the Cone example to test this out...
-- krs
"Jerome, Ron" wrote:
>
>
> I ran into the same problem, I derived my class from vtkOpenGLActor instead and it
> worked fine.
>
> Ron Jerome
> Institute for Chemical Process and
> Environmental Technology
> National Research Council Canada
> 613-993-5346
>
> >-----Original Message-----
> >From: Steffen Oeltze [mailto:Steffen.Oeltze at Student.Uni-Magdeburg.DE]
> >Sent: Wednesday, October 09, 2002 6:00 AM
> >To: Vtkusers (E-mail)
> >Subject: [vtkusers] deriving my own class from vtkActor
> >
> >
> >Dear VTK-users,
> >
> >I have tried to derive my own class from vtkActor using the following
> >code:
> >
> >class FIB_TRACK : public vtkActor
> >{
> >public:
> > FIB_TRACK(double [3], double [3], bool);
> > ~FIB_TRACK();
> >....
> >}
> >
> >For creating a new object I use:
> >
> >FIB_TRACK *newAct = new FIB_TRACK(seedpoint, dims, true);
> >
> >Then, I construct the rendering pipeline, add the actor to the
> >renderer and render the window but nothing happens. Is there
> >anyone who can help me ?
> >
> >Regards,
> >Steffen
> >_______________________________________________
> >This is the private VTK discussion list.
> >Please keep messages on-topic. Check the FAQ at:
> ><http://public.kitware.com/cgi-bin/vtkfaq>
> >Follow this link to
> >subscribe/unsubscribe:
> >http://public.kitware.com/mailman/listinfo/vtkusers
> >
--
K.R.Subramanian Phone: (704) 687-4872
Department of Computer Science FAX: (704) 687-4893
UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu
Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs
More information about the vtkusers
mailing list