Interface SpatialSource
- All Known Subinterfaces:
ReLogoSpatialSource
- All Known Implementing Classes:
ImageSpatialSource
,NamedSpatialSoure
,NLImageSpatialSource
,ReLogoImageSpatialSource
,ReLogoSVGSpatialSource
,SVGSpatialSource
public interface SpatialSource
Interface for classes that can act as sources for VSpatials.
- Author:
- Nick Collier
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Key for the map passed to registerSource whose value specifies the size of a bounding square side, if applicable, of the created Spatial.static final String
Key for the map passed to registerSource whose value specifies the height, if appicable, of the created Spatial.static final String
Key for the map passed to registerSource whose value specifies the scale, if appicable, of the created Spatial.static final String
Key for the map passed to registerSource whose value specifies the width, if appicable, of the created Spatial. -
Method Summary
-
Field Details
-
KEY_WIDTH
Key for the map passed to registerSource whose value specifies the width, if appicable, of the created Spatial.- See Also:
-
KEY_HEIGHT
Key for the map passed to registerSource whose value specifies the height, if appicable, of the created Spatial.- See Also:
-
KEY_SCALE
Key for the map passed to registerSource whose value specifies the scale, if appicable, of the created Spatial.- See Also:
-
KEY_BSQUARE_SIZE
Key for the map passed to registerSource whose value specifies the size of a bounding square side, if applicable, of the created Spatial.- See Also:
-
-
Method Details
-
getID
String getID()Gets the unique name for this source.- Returns:
- the unique name for this source.
-
registerSource
void registerSource(saf.v3d.ShapeFactory2D shapeFactory, Map<String, String> props) throws IOExceptionRegisters this source with ShapeFactory2D. After registering the source VSpatials can be retreived by name from the ShapeFactory2D.- Parameters:
props
- a map containing properties (SpatialSource.WIDTH, etc.) that can be used in registering the source- Throws:
IOException
-