[vtkusers] Eclipse and VTK

Bernard Giroux giroux at geo.polymtl.ca
Wed Feb 14 13:29:42 EST 2007


Mike Jackson a écrit :
> Bernard,
>   What is your overall experience with Java/VTK? As far as ease of 
> programming versus C++, Code coverage (is everything in C++ exposed in 
> Java), performance of final application?

Hi Mike,

I am geophysicist doing some programming and I use VTK for a small app, 
so my experience is relatively limited.  I also do some coding in C++ 
(number crunching stuff, with plain emacs or XCode (not tried CDT)) and 
I must admit that Java together with the Eclipse bindings make things 
mucho mucho easier.

I think Java/VTK is quite OK, although I sometimes have a hard time to 
find my way through the documentation.  There is no java documentation 
except for the very minimum that javadoc provides (which you have to 
compile yourself).  I have to use the C++ docs and dig into the java 
code as there are sometimes differences in the methods arguments.  I 
think there is some VTK stuff using pointers that is not available in 
java.

At some point, I had trouble when using references to internal data of 
vtkPolyData objects (vtkPoints for instances), as it seems the pipeline 
reorder things without me being able to keep track of what was going on. 
  Perhaps only my limited knowledge of VTK was the problem then (I ended 
up creating a copy of the data in java objects).  Maybe I would have 
also had the same problem in C++...

I don't know QT and I cannot really comment on the C++ vs java 
performance aspects, but since VTK is loaded via JNI I suppose the 
perfomance hit should be minimal.

"Mes deux cennes"...

> 
> Right now we use Qt 4.x off and on for GUI stuff when we need it, but I 
> am an old java guy who would really like to get back to using Java on a 
> regular basis.
> 
> I love Eclipse (I use it with CDT on OS X instead of Xcode) and would 
> love to pair up SWT with VTK.
> 
> Thanks for any input.
> --Mike Jackson   Senior Research Engineer
> Innovative Management & Technology Services
> 
> 
> On Feb 14, 2007, at 9:48 AM, Bernard Giroux wrote:
> 
>> Marie Bonhoure a écrit :
>>> Hi,
>>> I'm a "vtk beginner" and I'm trying to use vtk with java using Eclipse.
>>> I've created my vtk.jar library and I've added the path in Eclipse 
>>> properties.
>>> I've created a new project and a new java class and whenever I use an 
>>> inherited method from a superclass, this method is not recognized 
>>> because the path is said to be incomplete(??!!).
>>> Any idea ??
>>> Thanks in advance,
>>> Marie
>>
>> Hi Marie,
>>
>> I'm not sure a really understand your problem.  Does it occur as you 
>> type in the editor or at run time?  I use VTK in Eclipse/Java without 
>> problems in OS X and linux.  Did you import your superclass?  Did you 
>> define the LD_LIBRARY_PATH (DYLD_LIBRRY_PATH in OS X) for running your 
>> application?
>>
>>>> From: Goodwin Lawlor <goodwin.lawlor at ucd.ie>
>>>> To: vtkusers at public.kitware.com
>>>> Subject: [vtkusers] Re: vtkTextActors very fuzzy with CVS version
>>>> Date: Thu, 08 Feb 2007 14:03:36 +0000
>>>>
>>>> Dean,
>>>>
>>>> Do you think it would be worth/possible to change vtkAxesActor to 
>>>> use the vtkTextMapper/vtkActor2D combination instead of vtkTextActor.
>>>>
>>>> Goodwin
>>>>
>>>>
>>>> Dean Inglis wrote:
>>>>> Hi Mark,
>>>>>
>>>>> I have the same problem  (Borland
>>>>> builds running on Win2k, WinXP running NVIDIA
>>>>> cards).  I think this started happening with the switch to using 
>>>>> vtkImageMapper instead of vtkTextMapper within vkTextActor (.h 
>>>>> revision 1.8, .cxx rev 1.23).
>>>>> A workaround is to use a vtkActor2D/vtkTextMapper pair,
>>>>> but this cannot be done for certain vtk classes
>>>>> that maintain a vkTextActor ivar (e.g., vtkAxesActor).
>>>>> I don't know the nuts & bolts of vtk text actors/mappers,
>>>>> so can't offer any insight on how to fix this.
>>>>>
>>>>> Dean
>>>>
>>>> _______________________________________________
>>>> This is the private VTK discussion list. Please keep messages 
>>>> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>> _________________________________________________________________
>>> Ten :  Messenger en illimité sur votre mobile !  
>>> http://mobile.live.fr/messenger/ten/
>>> _______________________________________________
>>> This is the private VTK discussion list. Please keep messages 
>>> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>> --Bernard Giroux, ing., Ph.D.
>> Associé de recherche
>>
>> http://geo.polymtl.ca/~giroux
>> _______________________________________________
>> This is the private VTK discussion list.
>> Please keep messages on-topic. Check the FAQ at: 
>> http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 
> 


-- 
Bernard Giroux, ing., Ph.D.
Associé de recherche

http://geo.polymtl.ca/~giroux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3253 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070214/28577e7c/attachment.bin>


More information about the vtkusers mailing list