Re: VisAd and batik

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


  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: