[vtkusers] vtkFollower won't move with vtkAssembly?

Chen, Elvis anisotropic7 at yahoo.ca
Tue Feb 19 13:07:58 EST 2002


yes...I missed the line in my copy-paste:

PCLftextActor.SetCamera( ren.GetActiveCamera() )

thx

--- Jeff Lee <jeff at cdnorthamerica.com> wrote:
> 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
> >
> >
> 
> 
> _______________________________________________
> 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


______________________________________________________________________ 
Web-hosting solutions for home and business! http://website.yahoo.ca



More information about the vtkusers mailing list