[vtkusers] HowTo move vtkVectorText to viewers direction.

kitknow philip.beelmann at gmail.com
Sun Jun 26 11:22:59 EDT 2011


Hi!

How can i move a text to viewers direction? My aim is that i want to be able
to read the text from every position of the viewer. Anyone an idea? :)

here a part of the code:

           vtkVectorText *pVectorText = vtkVectorText::New();
           pVectorText->SetText( caption.c_str() );

           vtkDataSetMapper *pTextMapper = vtkDataSetMapper::New();
           pTextMapper->SetInputConnection( pVectorText->GetOutputPort() );

           vtkFollower *pTextActor = vtkFollower::New();
           pTextActor->SetMapper( pTextMapper );
           pTextActor->SetPosition( xPos, yPos, zPos );

           pRenderer->AddActor( pTextActor );

--
View this message in context: http://vtk.1045678.n5.nabble.com/HowTo-move-vtkVectorText-to-viewers-direction-tp4525889p4525889.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list