Package | away3d.core.base |
Class | public class Element |
Inheritance | Element flash.events.EventDispatcher |
Subclasses | Face, Segment, Sprite3D |
Segment
or Face
.
Property | Defined By | ||
---|---|---|---|
commands : Vector.<String> [read-only]
Returns an array of drawing command strings that make up the 3d element. | Element | ||
extra : Object
An optional untyped object that can contain used-defined properties. | Element | ||
maxX : Number [read-only]
Returns the maximum x value of the 3d element
| Element | ||
maxY : Number [read-only]
Returns the maximum y value of the 3d element
| Element | ||
maxZ : Number [read-only]
Returns the maximum z value of the 3d element
| Element | ||
minX : Number [read-only]
Returns the minimum x value of the 3d element
| Element | ||
minY : Number [read-only]
Returns the minimum y value of the 3d element
| Element | ||
minZ : Number [read-only]
Returns the minimum z value of the 3d element
| Element | ||
parent : Geometry
Defines the parent 3d object of the segment. | Element | ||
pathCommands : Array [read-only]
Returns an array of drawing command objects that are used by the face. | Element | ||
radius2 : Number [read-only]
Returns the squared bounding radius of the 3d element
| Element | ||
vertexDirty : Boolean | Element | ||
vertices : Vector.<Vertex> [read-only]
Returns an array of vertex objects that make up the 3d element. | Element | ||
visible : Boolean
Determines whether the 3d element is visible in the scene. | Element |
Property | Defined By | ||
---|---|---|---|
_commands : Vector.<String> | Element | ||
_index : int | Element | ||
_lastAddedVertex : Vertex | Element | ||
_pathCommands : Array | Element | ||
_uvs : Vector.<UV> | Element | ||
_vertices : Vector.<Vertex> | Element |
Method | Defined By | ||
---|---|---|---|
addOnMappingChange(listener:Function):void
Default method for adding a mappingchanged event listener
| Element | ||
addOnVertexChange(listener:Function):void
Default method for adding a vertexchanged event listener
| Element | ||
addOnVertexValueChange(listener:Function):void
Default method for adding a vertexvaluechanged event listener
| Element | ||
addOnVisibleChange(listener:Function):void
Default method for adding a visiblechanged event listener
| Element | ||
offset(x:Number, y:Number, z:Number):void
Offsets the vertices of the face by given amounts in x, y and z. | Element | ||
removeOnMappingChange(listener:Function):void
Default method for removing a mappingchanged event listener
| Element | ||
removeOnVertexChange(listener:Function):void
Default method for removing a vertexchanged event listener
| Element | ||
removeOnVertexValueChange(listener:Function):void
Default method for removing a vertexvaluechanged event listener
| Element | ||
removeOnVisibleChange(listener:Function):void
Default method for removing a visiblechanged event listener
| Element |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the vertex of a 3d element changes. | Element | |||
Dispatched when the vertex value of a 3d element changes. | Element | |||
Dispatched when the visiblity of a 3d element changes. | Element |
_commands | property |
protected var _commands:Vector.<String>
_index | property |
protected var _index:int
_lastAddedVertex | property |
protected var _lastAddedVertex:Vertex
_pathCommands | property |
protected var _pathCommands:Array
_uvs | property |
protected var _uvs:Vector.<UV>
_vertices | property |
protected var _vertices:Vector.<Vertex>
commands | property |
commands:Vector.<String>
[read-only] Returns an array of drawing command strings that make up the 3d element.
public function get commands():Vector.<String>
extra | property |
public var extra:Object
An optional untyped object that can contain used-defined properties.
maxX | property |
maxX:Number
[read-only] Returns the maximum x value of the 3d element
public function get maxX():Number
maxY | property |
maxY:Number
[read-only] Returns the maximum y value of the 3d element
public function get maxY():Number
maxZ | property |
maxZ:Number
[read-only] Returns the maximum z value of the 3d element
public function get maxZ():Number
minX | property |
minX:Number
[read-only] Returns the minimum x value of the 3d element
public function get minX():Number
minY | property |
minY:Number
[read-only] Returns the minimum y value of the 3d element
public function get minY():Number
minZ | property |
minZ:Number
[read-only] Returns the minimum z value of the 3d element
public function get minZ():Number
parent | property |
public var parent:Geometry
Defines the parent 3d object of the segment.
pathCommands | property |
pathCommands:Array
[read-only] Returns an array of drawing command objects that are used by the face.
public function get pathCommands():Array
radius2 | property |
radius2:Number
[read-only] Returns the squared bounding radius of the 3d element
public function get radius2():Number
vertexDirty | property |
public var vertexDirty:Boolean
vertices | property |
vertices:Vector.<Vertex>
[read-only] Returns an array of vertex objects that make up the 3d element.
public function get vertices():Vector.<Vertex>
visible | property |
visible:Boolean
Determines whether the 3d element is visible in the scene.
public function get visible():Boolean
public function set visible(value:Boolean):void
addOnMappingChange | () | method |
public function addOnMappingChange(listener:Function):void
Default method for adding a mappingchanged event listener
Parameters
listener:Function — The listener function
|
addOnVertexChange | () | method |
public function addOnVertexChange(listener:Function):void
Default method for adding a vertexchanged event listener
Parameters
listener:Function — The listener function
|
addOnVertexValueChange | () | method |
public function addOnVertexValueChange(listener:Function):void
Default method for adding a vertexvaluechanged event listener
Parameters
listener:Function — The listener function
|
addOnVisibleChange | () | method |
public function addOnVisibleChange(listener:Function):void
Default method for adding a visiblechanged event listener
Parameters
listener:Function — The listener function
|
offset | () | method |
public function offset(x:Number, y:Number, z:Number):void
Offsets the vertices of the face by given amounts in x, y and z.
Parameters
x:Number — [Number] Offset in x.
| |
y:Number — [Number] Offset in y.
| |
z:Number — [Number] Offset in z.
|
removeOnMappingChange | () | method |
public function removeOnMappingChange(listener:Function):void
Default method for removing a mappingchanged event listener
Parameters
listener:Function — The listener function
|
removeOnVertexChange | () | method |
public function removeOnVertexChange(listener:Function):void
Default method for removing a vertexchanged event listener
Parameters
listener:Function — The listener function
|
removeOnVertexValueChange | () | method |
public function removeOnVertexValueChange(listener:Function):void
Default method for removing a vertexvaluechanged event listener
Parameters
listener:Function — The listener function
|
removeOnVisibleChange | () | method |
public function removeOnVisibleChange(listener:Function):void
Default method for removing a visiblechanged event listener
Parameters
listener:Function — The listener function
|
vertexChanged | Event |
away3d.events.ElementEvent
away3d.events.ElementEvent
Dispatched when the vertex of a 3d element changes.
vertexvalueChanged | Event |
away3d.events.ElementEvent
away3d.events.ElementEvent
Dispatched when the vertex value of a 3d element changes.
visibleChanged | Event |
away3d.events.ElementEvent
away3d.events.ElementEvent
Dispatched when the visiblity of a 3d element changes.