Package | away3d.core.draw |
Class | public class DrawSegment |
Inheritance | DrawSegment DrawPrimitive |
Property | Defined by | ||
---|---|---|---|
create : Function
Placeholder function for creating new drawing primitives from a cache of objects.
| DrawPrimitive | ||
endIndex : int | DrawSegment | ||
generated : Boolean
Indicator of whether primitive is the produce of a generator algorithm
| DrawPrimitive | ||
ignoreSort : Boolean | DrawPrimitive | ||
length : Number
The screen length of the segment primitive.
| DrawSegment | ||
material : Material
The material of the segment primitive.
| DrawSegment | ||
maxX : Number
Indicates the maximum x value of the drawing primitive.
| DrawPrimitive | ||
maxY : Number
Indicates the maximum y value of the drawing primitive.
| DrawPrimitive | ||
maxZ : Number
Indicates the maximum z value of the drawing primitive.
| DrawPrimitive | ||
minX : Number
Indicates the minimum x value of the drawing primitive.
| DrawPrimitive | ||
minY : Number
Indicates the minimum y value of the drawing primitive.
| DrawPrimitive | ||
minZ : Number
Indicates the minimum z value of the drawing primitive.
| DrawPrimitive | ||
quadrant : PrimitiveQuadrantTreeNode
Reference to the last quadrant used by the drawing primitive.
| DrawPrimitive | ||
screenCommands : Array | DrawSegment | ||
screenIndices : Array | DrawSegment | ||
screenVertices : Array | DrawSegment | ||
screenZ : Number
Indicates the screen z value of the drawing primitive (used for z-sorting).
| DrawPrimitive | ||
segmentVO : SegmentVO
A reference to the segment value object used by the segment primitive.
| DrawSegment | ||
source : Object3D
The parent 3d object of the drawing primitive.
| DrawPrimitive | ||
startIndex : int | DrawSegment | ||
v0x : Number
The x position of the v0 screenvertex of the segment primitive.
| DrawSegment | ||
v0y : Number
The y position of the v0 screenvertex of the segment primitive.
| DrawSegment | ||
v0z : Number
The z position of the v0 screenvertex of the segment primitive.
| DrawSegment | ||
v1x : Number
The x position of the v1 screenvertex of the segment primitive.
| DrawSegment | ||
v1y : Number
The y position of the v1 screenvertex of the segment primitive.
| DrawSegment | ||
v1z : Number
The z position of the v1 screenvertex of the segment primitive.
| DrawSegment | ||
view : View3D
The view 3d object of the drawing primitive.
| DrawPrimitive |
Method | Defined by | ||
---|---|---|---|
calc():void
Calculates the min, max and screen properties required for rendering the drawing primitive.
| DrawSegment | ||
clear():void
Deletes the data currently held by the drawing primitive.
| DrawSegment | ||
contains(x:Number, y:Number):Boolean
Determines whether the given point lies inside the drawing primitive
| DrawSegment | ||
getZ(x:Number, y:Number):Number
Calulates the screen z value of a precise point on the drawing primitive.
| DrawSegment | ||
quarter(focus:Number):Array
Cuts the drawing primitive into 4 equally sized drawing primitives.
| DrawSegment | ||
render():void
Draws the primitive to the view.
| DrawSegment | ||
toString():String
Used to trace the values of a drawing primitive.
| DrawSegment |
endIndex | property |
public var endIndex:int
length | property |
public var length:Number
The screen length of the segment primitive.
material | property |
public var material:Material
The material of the segment primitive.
screenCommands | property |
public var screenCommands:Array
screenIndices | property |
public var screenIndices:Array
screenVertices | property |
public var screenVertices:Array
segmentVO | property |
public var segmentVO:SegmentVO
A reference to the segment value object used by the segment primitive.
startIndex | property |
public var startIndex:int
v0x | property |
public var v0x:Number
The x position of the v0 screenvertex of the segment primitive.
v0y | property |
public var v0y:Number
The y position of the v0 screenvertex of the segment primitive.
v0z | property |
public var v0z:Number
The z position of the v0 screenvertex of the segment primitive.
v1x | property |
public var v1x:Number
The x position of the v1 screenvertex of the segment primitive.
v1y | property |
public var v1y:Number
The y position of the v1 screenvertex of the segment primitive.
v1z | property |
public var v1z:Number
The z position of the v1 screenvertex of the segment primitive.
calc | () | method |
public override function calc():void
Calculates the min, max and screen properties required for rendering the drawing primitive.
clear | () | method |
public override function clear():void
Deletes the data currently held by the drawing primitive.
contains | () | method |
public override function contains(x:Number, y:Number):Boolean
Determines whether the given point lies inside the drawing primitive
Parametersx:Number — The x position of the point to be tested.
|
|
y:Number — The y position of the point to be tested.
|
Boolean — The result of the test.
|
getZ | () | method |
public override function getZ(x:Number, y:Number):Number
Calulates the screen z value of a precise point on the drawing primitive.
Parametersx:Number — The x position of the point to be tested.
|
|
y:Number — The y position of the point to be tested.
|
Number — The screen z value (used in z-sorting).
|
quarter | () | method |
public override function quarter(focus:Number):Array
Cuts the drawing primitive into 4 equally sized drawing primitives. Used in z-sorting correction.
Parametersfocus:Number — The focus value of the camera being used in the view.
|
Array |
render | () | method |
public override function render():void
Draws the primitive to the view.
toString | () | method |
public override function toString():String
Used to trace the values of a drawing primitive.
ReturnsString — A string representation of the drawing primitive.
|