| Package | away3d.graphs.bsp |
| Class | public final class BSPPortal |
| Inheritance | BSPPortal flash.events.EventDispatcher |
| Property | Defined By | ||
|---|---|---|---|
| antiPenumbrae : Array | BSPPortal | ||
| backNode : BSPNode | BSPPortal | ||
| frontList : Vector.<uint> | BSPPortal | ||
| frontNode : BSPNode | BSPPortal | ||
| frontOrder : int | BSPPortal | ||
| hasVisList : Boolean | BSPPortal | ||
| index : int | BSPPortal | ||
| listLen : int | BSPPortal | ||
| maxTimeout : int = 0 | BSPPortal | ||
| neighbours : Vector.<BSPPortal> | BSPPortal | ||
| next : BSPPortal | BSPPortal | ||
| nGon : NGon | BSPPortal | ||
| sourceNode : BSPNode | BSPPortal | ||
| visList : Vector.<uint> | BSPPortal | ||
| Method | Defined By | ||
|---|---|---|---|
| BSPPortal | |||
addToList(list:Vector.<uint>, index:int):void
Adds a portal to a bit mask list
| BSPPortal | ||
Clones the portal
| BSPPortal | ||
createLists(numPortals:int):void
Creates the bit mask lists needed to store visible portals
| BSPPortal | ||
findInitialFrontList(portals:Vector.<BSPPortal>):void
Builds the initial front list. | BSPPortal | ||
findNeighbours():void
Finds the current portal's neighbours
| BSPPortal | ||
findVisiblePortals(portals:Vector.<BSPPortal>):void
Performs exact testing to find portals visible from this portal. | BSPPortal | ||
Creates an initial portal from a node's partitionplane, encompassing the entire tree
| BSPPortal | ||
isInList(list:Vector.<uint>, index:int):Boolean
Checks if a portal is within a bit mask list
| BSPPortal | ||
Returns a Vector containing the current portal as well as an inverted portal. | BSPPortal | ||
propagateVisibility():void
Updates the portal's visibility information based on the neighbour information (if not visible from neighbours, not visible at all)
| BSPPortal | ||
removeFromList(list:Vector.<uint>, index:int):void
Removes a portal to a bit mask list
| BSPPortal | ||
removePortalsFromNeighbours(portals:Vector.<BSPPortal>):void
Checks all the portals in the front list and tests if they fall within any of the neighbours' antipenumbra. | BSPPortal | ||
Splits a portal along a plane
| BSPPortal | ||
| Constant | Defined By | ||
|---|---|---|---|
| RECURSED_PORTAL_COMPLETE : String = RecursedPortalComplete [static] | BSPPortal | ||
| _currentAntiPenumbra | property |
arcane var _currentAntiPenumbra:Vector.<Plane3D>| _currentFrontList | property |
arcane var _currentFrontList:Vector.<uint>| _currentParent | property |
arcane var _currentParent:BSPPortal| antiPenumbrae | property |
public var antiPenumbrae:Array| backNode | property |
public var backNode:BSPNode| frontList | property |
public var frontList:Vector.<uint>| frontNode | property |
public var frontNode:BSPNode| frontOrder | property |
public var frontOrder:int| hasVisList | property |
public var hasVisList:Boolean| index | property |
public var index:int| listLen | property |
public var listLen:int| maxTimeout | property |
public var maxTimeout:int = 0| neighbours | property |
public var neighbours:Vector.<BSPPortal>| next | property |
public var next:BSPPortal| nGon | property |
public var nGon:NGon| sourceNode | property |
public var sourceNode:BSPNode| visList | property |
public var visList:Vector.<uint>| BSPPortal | () | Constructor |
public function BSPPortal()| addToList | () | method |
public function addToList(list:Vector.<uint>, index:int):voidAdds a portal to a bit mask list
Parameters
list:Vector.<uint> | |
index:int |
| clone | () | method |
| createLists | () | method |
public function createLists(numPortals:int):voidCreates the bit mask lists needed to store visible portals
Parameters
numPortals:int |
| findInitialFrontList | () | method |
public function findInitialFrontList(portals:Vector.<BSPPortal>):voidBuilds the initial front list. Only allow portals in front and facing away.
Parameters
portals:Vector.<BSPPortal> |
| findNeighbours | () | method |
public function findNeighbours():voidFinds the current portal's neighbours
| findVisiblePortals | () | method |
public function findVisiblePortals(portals:Vector.<BSPPortal>):voidPerforms exact testing to find portals visible from this portal.
Parameters
portals:Vector.<BSPPortal> |
| fromNode | () | method |
public function fromNode(node:BSPNode, root:BSPNode):BooleanCreates an initial portal from a node's partitionplane, encompassing the entire tree
Parameters
node:BSPNode | |
root:BSPNode |
Boolean |
| isInList | () | method |
public function isInList(list:Vector.<uint>, index:int):BooleanChecks if a portal is within a bit mask list
Parameters
list:Vector.<uint> | |
index:int |
Boolean |
| partition | () | method |
public function partition():Vector.<BSPPortal>Returns a Vector containing the current portal as well as an inverted portal. The results will be treated as one-way portals.
ReturnsVector.<BSPPortal> |
| propagateVisibility | () | method |
public function propagateVisibility():voidUpdates the portal's visibility information based on the neighbour information (if not visible from neighbours, not visible at all)
| removeFromList | () | method |
public function removeFromList(list:Vector.<uint>, index:int):voidRemoves a portal to a bit mask list
Parameters
list:Vector.<uint> | |
index:int |
| removePortalsFromNeighbours | () | method |
public function removePortalsFromNeighbours(portals:Vector.<BSPPortal>):voidChecks all the portals in the front list and tests if they fall within any of the neighbours' antipenumbra.
Parameters
portals:Vector.<BSPPortal> |
| split | () | method |
public function split(plane:Plane3D):Vector.<BSPPortal>Splits a portal along a plane
Parameters
plane:Plane3D |
Vector.<BSPPortal> |
| RECURSED_PORTAL_COMPLETE | Constant |
public static const RECURSED_PORTAL_COMPLETE:String = RecursedPortalComplete