Package | net.systemeD.halcyon.connection |
Class | public class Node |
Inheritance | Node ![]() ![]() |
Property | Defined by | ||
---|---|---|---|
![]() | connection : Connection
Connection to which this entity belongs.
| Entity | |
![]() | deleted : Boolean = false | Entity | |
![]() | entities : Array List of entities.
| Entity | |
![]() | hasParents : Boolean Whether this entity has any parents.
| Entity | |
![]() | hasParentWays : Boolean Whether this entity has any parents that are Ways.
| Entity | |
![]() | id : Number OSM ID.
| Entity | |
![]() | isDirty : Boolean Check if entity is modified since last markClean().
| Entity | |
lat : Number | Node | ||
latp : Number | Node | ||
![]() | loaded : Boolean Is entity fully loaded, or is it just a placeholder reference (as a relation member)?
| Entity | |
![]() | locked : Boolean = false Lock against purging when off-screen
| Entity | |
lon : Number | Node | ||
![]() | memberships : Array Returns all relations that this Entity is part of, as array of {relation, position, role}, sorted by position.
| Entity | |
![]() | numParentWays : uint How many parents are Ways?
| Entity | |
![]() | parentObjects : Array All parents of this entity.
| Entity | |
![]() | parentRelations : Array All parents that are Relations
| Entity | |
![]() | parentsLoaded : Boolean = true Have all its parents (ie, relations that contain this object as a member, ways that contain this node) been loaded into memory
| Entity | |
![]() | parentWays : Array Get array of all Ways of which this object (presumably a node) is a child.
| Entity | |
![]() | status : String | Entity | |
![]() | timestamp : String Most recent modification of the entity (from OSM API).
| Entity | |
![]() | uid : Number User ID who last edited this entity (from OSM API).
| Entity | |
![]() | version : uint Current version number.
| Entity |
Method | Defined by | ||
---|---|---|---|
Node(connection:Connection, id:Number, version:uint, tags:Object, loaded:Boolean, lat:Number, lon:Number, uid:Number, timestamp:String = null)
| Node | ||
![]() |
Create parent link from this entity to another.
| Entity | |
![]() |
countParentObjects(within:Object):uint
How many parents does this entity have that satisfy the "within" constraint?
| Entity | |
![]() |
findParentRelationsOfType(type:String, role:String = null):Array
Returns parents that are relations, and of the specified type, and of which this entity is the correct role (if provided).
| Entity | |
![]() |
getDescription():String
Basic description of Entity - should be overriden by subclass.
| Entity | |
![]() |
getRelationMemberships():Array
| Entity | |
![]() |
getTag(key:String):String
Retrieve a tag by key.
| Entity | |
![]() |
getTagArray():Array
Returns an array that duplicates the tags on this entity.
| Entity | |
![]() | Entity | ||
![]() |
getTagsCopy():Object
Returns an object that duplicates the tags on this entity.
| Entity | |
![]() |
getTagsHash():Object
| Entity | |
getType():String
| Node | ||
![]() |
hasInterestingTags():Boolean
Whether the entity has any tags other than meta-tags (attribution, created_by, source, tiger:...)
| Entity | |
![]() |
Whether 'entity' is a parent of this Entity.
| Entity | |
![]() |
hasTags():Boolean
Whether the entity has > 0 tags.
| Entity | |
![]() |
isDeleted():Boolean
Whether entity is marked deleted.
| Entity | |
isDupe():Boolean
| Node | ||
isEmpty():Boolean
| Node | ||
![]() |
isType(str:String):Boolean
Compare type against supplied string
| Entity | |
![]() |
isUneditedTiger():Boolean
Rough function to detect entities untouched since TIGER import.
| Entity | |
join(ways:Array, performAction:Function):void
Insert this node into the list of ways, and remove dupes at the same time.
| Node | ||
lat2latp(lat:Number):Number
[static]
| Node | ||
latp2lat(a:Number):Number
[static]
| Node | ||
![]() |
markClean():void
Reset modified flag.
| Entity | |
![]() |
markDirty():void
Set entity as modified.
| Entity | |
![]() |
Copy tags from another entity into this one, creating "key=value1; value2" pairs if necessary.
| Entity | |
Merge another node into this one, removing the other one.
| Node | ||
![]() |
nullify():void
Free up memory by converting entity to a dummy entity, for entities that we no longer need
but which are part of a still-in-memory relation
| Entity | |
remove(performAction:Function):void
| Node | ||
![]() |
removeFromParents(performAction:Function):void
| Entity | |
![]() |
removeParent(parent:Entity):void
Remove parent link.
| Entity | |
![]() |
renameTag(oldKey:String, newKey:String, performAction:Function):void
Change oldKey=[value] to newKey=[value], with optional undoability.
| Entity | |
![]() |
renumber(newID:Number, newVersion:uint):void
Assign a new ID and version.
| Entity | |
replaceWith(target:Node, performAction:Function):void
Replace all occurances of this node with the given target node
| Node | ||
![]() |
resume():void
Resume redrawing of the object
| Entity | |
![]() |
Compare tags between two entities.
| Entity | |
![]() |
setDeletedState(isDeleted:Boolean):void
Mark entity as deleted.
| Entity | |
setLatLon(lat:Number, lon:Number, performAction:Function):void
| Node | ||
setLonLatp(lon:Number, latproj:Number, performAction:Function):void
| Node | ||
![]() |
setStatus(s:String):void
Change entity status.
| Entity | |
![]() |
setTag(key:String, value:String, performAction:Function):void
Set key=value, with optional undoability.
| Entity | |
![]() |
suspend():void
Temporarily prevent redrawing of the object.
| Entity | |
![]() |
tagIs(key:String, value:String):Boolean
| Entity | |
toString():String
| Node | ||
Node | |||
update(version:uint, tags:Object, loaded:Boolean, parentsLoaded:Boolean, lat:Number, lon:Number, uid:Number, timestamp:String = null):void
| Node | ||
![]() |
updateEntityProperties(version:uint, tags:Object, loaded:Boolean, parentsLoaded:Boolean, uid:Number, timestamp:String):void
Set a bunch of properties in one hit.
| Entity | |
within(left:Number, right:Number, top:Number, bottom:Number):Boolean
| Node |
lat | property |
lat:Number
[read-write]Implementation
public function get lat():Number
public function set lat(value:Number):void
latp | property |
latp:Number
[read-write]Implementation
public function get latp():Number
public function set latp(value:Number):void
lon | property |
lon:Number
[read-write]Implementation
public function get lon():Number
public function set lon(value:Number):void
Node | () | constructor |
public function Node(connection:Connection, id:Number, version:uint, tags:Object, loaded:Boolean, lat:Number, lon:Number, uid:Number, timestamp:String = null)
Parameters
connection:Connection |
|
id:Number |
|
version:uint |
|
tags:Object |
|
loaded:Boolean |
|
lat:Number |
|
lon:Number |
|
uid:Number |
|
timestamp:String (default = null )
|
getType | () | method |
public override function getType():String
Returns
String |
isDupe | () | method |
public function isDupe():Boolean
Returns
Boolean |
isEmpty | () | method |
public override function isEmpty():Boolean
Returns
Boolean |
join | () | method |
public function join(ways:Array, performAction:Function):void
Insert this node into the list of ways, and remove dupes at the same time. Please, don't call this on a node from a vector background, chaos will ensue.
Parametersways:Array |
|
performAction:Function |
lat2latp | () | method |
public static function lat2latp(lat:Number):Number
Parameters
lat:Number |
Number |
latp2lat | () | method |
public static function latp2lat(a:Number):Number
Parameters
a:Number |
Number |
mergeWith | () | method |
public function mergeWith(node:Node, performAction:Function):void
Merge another node into this one, removing the other one.
Parametersnode:Node |
|
performAction:Function |
remove | () | method |
public override function remove(performAction:Function):void
Parameters
performAction:Function |
replaceWith | () | method |
public function replaceWith(target:Node, performAction:Function):void
Replace all occurances of this node with the given target node
Parameterstarget:Node |
|
performAction:Function |
setLatLon | () | method |
public function setLatLon(lat:Number, lon:Number, performAction:Function):void
Parameters
lat:Number |
|
lon:Number |
|
performAction:Function |
setLonLatp | () | method |
public function setLonLatp(lon:Number, latproj:Number, performAction:Function):void
Parameters
lon:Number |
|
latproj:Number |
|
performAction:Function |
toString | () | method |
public override function toString():String
Returns
String |
unjoin | () | method |
public function unjoin(selectedWay:Way, performAction:Function):void
Parameters
selectedWay:Way |
|
performAction:Function |
update | () | method |
public function update(version:uint, tags:Object, loaded:Boolean, parentsLoaded:Boolean, lat:Number, lon:Number, uid:Number, timestamp:String = null):void
Parameters
version:uint |
|
tags:Object |
|
loaded:Boolean |
|
parentsLoaded:Boolean |
|
lat:Number |
|
lon:Number |
|
uid:Number |
|
timestamp:String (default = null )
|
within | () | method |
public override function within(left:Number, right:Number, top:Number, bottom:Number):Boolean
Parameters
left:Number |
|
right:Number |
|
top:Number |
|
bottom:Number |
Boolean |