Class SVGSpatialSource

  • All Implemented Interfaces:
    Direct Known Subclasses:

    public class SVGSpatialSource
    extends Object
    implements SpatialSource
    Registers spatials from an SVG spatial source. If the svg contains keyword metadata of "simple" then, this will attempt to create geometry and color info from the svg, otherwise it will render the svg as an image.
    Nick Collier
    • Field Detail

      • simple

        protected boolean simple
    • Method Detail

      • getID

        public String getID()
        Description copied from interface: SpatialSource
        Gets the unique name for this source.
        Specified by:
        getID in interface SpatialSource
        the unique name for this source.
      • registerSource

        public void registerSource​(saf.v3d.ShapeFactory2D shapeFactory,
                                   Map<String,​String> props)
                            throws IOException
        Description copied from interface: SpatialSource
        Registers this source with ShapeFactory2D. After registering the source VSpatials can be retreived by name from the ShapeFactory2D.
        Specified by:
        registerSource in interface SpatialSource
        props - a map containing properties (SpatialSource.WIDTH, etc.) that can be used in registering the source