Packageorg.omoa.spacemodel.loader
Classpublic class RasterSpaceModel
InheritanceRasterSpaceModel Inheritance SpaceModel Inheritance flash.events.EventDispatcher
Implements ISpaceModelLoader

A SpaceModel extension that loads and stores bitmap images as raster tiles.



Public Properties
 PropertyDefined By
 Inheritedbounds : BoundingBox
[read-only] The BoundingBox of the SpaceModel.
SpaceModel
 InheritedgeometryType : String
[read-only] The GeometryType of the entities in the collection.
SpaceModel
 Inheritedid : String
[read-only] The ID of the Model.
SpaceModel
 InheritedisComplete : Boolean
[read-only] True, if this Model is beyond its initialization phase.
SpaceModel
 Inheritedprojection : IProjection
[read-only]
SpaceModel
Protected Properties
 PropertyDefined By
 Inherited_attributes : IDataModel
SpaceModel
 Inherited_bounds : BoundingBox
SpaceModel
 Inherited_complete : Boolean = false
SpaceModel
 Inheritedentities : Vector.<SpaceModelEntity>
SpaceModel
 Inherited_id : String
SpaceModel
 Inherited_projection : IProjection
SpaceModel
 Inherited_type : String = none
SpaceModel
Public Methods
 MethodDefined By
  
RasterSpaceModel
  
addRasterTile(url:String, bounds:BoundingBox, minDisplayScale:Number = 0, maxDisplayScale:Number = 0):void
RasterSpaceModel
 Inherited
Not implemented.
SpaceModel
 Inherited
Returns the entity at the given index.
SpaceModel
 Inherited
The number of entities.
SpaceModel
 Inherited
SpaceModel
 Inherited
getIndexByAttribute(attribute:String, value:String):int
Not implemented.
SpaceModel
  
initialize(data:*):void
Initialise the raster tiles and start the loading process.
RasterSpaceModel
 Inherited
iterator(type:String = null):ISpaceModelIterator
Returns an iterator of the specified type to the elements of this collection.
SpaceModel
 Inherited
linkDataModel(model:IDataModel, dataDescription:Description = null):void
This method creates links between a DataModel and the entities of this SpaceModel.
SpaceModel
  
load(url:String, parameters:Object = null):void
RasterSpaceModel
  
setId(value:String):void
RasterSpaceModel
Protected Methods
 MethodDefined By
 Inherited
Adds an entity to the collection.
SpaceModel
 Inherited
setProjection(projection:IProjection):void
SpaceModel
Public Constants
 ConstantDefined By
  MAX_ATTRIBUTE : String = _max
RasterSpaceModel
  MIN_ATTRIBUTE : String = _min
RasterSpaceModel
  URL_ATTRIBUTE : String = _url
RasterSpaceModel
Constructor Detail
RasterSpaceModel()Constructor
public function RasterSpaceModel()



Method Detail
addRasterTile()method
public function addRasterTile(url:String, bounds:BoundingBox, minDisplayScale:Number = 0, maxDisplayScale:Number = 0):void

Parameters

url:String
 
bounds:BoundingBox
 
minDisplayScale:Number (default = 0)
 
maxDisplayScale:Number (default = 0)

initialize()method 
public function initialize(data:*):void

Initialise the raster tiles and start the loading process. The data Parameter is expected to hold an Object of the following form:

		 var data:Object = {
		 					bounds: BoundingBox,
		 					tiles:  [
		 					   {url: filename as String, bounds: BoundingBox, min: min as Number, max: max as Number },
		 					   {url: filename as String, bounds: BoundingBox}
		 							]
		 					 }
		 
The top level bounds object is optional, the tile bounds and url are required. The min and max properties for scale dependant display of the tiles are optional and have no function at the moment.

Parameters

data:* — Is expected to be an Object.

load()method 
public function load(url:String, parameters:Object = null):void

Parameters

url:String
 
parameters:Object (default = null)

setId()method 
public function setId(value:String):void

Parameters

value:String

Constant Detail
MAX_ATTRIBUTEConstant
public const MAX_ATTRIBUTE:String = _max

MIN_ATTRIBUTEConstant 
public const MIN_ATTRIBUTE:String = _min

URL_ATTRIBUTEConstant 
public const URL_ATTRIBUTE:String = _url