| Package | alternativa.engine3d.core |
| Class | public class Sector |
If a camera is located in a child branch of a tree node, formed by a splitter, then visibility of the other branch of that node is determined by the following rules:
Sectors are specified in the Scene.sectors property.
See also
| Property | Defined by | ||
|---|---|---|---|
| name : String The name of the sector.
| Sector | ||
| Method | Defined by | ||
|---|---|---|---|
|
Sector(x:Number = 0, y:Number = 0, z:Number = 0, name:String = null)
Creates a new instance of a sector.
| Sector | ||
|
addVisible(sector:Sector, ... sectors):void
Adds the specified sectors to the visibility list.
| Sector | ||
|
Determines potential visibility of the specified sector.
| Sector | ||
|
removeVisible(sector:Sector, ... sectors):void
Removes the specified sectors from the visibility list.
| Sector | ||
|
toString():String
Creates a string representation of an object.
| Sector | ||
| name | property |
public var name:StringThe name of the sector.
| Sector | () | constructor |
public function Sector(x:Number = 0, y:Number = 0, z:Number = 0, name:String = null)Creates a new instance of a sector. Specified coordinates determine the child branch of a splitter, in which the sector will be located.
Parametersx:Number (default = 0) — X coordinate |
|
y:Number (default = 0) — Y coordinate |
|
z:Number (default = 0) — Z coordinate |
|
name:String (default = null) — the name of the sector. If null have been specified, the name will be generated automatically. |
| addVisible | () | method |
public function addVisible(sector:Sector, ... sectors):voidAdds the specified sectors to the visibility list. The visibility of sectors is mutual, therefore the current sector is automatically added to visibility list of each specified sector.
Parameterssector:Sector — the sector to add to the visibility list |
|
... sectors — additional sectors to add to the visibility list |
See also
| isVisible | () | method |
public function isVisible(sector:Sector):BooleanDetermines potential visibility of the specified sector.
Parameterssector:Sector — sector whose visibility is checked |
Boolean — true, if the specified sector is in the visibility list, otherwise false |
| removeVisible | () | method |
public function removeVisible(sector:Sector, ... sectors):voidRemoves the specified sectors from the visibility list. The visibility of sectors is mutual, therefore the current sector is automatically removed from visibility list of each specified sector.
Parameterssector:Sector — the sector to delete from the visibility list |
|
... sectors — additional sectors to remove from the visibility list |
See also
| toString | () | method |
public function toString():StringCreates a string representation of an object.
ReturnsString — string object representation |