Packageorg.omoa.spacemodel
Classpublic class SpaceModelEntity
InheritanceSpaceModelEntity Inheritance Object

Represents one spatial entity like a country, a road segment, a river sement, a city etc. As part of a SpaceModel, it has a unique id and a name. The geometry is stored in the path property and/or in the center property. The import filter (loader) may store entity attributes in the attributes property. You probably never create a SpaceModelEntity, the import filters create those during Model construction.



Public Properties
 PropertyDefined By
  attributes : Object
An associative array holding entitity attributes from the input file.
SpaceModelEntity
  bitmapData : BitmapData
The raster data of the entity.
SpaceModelEntity
  bounds : BoundingBox
BoundingBox of the geometry
SpaceModelEntity
  center : Point
A center point of the entity.
SpaceModelEntity
  id : String
Unique ID of the entity.
SpaceModelEntity
  name : String
Name of the entity.
SpaceModelEntity
  path : IGraphicsPath
The geometry data of the entity.
SpaceModelEntity
Public Methods
 MethodDefined By
  
SpaceModelEntity(dataDescriptions:Object = null)
SpaceModelEntity
  
addDescription(dataDescription:Description):void
Adds a linked Description to a DataModel.
SpaceModelEntity
  
getDescription(modelID:String):Description
Returns a Description (DataModel link) for a given DataModel-ID.
SpaceModelEntity
  
getModelIDs():Array
Returns a list of all linked DataModel-IDs.
SpaceModelEntity
  
removeDescription(dataDescription:Description):void
Remove a linked Description.
SpaceModelEntity
  
toString():String
SpaceModelEntity
Property Detail
attributesproperty
public var attributes:Object

An associative array holding entitity attributes from the input file.

bitmapDataproperty 
public var bitmapData:BitmapData

The raster data of the entity. May be null.

boundsproperty 
public var bounds:BoundingBox

BoundingBox of the geometry

centerproperty 
public var center:Point

A center point of the entity.

idproperty 
public var id:String

Unique ID of the entity.

nameproperty 
public var name:String

Name of the entity.

pathproperty 
public var path:IGraphicsPath

The geometry data of the entity. May be null.

Constructor Detail
SpaceModelEntity()Constructor
public function SpaceModelEntity(dataDescriptions:Object = null)



Parameters
dataDescriptions:Object (default = null)
Method Detail
addDescription()method
public function addDescription(dataDescription:Description):void

Adds a linked Description to a DataModel. An entity can hold one Description per DataModel.

Parameters

dataDescription:Description — The Description created by a DataModel.

getDescription()method 
public function getDescription(modelID:String):Description

Returns a Description (DataModel link) for a given DataModel-ID.

Parameters

modelID:String — The ID-String of the DataModel.

Returns
Description — The Description or null.
getModelIDs()method 
public function getModelIDs():Array

Returns a list of all linked DataModel-IDs.

Returns
Array — An Array of DataModel-ID-Strings.
removeDescription()method 
public function removeDescription(dataDescription:Description):void

Remove a linked Description.

Parameters

dataDescription:Description

toString()method 
public function toString():String

Returns
String