NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi Isabel, > I try to use batik with VisAd api and i want to know if it's possible to > extract java2d shapes from > DisplayImplJ2D and to use with SVGGraphics2D from batik. Java2D does not have a scene graph for storing shapes: they are all created dynamically. So VisAD uses its own scene graph classes for storing shapes for its Java2D displays. For any data displayed without direct manipulation (i.e., all ordinary data displays) call DisplayRendererJ2D.getNonDirect() which will return a visad.VisADGroup, which will be the parent of the scene graphs of all displayed data objects. The scene graphs will be trees of objects of classes extending VisADSceneGraphObject (i.e., all visad.VisAD* except VisADError, VisADEvent, VisADException and VisADRay). These classes are analogous to Java3D scene graph classes. I'm afraid you'll have to write code to dig the geometry informaiton out of them. Good luck, Bill
visad
archives: