[vtkusers] GetTextProperty()->SetOrientation(90.0)
Amy Squillacote
amy.squillacote at kitware.com
Thu Nov 10 16:20:16 EST 2005
There's a VTK test in Rendering/Testing/Tcl that uses this:
TestTextActor3D.tcl. It uses a vtkTextActor3D. Maybe that would
solve your problem.
- Amy
At 03:45 PM 11/10/2005, Scott J. Pearson wrote:
>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/
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
>http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list