[vtkusers] vtkTextActor problem
Randy Heiland
heiland at indiana.edu
Tue Aug 22 12:34:17 EDT 2006
Would someone know why I am unable to display a vtkTextActor along with
a vtkTubeFilter? For example, in the officeTubes.py (or .tcl) script
(Examples/VisualizationAlgorithms), if you insert:
textActor = vtk.vtkTextActor()
textActor.ScaledTextOn()
textActor.SetDisplayPosition(50, 50)
textActor.SetInput('sample text')
and
ren.AddActor(textActor)
the text is not rendered. However, commenting out the tubes will
display the text:
#ren.AddActor(streamTubeActor)
I'm using the latest VTK from CVS.
thanks, Randy
for tcl:
vtkTextActor textActor
textActor ScaledTextOn
textActor SetDisplayPosition 50 50
textActor SetInput "sample text"
ren1 AddActor textActor
More information about the vtkusers
mailing list