[vtkusers] VTK6 and Java Cone Example 5

Ric Wright rkwright at geofx.com
Tue Aug 6 10:19:08 EDT 2013


Thanks Sebastien.  I'll take a look. BTW, none of the examples in
Examples/Infovis/Java work either:
* HelloWorld.java draws some simple tree in B&W then crashes with the same
threading error.
* Trees.java works, but doesn't do anything.  Simple white cross on the
screen but nothing else. Not sure what it is SUPPOSED to do, but no tree
appears that's for sure.
* InfoVis.java won't compile because several breadthfirst.* methods can't be
found.
I'll keep poking, but I'm getting the sense that Java is a neglected child
in the VTK world.  Is it really used by any part of the VTK community?  If
so, who?

I wrote up my first impressions of VTK on my (little-used) blog.

http://blogs.geofx.com/

So my dilemma is continue to try to make VTK work (which will be a
formidable learning curve, apparently) or go back to incrementally improving
GMS, which I know DOES work.  I'd rather use VTK, but don't want to tilt at
windmills. So if I knew (and could exchange ideas) with others actually
using Java and VTK for real work, I'd be a lot more confident.

Thanks
Ric


From:  Sebastien Jourdain <sebastien.jourdain at kitware.com>
Date:  Tuesday, August 6, 2013 8:56 AM
To:  Ric Wright <rkwright at geofx.com>
Cc:  Sean McBride <sean at rogue-research.com>, vtkusers <vtkusers at vtk.org>
Subject:  Re: [vtkusers] VTK6 and Java Cone Example 5

In Java you should use the Java specific classes anyway like
vtkPanel/vtkCanvas or the new version of them used in the vtk.sample package
of the vtk.jar...

The purpose of those example was to show the possible match between the
different languages...

Nothing more I believe,

Seb


On Tue, Aug 6, 2013 at 8:52 AM, Ric Wright <rkwright at geofx.com> wrote:
> Ah, OK.  Well, I don't know what to do here.  Is this happening to others?
>  Should I file a bug?  Just try to work around it by not using
> RenderWindowInteractors (sounds kind of lame).  Or?
> 
> Suggestions?
> 
> Thanks
> Ric
> 
> 
> On 8/5/13 4:15 PM, "Sean McBride" <sean at rogue-research.com> wrote:
> 
>> >On Mon, 5 Aug 2013 16:10:55 -0500, Ric Wright said:
>> >
>>> >>Well, a little playing around didn't seem to help, but I am frankly not
>>> >>an
>>> >>expert on threads.  However, it seems to me that the source of the
>>> >>problem
>>> >>is that the vtkRenderWindowInteractor gets initialized then the start()
>>> >>method creates an event loop that is monitored by the
>>> >>vtkRenderWindowInteractor.  I suspect that start() method spawns a new
>>> >>thread to listen to the events and it is the spawning of that thread that
>>> >>causes the exception.
>> >
>> >VTK's Cocoa classes never create any threads.
>> >
>> >Cheers,
>> >
>> >--
>> >____________________________________________________________
>> >Sean McBride, B. Eng                 sean at rogue-research.com
>> >Rogue Research                        www.rogue-research.com
>> <http://www.rogue-research.com>
>> >Mac Software Developer              Montréal, Québec, Canada
>> >
>> >
> 
> 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130806/25c7f5ed/attachment.htm>


More information about the vtkusers mailing list