[vtkusers] GetTextProperty()->SetOrientation(90.0)
Scott J. Pearson
scottjp at CLEMSON.EDU
Thu Nov 10 16:28:31 EST 2005
Amy,
Thanks for the tip. Actually, the problem is that I'm using a
vtkXYPlotActor; I could use the vtkTextActor3D, but I'd like to avoid that
inconvenient workaround.
Scott
On 11/10/05 4:20 PM, "Amy Squillacote" <amy.squillacote at kitware.com> wrote:
> 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