Class ImageSpatialSource

java.lang.Object
repast.simphony.visualizationOGL2D.ImageSpatialSource
All Implemented Interfaces:
SpatialSource
Direct Known Subclasses:
ReLogoImageSpatialSource

public class ImageSpatialSource extends Object implements SpatialSource
Registers Spatials using an image (jpg, png, gif) as the source. The images will be rendered to textures.
Author:
Nick Collier
  • Constructor Details

  • Method Details

    • getID

      public String getID()
      Description copied from interface: SpatialSource
      Gets the unique name for this source.
      Specified by:
      getID in interface SpatialSource
      Returns:
      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
      Throws:
      IOException