[vtkusers] Text overlay problem.

Mathieu Malaterre mathieu.malaterre at kitware.com
Wed Jun 9 13:29:26 EDT 2004


Mathieu,

	I try modifying annotatePick.py and I don't see anything wrong. Could 
you please provide an example to reproduce the bug ?

Thanks,
Mathieu

Mathieu Coursolle wrote:
> Hi,
> I wish to display some text as overlay on my window to show
> information about the volume it displays.
> I can do it fine, except that some characters looks corrupted
> each time the renderer renders. It is always different characters
> and I've try a few ways to display the text and I always have the
> same problem. Any idea on how to correct that? I am using a
> ATI 9600 Radeon (128 mb) card if it might be the problem. (VTK 4.2.2)
>  
> Here is how I add the text, Is it alright? I did exactly the same way
> as VTK user guide 4.2,
>  
> 
> m_Text = vtkTextMapper::New();
> 
> m_Text->SetFontSize(14);
> 
> m_Text->SetFontFamilyToArial();
> 
> m_Text->SetVerticalJustificationToBottom();
> 
> m_Text->SetJustificationToLeft();
> 
> m_Text->BoldOn();
> 
> m_Text->ItalicOn();
> 
> m_Text->ShadowOn();
> 
> m_TextActor = vtkScaledTextActor::New();
> 
> m_TextActor->SetMapper(m_Text);
> 
> m_TextActor->SetDisplayPosition(10, 10);
> 
> m_TextActor->GetProperty()->SetColor(0, 1, 0);
> 
> m_renderer->AddActor2D(m_TextActor);
> 
> Thank you!
> 
> ----
> 
> Mathieu
> 
> 
> ------------------------------------------------------------------------
> Post your free ad now! *Yahoo! Canada Personals* 
> <http://ca.personals.yahoo.com/>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: annotatePick.py
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040609/79e4542d/attachment.txt>


More information about the vtkusers mailing list