Package | alternativa.engine3d.objects |
Class | public class WireFrame |
Inheritance | WireFrame Object3D Object |
Object3D
which consists of solid lines. Line draws with z-buffer but has no perspective correction, so it has fixed thickness.
Wireframe can be built on Mesh
geometry as well as on sequence of points.
Property | Defined By | ||
---|---|---|---|
alpha : Number
Transparency. | WireFrame | ||
boundBox : BoundBox
Bounds of the object described as rectangular parallelepiped. | Object3D | ||
color : uint
Color
| WireFrame | ||
concatenatedMatrix : Matrix3D [read-only]
A Matrix3D object representing the combined transformation matrices of the Object3D
and all of its parent objects, back to the root level. | Object3D | ||
doubleClickEnabled : Boolean = false
Specifies whether the object receives doubleClick events. | Object3D | ||
excludedLights : Vector.<Light3D> [read-only]
Returns excluded lights list of current object. | Object3D | ||
matrix : Matrix3D
The matrix property represents a transformation matrix that determines the position
and orientation of an Object3D. | Object3D | ||
mouseChildren : Boolean = true
Determines whether or not the children of the object are mouse, or user input device, enabled. | Object3D | ||
mouseEnabled : Boolean = true
Specifies whether this object receives mouse, or other user input, messages. | Object3D | ||
name : String
Name of the object. | Object3D | ||
numChildren : int [read-only]
Returns the number of children of this object. | Object3D | ||
parent : Object3D [read-only]
Object3D, to which this object was added as a child. | Object3D | ||
rotationX : Number
The angle of rotation of Object3D around the X-axis expressed in radians. | Object3D | ||
rotationY : Number
The angle of rotation of Object3D around the Y-axis expressed in radians. | Object3D | ||
rotationZ : Number
The angle of rotation of Object3D around the Z-axis expressed in radians. | Object3D | ||
scaleX : Number
The scale of the Object3D along the X-axis. | Object3D | ||
scaleY : Number
The scale of the Object3D along the Y-axis. | Object3D | ||
scaleZ : Number
The scale of the Object3D along the Z-axis. | Object3D | ||
thickness : Number = 1
Thickness. | WireFrame | ||
useHandCursor : Boolean
A Boolean value that indicates whether the pointing hand (hand cursor)
appears when the pointer rolls over a Object3D. | Object3D | ||
userData : Object
Custom data available to store within Object3D by user. | Object3D | ||
visible : Boolean = true
Whether or not the display object is visible. | Object3D | ||
x : Number
X coordinate. | Object3D | ||
y : Number
Y coordinate. | Object3D | ||
z : Number
Z coordinate. | Object3D |
Method | Defined By | ||
---|---|---|---|
WireFrame(color:uint = 0, alpha:Number = 1, thickness:Number = 0.5)
The constructor did not make any geometry, so if you need class instance - use static methods createLinesList(),
createLineStrip() and createEdges() which return one. | WireFrame | ||
Adds given Object3D instance as a child to the end of this Object3D's children list. | Object3D | ||
Adds a child Object3D instance to this Object3D instance. | Object3D | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object
so that the listener receives notification of an event. | Object3D | ||
calculateBoundBox():void
Calculates object's bounds in its own coordinates
| Object3D | ||
clearExcludedLights(updateChildren:Boolean = false):void
Resets list of lights excluded from lighting this object. | Object3D | ||
Returns a copy of object. | Object3D | ||
Check if given object is child of this Object3D. | Object3D | ||
[static]
Creates and returns a new WireFrame instance built on edges of given Mesh. | WireFrame | ||
createLinesList(points:Vector.<Vector3D>, color:uint = 0, alpha:Number = 1, thickness:Number = 1):WireFrame [static]
Creates and returns a new WireFrame instance consists of segments for each couple of points in the given array. | WireFrame | ||
createLineStrip(points:Vector.<Vector3D>, color:uint = 0, alpha:Number = 1, thickness:Number = 1):WireFrame [static]
Creates and returns a new WireFrame instance of solid line built on point sequence. | WireFrame | ||
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow. | Object3D | ||
excludeLight(light:Light3D, updateChildren:Boolean = false):void
Disables lighting of the object by given light. | Object3D | ||
getChildAt(index:int):Object3D
Returns the child Object3D instance that exists at the specified index. | Object3D | ||
getChildByName(name:String):Object3D
Returns child Object3D instance with given name. | Object3D | ||
getChildIndex(child:Object3D):int
Returns index of given child Object3D instance. | Object3D | ||
getResources(hierarchy:Boolean = false, resourceType:Class = null):Vector.<Resource>
Gather the resources of this Object3D. | Object3D | ||
globalToLocal(point:Vector3D):Vector3D
Converts the Vector3D object from the root Object3D (global) coordinates to the local Object3D's own coordinates. | Object3D | ||
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event. | Object3D | ||
intersectRay(origin:Vector3D, direction:Vector3D):RayIntersectionData
Searches for the intersection of an Object3D and given ray, defined by origin and direction. | Object3D | ||
localToGlobal(point:Vector3D):Vector3D
Converts the Vector3D object from the Object3D's own (local) coordinates to the root Object3D (global) coordinates. | Object3D | ||
Removes the specified child Object3D instance from the child list of the
this Object3D instance. | Object3D | ||
removeChildAt(index:int):Object3D
Removes a child Object3D from the specified index position in the child list of
the Object3D. | Object3D | ||
removeChildren(beginIndex:int = 0, endIndex:int = 2147483647):void
Removes child objects in given range of indexes. | Object3D | ||
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object. | Object3D | ||
setChildIndex(child:Object3D, index:int):void
Sets index for child Object3D instance. | Object3D | ||
Swaps index positions of two specified child objects. | Object3D | ||
swapChildrenAt(index1:int, index2:int):void
Swaps index positions of two child objects by its index. | Object3D | ||
toString():String
Returns the string representation of the specified object. | Object3D | ||
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type. | Object3D |
alpha | property |
alpha:Number
Transparency.
public function get alpha():Number
public function set alpha(value:Number):void
color | property |
color:uint
Color
public function get color():uint
public function set color(value:uint):void
thickness | property |
public var thickness:Number = 1
Thickness.
WireFrame | () | Constructor |
public function WireFrame(color:uint = 0, alpha:Number = 1, thickness:Number = 0.5)
The constructor did not make any geometry, so if you need class instance - use static methods createLinesList()
,
createLineStrip()
and createEdges()
which return one.
color:uint (default = 0 )
| |
alpha:Number (default = 1 )
| |
thickness:Number (default = 0.5 )
|
See also
createEdges | () | method |
public static function createEdges(mesh:Mesh, color:uint = 0, alpha:Number = 1, thickness:Number = 1):WireFrame
Creates and returns a new WireFrame instance built on edges of given Mesh
.
Parameters
mesh:Mesh — Source of geometry.
| |
color:uint (default = 0 ) — Color of the line.
| |
alpha:Number (default = 1 ) — Transparency.
| |
thickness:Number (default = 1 ) — Thickness.
|
WireFrame — A new WireFrame instance.
|
createLinesList | () | method |
public static function createLinesList(points:Vector.<Vector3D>, color:uint = 0, alpha:Number = 1, thickness:Number = 1):WireFrame
Creates and returns a new WireFrame instance consists of segments for each couple of points in the given array.
Parameters
points:Vector.<Vector3D> — Set of point couples. One point of couple defines start of line segment and another one - end of the line.
| |
color:uint (default = 0 ) — Color of the line.
| |
alpha:Number (default = 1 ) — Transparency.
| |
thickness:Number (default = 1 ) — Thickness.
|
WireFrame — A new WireFrame instance.
|
createLineStrip | () | method |
public static function createLineStrip(points:Vector.<Vector3D>, color:uint = 0, alpha:Number = 1, thickness:Number = 1):WireFrame
Creates and returns a new WireFrame instance of solid line built on point sequence.
Parameters
points:Vector.<Vector3D> — Point sequence.
| |
color:uint (default = 0 ) — Color of the line.
| |
alpha:Number (default = 1 ) — Transparency.
| |
thickness:Number (default = 1 ) — Thickness.
|
WireFrame — A new WireFrame instance.
|
createNormals | () | method |
alternativa3d static function createNormals(mesh:Mesh, color:uint = 0, alpha:Number = 1, thickness:Number = 1, length:Number = 1):WireFrame
Parameters
mesh:Mesh | |
color:uint (default = 0 )
| |
alpha:Number (default = 1 )
| |
thickness:Number (default = 1 )
| |
length:Number (default = 1 )
|
WireFrame |