[vtkusers] New wiki Java examples

Jim Peterson jimcp at cox.net
Sun Nov 14 18:19:11 EST 2010


Sebastien,
Thanks for having a look.
The short answer is "Jim is a lazy good for nothing slug.".... <grin>
The fact is I built my vtk/Java knowledge on the examples I found in the 
distribution, and at the time that was the tutorial steps 1 through 5. I 
see there are three others in infovis that might have been illuminating, 
however, I cannot get the TreeView example to display anything. Also, as 
far as I can tell, there is no help or documentation for vtkCanvas, 
vtkPanel, or vtkRenderWindowPanel. they consist of undocumented source 
code, so even if I create javadoc, I get no more information than the 
IDE provides by listing the available methods, parameter types and 
return types, so unless you think the

I started with something that worked and stayed with it, and that was 
the very basic tutorial style code. While composing this I found the 
SimpleVTK example. It claims to have JRadioButtons to control the 
display, but actually only has one large friendly Exit button. The first 
time I ran it I did not recognize the cone because of the camera 
position, I now know enough to use the R interaction to reset the camera 
position. I may see if I can adapt that one to some of my existing projects.

Feel free to post updates or interpretations of these or any of the 
other java examples to use the intended Java interfaces.
thanks,
Jim

Sebastien Jourdain wrote:
> Thanks Jim for your contribution !
>
> Just a quick question. Why you didn't use the vtkPanel for the
> renderer and render window ?
>
> Anyway, thanks again
>
> Seb
>
> On Sun, Nov 14, 2010 at 4:12 PM, Jim Peterson <jimcp at cox.net> wrote:
>   
>> Dear list, I have demonstrated several interaction concepts in Java on the
>> Examples Wiki here :
>>
>> http://www.vtk.org/Wiki/VTK/Examples/Java/ImplicitFunctions/ImplicitSphere
>> Illustrates the shere source, and use of the tubefilter to create tubes
>> around likes.
>> http://www.vtk.org/Wiki/VTK/Examples/Java/Interaction/ExtrudeTest
>> Illustrates the linear extrusion filter, the rotational extrusion filter,
>> uses a CharEvent callback on the renderwindow interactor to toggle between
>>  the trackballActor and trackballCamera style interactions. This example
>> also demonstrates the end plane artifacts when the extrusion profile has
>> concave characteristics.
>> Please feel free to give feedback/comment/modify/add to them.
>>
>> Thanks,
>>     
>




More information about the vtkusers mailing list