[vtkusers] GetTextProperty()->SetOrientation(90.0)

Scott J. Pearson scottjp at CLEMSON.EDU
Thu Nov 10 15:45:43 EST 2005


I was elated when I saw that VTK 5.0 allowed us to orient our text along a
non-horizontal line. However, I have yet to see this working. The following
code does not reorient my text properly. Despite a hypothetical 90 deg
rotation, the text is horizontal, not vertical. Does anyone know why?

vtkTextMapper *mapper = vtkTextMapper::New();
mapper->SetInput("Testing");
mapper->GetTextProperty()->SetOrientation(90.0);
vtkTextActor *actor = vtkTextActor::New();
actor->SetMapper(mapper);
actor->SetPosition(50, 50);
renderer->AddActor2D(actor);

Thanks,
Scott

---
Scott J. Pearson
Systems Programmer, Center for the Advanced Engineering of Fibers and Films
Clemson University     864.656.6389     scottjp at clemson.edu
10 Riggs Hall, Clemson, SC  29634
http://www.clemson.edu/caeff/





More information about the vtkusers mailing list