[vtkusers] vtkFollower won't move with vtkAssembly?

Jeff Lee jeff at cdnorthamerica.com
Tue Feb 19 13:04:22 EST 2002


did you assign the follower a camera?

Chen, Elvis wrote:

>Greetings,
>
>I'm trying to create a vtkAssembly that contains
>several vtkFollower.  However, whenever I move the
>vtkAssembly, the vtkFollower won't move with it.  Does
>it work?
>
>I'm using vtk 4.0 (RC) with python 2.2.  Sample code
>is attached below:
>
>
># femoral insertions
>PCLftext = vtkVectorText()
>PCLftext.SetText( 'PCL Femur' )
>PCLftextMapper = vtkPolyDataMapper()
>PCLftextMapper.SetInput( PCLftext.GetOutput() )
>PCLftextActor = vtkFollower()
>PCLftextActor.SetMapper( PCLftextMapper )
>PCLftextActor.SetPosition( xx, yy, zz )
>
>femurAssembly = vtkAssembly()
>femurAssembly.AddPart( PCLftextActor )
>femurAssembly.AddPosition( x, y, z )
>
>thanx in advance,
>
>______________________________________________________________________ 
>Web-hosting solutions for home and business! http://website.yahoo.ca
>_______________________________________________
>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