Package svs_simulation :: Package terrain :: Module util_classes :: Class GenericTerrainObject
[show private | hide private]
[frames | no frames]

Class GenericTerrainObject

Known Subclasses:
Partition, Structure, Terrain

Base class for all terrain objects.
Method Summary
  __init__(self)
  addEntity(self, entity)
Adds entity to terrain object.
  addGraph(self, graphName, graph)
Adds new graph to object.
  containsPoint(self, x, y)
Tests if specified coordinates are present in area.
  getBoundsMaxX(self)
Returns maximum x coordinate from bounds.
  getBoundsMaxY(self)
Returns maximum y coordinate from bounds.
  getBoundsMinX(self)
Returns minimum x coordinate from bounds.
  getBoundsMinY(self)
Returns minimum y coordinate from bounds.
  getGraph(self, graphName)
Returns named graph.
  removeEntity(self, entity)
Adds entity to terrain object.
  update(self, simTime)
Updates self in response to simulation time.

Method Details

addEntity(self, entity)

Adds entity to terrain object.

addGraph(self, graphName, graph)

Adds new graph to object.

containsPoint(self, x, y)

Tests if specified coordinates are present in area.

getBoundsMaxX(self)

Returns maximum x coordinate from bounds.

getBoundsMaxY(self)

Returns maximum y coordinate from bounds.

getBoundsMinX(self)

Returns minimum x coordinate from bounds.

getBoundsMinY(self)

Returns minimum y coordinate from bounds.

getGraph(self, graphName)

Returns named graph. If not found returns None.

removeEntity(self, entity)

Adds entity to terrain object.

update(self, simTime)

Updates self in response to simulation time.

This should be overridden by extending classes.

Generated by Epydoc 2.1 on Thu Oct 20 15:30:28 2005 http://epydoc.sf.net