[vtkusers] vtkVectorText or vtkFollower Bug

ahmed Tokalak tokalak at web.de
Thu Mar 21 07:55:29 EST 2002


I also executed your code (VText.java) but it still shows nothing but the exit-Button. I see a black area where the text should be.

"Randy Heiland" <heiland at ncsa.uiuc.edu> wrote:
> Ahmed,
> 
> I don't have any problem with your code - the text gets displayed.  You didn't
> indicate which version of VTK you're using.  Nor did you include your entire
> Java pgm.  I'm using 4.0 and I attached the Java pgm I used to test this
> (simply using /VTK/Wrapping/Java/SimpleVTK.java as a template).  Also, don't
> forget to include:
>     System.loadLibrary("vtkHybridJava");
> 
> in vtkPanel.java since that's where vtkVectorText is.  But I assume you would
> have got an error otherwise.
> 
> --Randy
> 
> 
> 
> On Mar 21, 11:56am, ahmed Tokalak wrote:
> > Subject: [vtkusers] vtkVectorText or vtkFollower Bug
> > Hi Everybody,
> >
> > I use vtkVectorText to show text-labels but nothing is visible. Any idea?
> This is my code:
> >
> > vtkVectorText atext = new vtkVectorText();
> > atext.SetText("Test");
> > vtkPolyDataMapper followMapper = new vtkPolyDataMapper();
> > followMapper.SetInput(atext.GetOutput());
> > vtkFollower followActor = new vtkFollower();
> > followActor.SetMapper(followMapper);
> > followActor.SetScale( 0.2, 0.2, 0.2);
> > followActor.GetProperty().SetColor( 1, 0.2, 0.2);
> > followActor.SetPosition(0, -0.2, 0);
> >
> > renderer.AddActor(followActor);
> 


______________________________________________________________________________
Seien Sie dabei und sichern Sie sich 100% Leistung, 100% Prämie und 
100% Zufriedenheit. Jetzt unter http://club.web.de/?mc=021105




More information about the vtkusers mailing list