[vtkusers] vtktextactor doesn't move

Doug Hoppes dhoppes at mbfbioscience.com
Mon Feb 10 16:24:01 EST 2014


Hi all,

                I'm trying to use a vtkTextActor to show some text on my screen.  I have a single viewport showing.  When I change the position of the text actor, it is always on the bottom left of the screen (I'm assuming that this is 0,0).

Code:
vtkSmartPointer<vtkTextActor> m_pLabelActor = vtkSmartPointer<vtkTextActor>::New();
      m_pLabelActor->GetTextProperty()->SetFontSize(40);
      m_pLabelActor->SetPosition2(50,50);

      // Add it to the scene
      m_pRenderer->AddViewProp(m_pLabelActor);

Any help is appreciated.

Doug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140210/baa93c0f/attachment.html>


More information about the vtkusers mailing list