[vtkusers] vtkfollower

Frank Conradie frank at qfin.net
Wed Feb 11 09:39:35 EST 2004


Hi Jim

Here is a Python example from my code:

        camera = self.scene.vtkrens[0].GetActiveCamera()
        labels = ('e1', 'e2', 'e3')
        colors = ((255,0,0), (255,255,0), (0,255,0))
        for i in range(3):
            text = vtk.vtkVectorText()
            text.SetText(labels[i])
            text_mapper = vtk.vtkPolyDataMapper()
            text_mapper.SetInput(text.GetOutput())
            actor = vtk.vtkFollower()
            actor.SetCamera(camera)
            actor.SetMapper(text_mapper)
            actor.SetScale(.01, .01, .01)
            actor.GetProperty().SetColor(colors[i])
            actor.SetPickable(0)
            actors.append(actor)


----- Original Message -----
From: "James C. Robinson" <j.robinson at kepler-systems.com>
To: "Vtkusers at Public. Kitware. Com" <vtkusers at public.kitware.com>
Sent: Monday, February 09, 2004 3:59 PM
Subject: [vtkusers] vtkfollower


> Dear All,
>
> I have managed to implement the axes (triad) using vtkArrowSource etc,. I
> then tried to add the ability to label the axes and have the labels stay
> oriented towards the camera as the axes are rotated using vtkFollower, but
> the labels keep the orientation relative to the axes (i.e. don't rotate to
> stay facing the camera).
>
> Please advise.
>
> Jim
>
> ______________________
>
> James C. Robinson, PhD,
> Chartered Engineer,
> Kepler Simulation Systems Ltd.,
> Unit 10,
> Melbourne Business Park,
> Model Farm Road,
> Cork,
> Eire
>
> Tel:         +353-21-4822028
> Tel:         +353-21-4817267
> Tel:         +353-87-2393010
> Fax:        +353-21-4822721
> E-mail:     j.robinson at kepler-systems.com
> ______________________
>
>
> _______________________________________________
> 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://www.vtk.org/mailman/listinfo/vtkusers
>




More information about the vtkusers mailing list