[vtkusers] AWT + SWT + Event Loops (was Re: VTK6 and Java Cone Example 5)

Ric Wright rkwright at geofx.com
Thu Aug 15 11:57:36 EDT 2013


Well, I got the Cocoa example to compile and link. Had to modify the Cocoa
project file to link with the dylibs and set all the include directories
to the right places in the VTK trees (I love C++).  It works, but my love
of Objective-C is even less than C++ (both of which I use at work but
avoid on my own time).

I then tried the ImagePlaneWidget.java from the jar file.  Ran it as plain
Java, no Eclipse, no SWT.  No exceptions, no errors, but nothing rendered.
 I get the black background and three white axes.  Nothing else. Walked
through in the debugger and it all seems OK, just no image widget, no
rendered volumes.

I think at this point I will throw in the towel and go back to my own
framework.  VTK is interesting, but too many bumps in the road for me.
Perhaps later.

Thanks again to Sean and Sebastien for their patient help.

Ric


On 8/14/13 2:01 PM, "Ric Wright" <rkwright at geofx.com> wrote:

>Sean, 
>
>You're right.  But OTOH, I did build the VTK in XCOde and then pulled up
>the Example/GUI Xcode project (Examples/GUI/Cocoa).  Unfortunately, the
>project doesn't match its own documentation.  It says point the project
>at 
>the VTK/include project.  But there isn't one - there are a couple of
>dozen (I love C++ :-).  That can be resolved (slowly) but the project is
>also looking for all the lib files to be .a (static) libs.  But the VTK
>project builds dylibs (which is the right way, IMO).
>
>I'm sure all this can be resolved, but it's a lot of learning curves and
>tool fiddling.  This isn't my job, it's my hobby. As I said before, it's
>a 
>tradeoff - climb the VTK hill and benefit from the work you guys have
>done, or stick with what I have got - which works.  I'll be probably keep
>going because I hate giving up ;-)
>
>Thanks
>Ric
>
>
>On 8/14/13 1:50 PM, "Sean McBride" <sean at rogue-research.com> wrote:
>
>>On Wed, 14 Aug 2013 08:53:02 -0700, rkwright said:
>>
>>>It may be that the message is stop fighting and accept
>>>using Xcode.  Is that what you work in?  Xcode and Objective C/C++?
>>
>>Well, "it depends" of course, on what you're doing, why, etc., etc.  But
>>VTK is written in C++, support for other languages is well-supported but
>>is an extra layer.  Similarly, Java has fallen out of favour with Apple,
>>and not included by default anymore.  Using a 3rd party Java (7) and 3rd
>>party development environment (Eclipse) are likely to be less smooth
>>than 
>>using OS vendor supplied languages (C/C++/Obj-C) and tools (ie Xcode).
>>But it all depends.  YMMV.
>>
>>Cheers,
>>
>>--
>>____________________________________________________________
>>Sean McBride, B. Eng                 sean at rogue-research.com
>>Rogue Research                        www.rogue-research.com
>>Mac Software Developer              Montréal, Québec, Canada
>>





More information about the vtkusers mailing list