[vtkusers] VectorText rotating center

Dejan Zivkovic dejan.zivkovic90 at gmail.com
Wed Sep 16 06:11:57 EDT 2015


I would like to have VectorText that is rotation around its central
vertical axis.

I wrote some code like this:

*vtkSmartPointer<vtkVectorText> m_TextSource =

*vtkSmartPointer<vtkPolyDataMapper> m_Mapper =

*vtkSmartPointer<vtkActor> **m_Actor = vtkSmartPointer<vtkActor>::New();*
*m_Actor->GetProperty()->SetColor(1.0, 1.0, 1.0);*

and this way the text rotates around the world center.
How to move the center of rotation to the center of the text?

Dejan Zivkovic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150916/e3409697/attachment-0001.html>

More information about the vtkusers mailing list