[vtkusers] need text attached to actors

Malcolm Drummond geov at netactive.co.za
Wed Apr 25 11:58:29 EDT 2001


Hi Patrick

You can use the actors pick method (SetPickMethod(void(*f),void *arg)). For
every actor create a pick method that writes a unique string.

Malcolm
----- Original Message -----
From: Patrick Neumann <neumann at medizin.fu-berlin.de>
To: <vtkusers at public.kitware.com>
Sent: Wednesday, April 25, 2001 4:17 PM
Subject: Re: [vtkusers] need text attached to actors


> Thanks,
>
> but this is not what I want :-(
> I mean just a simple string which can be written to the console. If I pick
> an actor in the renderer it would be great to know what I have picked.
> What I need is a method like vtkProp->SetName(const char*) or more general
> vtkObject->SetUserData(void *) and the corresponding get methods.
>
> Yves Starreveld schrieb:
>
> > Hi, Patrick,
> >
> > Have a look at graphics/examplesPython/textOrigin.py
> >
> > Yves
> > On Wednesday, April 25, 2001, at 09:42  AM, Patrick Neumann wrote:
> >
> > > Hi,
> > >
> > > is there a way to attach some text to an actor? I need this for giving
> > > my actors a name.
> > >
> > > Thanks for help
> > > --
> > > Patrick Neumann
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > 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
> > >
>
> --
> Patrick Neumann
> Universitaetsklinikum Benjamin Franklin
> WE 10, FU Berlin, Hindenburgdamm 30, D 12200 Berlin
> Tel: +49 30 8445 4503 / Fax: 4510 / Email: neumann at medizin.fu-berlin.de
>
>
>
>
> _______________________________________________
> 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
>





More information about the vtkusers mailing list