[vtkusers] Text always on top

Max smapersmaper at gmail.com
Mon Jun 3 08:26:31 EDT 2013


Hi David,
In these examples the text is shown at some corner.
I have a vtkVectorText which is part if the scene. Code:

 vtkVectorText vectorText = new vtkVectorText();
            vectorText.SetText(text);

            vtkPolyDataMapper textMapper = vtkPolyDataMapper.New();
            textMapper.SetInputConnection(vectorText.GetOutputPort());

            //face the text always to the camera
            TextActor = new vtkFollower();
            TextActor.SetMapper(textMapper);
            TextActor.SetCamera(activeCamera);
            TextActor.GetProperty().SetColor(color.R, color.G, color.B);
            TextActor.SetPosition(textLocation.X, textLocation.Y,
textLocation.Z);
            TextActor.SetScale(5);

The only problem is that when the text is behind an object i cannot see it.
How can i make it appear all the time?

Thank you,
Max




--
View this message in context: http://vtk.1045678.n5.nabble.com/Text-always-on-top-tp5721132p5721141.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list