[vtkusers] vtkVectorText or vtkFollower Bug
ahmed Tokalak
tokalak at web.de
Thu Mar 21 07:21:01 EST 2002
I use vtk3.2 on linux.
> 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);
>
________________________________________________________________
Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr!
Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13
More information about the vtkusers
mailing list