Package | away3d.core.base |
Class | public class Segment |
Inheritance | Segment Element flash.events.EventDispatcher |
See also
Property | Defined by | ||
---|---|---|---|
commands : Array [read-only]
Returns an array of path command strings that are used by the segment.
| Segment | ||
extra : Object
An optional untyped object that can contain used-defined properties.
| Element | ||
material : Material
Defines the material of the segment.
| Segment | ||
maxX : Number [read-only]
Returns the maximum x value of the segment
| Segment | ||
maxY : Number [read-only]
Returns the maximum y value of the segment
| Segment | ||
maxZ : Number [read-only]
Returns the maximum z value of the segment
| Segment | ||
minX : Number [read-only]
Returns the minimum x value of the face
| Segment | ||
minY : Number [read-only]
Returns the minimum y value of the face
| Segment | ||
minZ : Number [read-only]
Returns the minimum y value of the face
| Segment | ||
parent : Geometry
Defines the parent 3d object of the segment.
| Element | ||
pathCommands : Array [read-only]
Returns an array of path command objects that are used by the face.
| Segment | ||
radius2 : Number [read-only]
Returns the squared bounding radius of the segment.
| Segment | ||
segmentVO : SegmentVO | Segment | ||
v0 : Vertex
Defines the v0 vertex of the segment.
| Segment | ||
v1 : Vertex
Defines the v1 vertex of the segment.
| Segment | ||
vertexDirty : Boolean | Element | ||
vertices : Array [read-only]
Returns an array of vertex objects that are used by the segment.
| Segment | ||
visible : Boolean
Determines whether the 3d element is visible in the scene.
| Element |
Method | Defined by | ||
---|---|---|---|
Creates a new
Segment object. | Segment | ||
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 | ||
curveTo(cx:Number, cy:Number, cz:Number, ex:Number, ey:Number, ez:Number):void
| Segment | ||
Segment | |||
Segment | |||
lineTo(x:Number, y:Number, z:Number):void
| Segment | ||
moveTo(x:Number, y:Number, z:Number):void
| Segment | ||
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 material of the segment changes. | Segment | |||
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 |
commands:Array
[read-only]Returns an array of path command strings that are used by the segment.
Implementation public function get commands():Array
material | property |
material:Material
[read-write]Defines the material of the segment.
Implementation public function get material():Material
public function set material(value:Material):void
maxX | property |
maxX:Number
[read-only]Returns the maximum x value of the segment
Implementation public function get maxX():Number
See also
maxY | property |
maxY:Number
[read-only]Returns the maximum y value of the segment
Implementation public function get maxY():Number
See also
maxZ | property |
maxZ:Number
[read-only]Returns the maximum z value of the segment
Implementation public function get maxZ():Number
See also
minX | property |
minX:Number
[read-only]Returns the minimum x value of the face
Implementation public function get minX():Number
See also
minY | property |
minY:Number
[read-only]Returns the minimum y value of the face
Implementation public function get minY():Number
See also
minZ | property |
minZ:Number
[read-only]Returns the minimum y value of the face
Implementation public function get minZ():Number
See also
pathCommands | property |
pathCommands:Array
[read-only]Returns an array of path command objects that are used by the face.
Implementation public function get pathCommands():Array
radius2 | property |
radius2:Number
[read-only]Returns the squared bounding radius of the segment.
Implementation public function get radius2():Number
segmentVO | property |
public var segmentVO:SegmentVO
v0 | property |
v0:Vertex
[read-write]Defines the v0 vertex of the segment.
Implementation public function get v0():Vertex
public function set v0(value:Vertex):void
v1 | property |
v1:Vertex
[read-write]Defines the v1 vertex of the segment.
Implementation public function get v1():Vertex
public function set v1(value:Vertex):void
vertices | property |
vertices:Array
[read-only]Returns an array of vertex objects that are used by the segment.
Implementation public function get vertices():Array
Segment | () | constructor |
public function Segment(v0:Vertex = null, v1:Vertex = null, material:Material = null)
Parameters
v0:Vertex (default = null ) — The first vertex object of the segment
|
|
v1:Vertex (default = null ) — The second vertex object of the segment
|
|
material:Material (default = null ) — [optional] The material used by the segment to render
|
curveTo | () | method |
public function curveTo(cx:Number, cy:Number, cz:Number, ex:Number, ey:Number, ez:Number):void
Parameters
cx:Number |
|
cy:Number |
|
cz:Number |
|
ex:Number |
|
ey:Number |
|
ez:Number |
defineSingleCurve | () | method |
public function defineSingleCurve(start:Vertex, control:Vertex, end:Vertex):void
Parameters
start:Vertex |
|
control:Vertex |
|
end:Vertex |
drawPath | () | method |
lineTo | () | method |
public function lineTo(x:Number, y:Number, z:Number):void
Parameters
x:Number |
|
y:Number |
|
z:Number |
moveTo | () | method |
public function moveTo(x:Number, y:Number, z:Number):void
Parameters
x:Number |
|
y:Number |
|
z:Number |
materialchanged | event |