[vtkusers] VectorText rotating center
Dejan Zivkovic
dejan.zivkovic90 at gmail.com
Wed Sep 16 06:11:57 EDT 2015
Hi,
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<vtkVectorText>::New();*
*m_TextSource->SetText("3DIA");*
*m_TextSource->Update();*
*vtkSmartPointer<vtkPolyDataMapper> m_Mapper =
vtkSmartPointer<vtkPolyDataMapper>::New();*
*m_Mapper->SetInputConnection(m_TextSource->GetOutputPort());*
*vtkSmartPointer<vtkActor> **m_Actor = vtkSmartPointer<vtkActor>::New();*
*m_Actor->GetProperty()->SetColor(1.0, 1.0, 1.0);*
*m_Actor->SetMapper(m_Mapper);*
*m_Actor->RotateY(2.0);*
and this way the text rotates around the world center.
How to move the center of rotation to the center of the text?
Thanks,
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