| Package | away3d.materials |
| Class | public class WireframeMaterial |
| Inheritance | WireframeMaterial Material flash.events.EventDispatcher |
| Subclasses | WireColorMaterial |
| Property | Defined by | ||
|---|---|---|---|
![]() | id : int
Unique identifier
| Material | |
| thickness : Number
Determines the thickness value of the wire
| WireframeMaterial | ||
| visible : Boolean [read-only]
Indicates whether the material is visible
| WireframeMaterial | ||
| wireAlpha : Number
Determines the alpha value of the wire
| WireframeMaterial | ||
| wireColor : uint
24 bit color value representing the wire color
| WireframeMaterial | ||
| Property | Defined by | ||
|---|---|---|---|
| ini : Init
Instance of the Init object used to hold and parse default property values
specified by the initialiser object in the 3d object constructor.
| WireframeMaterial | ||
| _thickness : Number | WireframeMaterial | ||
| _wireAlpha : Number | WireframeMaterial | ||
| _wireColor : uint = 0x0 | WireframeMaterial | ||
| Method | Defined by | ||
|---|---|---|---|
|
WireframeMaterial
(wireColor:* = null, init:Object = null)
Creates a new
WireframeMaterial object. | WireframeMaterial | ||
![]() |
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| Material | |
|
Duplicates the material properties to another material object.
| WireframeMaterial | ||
![]() |
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| Material | |
| Method | Defined by | ||
|---|---|---|---|
|
getDefaultThickness():Number
| WireframeMaterial | ||
| ini | property |
protected var ini:Init
Instance of the Init object used to hold and parse default property values specified by the initialiser object in the 3d object constructor.
| _thickness | property |
protected var _thickness:Number
| thickness | property |
thickness:Number [read-write]Determines the thickness value of the wire
Implementation public function get thickness():Number
public function set thickness(value:Number):void
| visible | property |
visible:Boolean [read-only]Indicates whether the material is visible
Implementation public function get visible():Boolean
| _wireAlpha | property |
protected var _wireAlpha:Number
| wireAlpha | property |
wireAlpha:Number [read-write]Determines the alpha value of the wire
Implementation public function get wireAlpha():Number
public function set wireAlpha(value:Number):void
| _wireColor | property |
protected var _wireColor:uint = 0x0
| wireColor | property |
wireColor:uint [read-write]24 bit color value representing the wire color
Implementation public function get wireColor():uint
public function set wireColor(value:uint):void
| WireframeMaterial | () | constructor |
public function WireframeMaterial(wireColor:* = null, init:Object = null)Parameters
wireColor:* (default = null) — A string, hex value or colorname representing the color of the wire.
|
|
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
|
wireAlpha:Number (default = 1, min:0, max:1) | |
thickness:Number (default = getDefaultThickness() |
| clone | () | method |
public override function clone(material:Material = null):Material
Duplicates the material properties to another material object. Usage: existingMaterial = materialToClone.clone( existingMaterial ) as WireframeMaterial;
Parametersmaterial:Material (default = null) — [optional] The new material instance into which all properties are copied. The default is WireframeMaterial.
|
Material —
The new material instance with duplicated properties applied.
|
| getDefaultThickness | () | method |
protected function getDefaultThickness():Number
Returns
Number |