Troubles with printing 2D Texts - strong changes between 2.3 and 2.4 version
Ken Martin
ken.martin at kitware.com
Fri Jul 23 08:42:39 EDT 1999
Here is the change I made to SampleDoc.cpp to add Text Annotation.
This code was added to the constructor.
vtkActor2D *act = vtkActor2D::New();
vtkTextMapper *txt = vtkTextMapper::New();
act->SetMapper(txt);
txt->SetInput("Hello World");
txt->SetFontSize(24);
this->Props->AddItem(act);
- Ken
-----------------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>. For help, send message body containing
"info vtkusers" to the same address. Live long and prosper.
-----------------------------------------------------------------------------
More information about the vtkusers
mailing list