Packageorg.omoa.spacemodel
Classpublic class SpaceModel
InheritanceSpaceModel Inheritance flash.events.EventDispatcher
Implements ISpaceModel
Subclasses AbstractSMLoader, RasterSpaceModel

A SpaceModel is a collection of SpaceModelEntities of a common GeometryType.



Public Properties
 PropertyDefined By
  bounds : BoundingBox
[read-only] The BoundingBox of the SpaceModel.
SpaceModel
  geometryType : String
[read-only] The GeometryType of the entities in the collection.
SpaceModel
  id : String
[read-only] The ID of the Model.
SpaceModel
  isComplete : Boolean
[read-only] True, if this Model is beyond its initialization phase.
SpaceModel
  projection : IProjection
[read-only]
SpaceModel
Protected Properties
 PropertyDefined By
  _attributes : IDataModel
SpaceModel
  _bounds : BoundingBox
SpaceModel
  _complete : Boolean = false
SpaceModel
  entities : Vector.<SpaceModelEntity>
SpaceModel
  _id : String
SpaceModel
  _projection : IProjection
SpaceModel
  _type : String = none
SpaceModel
Public Methods
 MethodDefined By
  
SpaceModel
  
Not implemented.
SpaceModel
  
Returns the entity at the given index.
SpaceModel
  
The number of entities.
SpaceModel
  
SpaceModel
  
getIndexByAttribute(attribute:String, value:String):int
Not implemented.
SpaceModel
  
iterator(type:String = null):ISpaceModelIterator
Returns an iterator of the specified type to the elements of this collection.
SpaceModel
  
linkDataModel(model:IDataModel, dataDescription:Description = null):void
This method creates links between a DataModel and the entities of this SpaceModel.
SpaceModel
Protected Methods
 MethodDefined By
  
Adds an entity to the collection.
SpaceModel
  
setProjection(projection:IProjection):void
SpaceModel
Property Detail
_attributesproperty
protected var _attributes:IDataModel

_boundsproperty 
protected var _bounds:BoundingBox

_completeproperty 
protected var _complete:Boolean = false

_idproperty 
protected var _id:String

_projectionproperty 
protected var _projection:IProjection

_typeproperty 
protected var _type:String = none

boundsproperty 
bounds:BoundingBox  [read-only]

The BoundingBox of the SpaceModel.


Implementation
    public function get bounds():BoundingBox
entitiesproperty 
protected var entities:Vector.<SpaceModelEntity>

geometryTypeproperty 
geometryType:String  [read-only]

The GeometryType of the entities in the collection.


Implementation
    public function get geometryType():String
idproperty 
id:String  [read-only]

The ID of the Model.


Implementation
    public function get id():String
isCompleteproperty 
isComplete:Boolean  [read-only]

True, if this Model is beyond its initialization phase.


Implementation
    public function get isComplete():Boolean
projectionproperty 
projection:IProjection  [read-only]


Implementation
    public function get projection():IProjection
Constructor Detail
SpaceModel()Constructor
public function SpaceModel()



Method Detail
addEntity()method
protected function addEntity(entity:SpaceModelEntity):void

Adds an entity to the collection.

Parameters

entity:SpaceModelEntity

attributes()method 
public function attributes():IDataModel

Not implemented.

Returns
IDataModel
entity()method 
public function entity(index:uint):SpaceModelEntity

Returns the entity at the given index.

Parameters

index:uint — The index number of an entity.

Returns
SpaceModelEntity — An entity.
entityCount()method 
public function entityCount():int

The number of entities.

Returns
int
findById()method 
public function findById(id:String):SpaceModelEntity

Parameters

id:String

Returns
SpaceModelEntity
getIndexByAttribute()method 
public function getIndexByAttribute(attribute:String, value:String):int

Not implemented.

Parameters

attribute:String
 
value:String

Returns
int
iterator()method 
public function iterator(type:String = null):ISpaceModelIterator

Returns an iterator of the specified type to the elements of this collection.

Parameters

type:String (default = null) — The type of the iterator, leave empty for a SimpleIterator.

Returns
ISpaceModelIterator — An iterator of the given type, a SimpleIterator if no type is specified or a NullIterator.
linkDataModel()method 
public function linkDataModel(model:IDataModel, dataDescription:Description = null):void

This method creates links between a DataModel and the entities of this SpaceModel. If you give model and a dataDescription containing a " this is applied

Parameters

model:IDataModel — The Model.
 
dataDescription:Description (default = null)

setProjection()method 
protected function setProjection(projection:IProjection):void

Parameters

projection:IProjection