[vtkusers] VTK6 and Java Cone Example 5
Ric Wright
rkwright at geofx.com
Tue Aug 6 11:17:02 EDT 2013
Seb,
Understood. Thanks for the info. I'll keep plugging away, at least for a
little while and see how it works for me.
Thanks
Ric
From: Sebastien Jourdain <sebastien.jourdain at kitware.com>
Date: Tuesday, August 6, 2013 9:35 AM
To: Ric Wright <rkwright at geofx.com>
Cc: vtkusers <vtkusers at vtk.org>
Subject: Re: [vtkusers] VTK6 and Java Cone Example 5
Hi Ric,
There is a real Java community among the VTK users, but it is way smaller
than the C++ or Python one which make it often quiet on the mailing list.
Moreover, as Java tends to bring less funding to Kitware to support it, we
end up with out-dated documentation. Although the Java community does have
some strong knowledge on how to use VTK with Java and use it in real
projects. But for them it is not easy to give back what they spend time to
acquired...
Seb
On Tue, Aug 6, 2013 at 10:19 AM, Ric Wright <rkwright at geofx.com> wrote:
> 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/2f524d3a/attachment.htm>
More information about the vtkusers
mailing list