| Trees | Index | Help |
|
|---|
| Package svs_simulation :: Package terrain :: Module structures :: Class Structure |
|
Entity --+
|
BasicSpatialEntity --+
|
GenericTerrainObject --+
|
Structure
| Method Summary | |
|---|---|
__init__(self)
| |
Returns string representation of structure. | |
Adds wallplane and adjust bounds to contain it. | |
Tests if coordinates are contained within structure bounds. | |
Creates inner boundary on floorplane at margin distance
from edges. | |
Decodes data and applies it to self. | |
Decodes representation of wallplanes. | |
| dict |
Returns encoded representation of self. |
Returns and encoded representation of wallplanes. | |
Called when structure is added to a partition. | |
Called when structure is removed from a partition. | |
Returns maximum x coordinate from bounds. | |
Returns maximum y coordinate from bounds. | |
Returns minimum x coordinate from bounds. | |
Returns minimum y coordinate from bounds. | |
Returns name for structure. | |
Returns the bounds of the structure as mapped to the world coordinates. | |
Sets floorplane and adjust bounds to contain it. | |
setup(self,
_uid,
name,
filepath)
| |
| Inherited from GenericTerrainObject | |
Adds entity to terrain object. | |
Adds new graph to object. | |
Returns named graph. | |
Adds entity to terrain object. | |
Updates self in response to simulation time. | |
| Inherited from Entity | |
Called when entity enters a structure. | |
Called when entity is added to world. | |
Called when structure is removed world. | |
Handles event form simulation. | |
| boolean |
Returns tag state. |
Sets the structure and partition that the entity is within. | |
Forwards data representing change in entity to process handler. | |
Called when the simulation world starts running, or if an entity has been added to a world after it has started. | |
Called when the simulation world stops running, or if an entity has been removed from a world after it has started. | |
Called when the simulation world updates. | |
| Method Details |
|---|
__str__(self)
Returns string representation of structure.
|
addWallplane(self, wallplane)Adds wallplane and adjust bounds to contain it. |
containsPoint(self, x, y)Tests if coordinates are contained within structure bounds. If a floorplane is defines for the structure uses that, otherwise uses world bounds. |
createInnerBoundary(self, margin=None)Creates inner boundary on floorplane atmargin distance
from edges.
|
decode(self, data, margin=None)Decodes data and applies it to self. |
decodeWallplanes(self, data)Decodes representation of wallplanes. |
encode(self)Returns encoded representation of self.
|
encodeWallplanes(self)Returns and encoded representation of wallplanes. |
enterPartition(self, partition)Called when structure is added to a partition. |
exitPartition(self, partition)Called when structure is removed from a partition. |
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. |
getName(self)Returns name for structure. If the structure has no name retuens its _uid. |
getWorldbounds(self)Returns the bounds of the structure as mapped to the world coordinates. |
setFloorplane(self, floorplane)Sets floorplane and adjust bounds to contain it. |
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Oct 20 15:30:27 2005 | http://epydoc.sf.net |