| Package | away3d.materials |
| Class | public class WireframeMaterial |
| Inheritance | WireframeMaterial Material flash.events.EventDispatcher |
| Subclasses | WireColorMaterial |
| Property | Defined By | ||
|---|---|---|---|
![]() | id : int [read-only]
Unique identifier
| Material | |
| thickness : Number
Determines the thickness value of the wire
| WireframeMaterial | ||
| visible : Boolean [override] [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 | |
[override]
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 | ||
| _thickness | property |
protected var _thickness:Number| _wireAlpha | property |
protected var _wireAlpha:Number| _wireColor | property |
protected var _wireColor:uint = 0x0| ini | property |
protected var ini:InitInstance of the Init object used to hold and parse default property values specified by the initialiser object in the 3d object constructor.
| thickness | property |
thickness:NumberDetermines the thickness value of the wire
public function get thickness():Number public function set thickness(value:Number):void| visible | property |
visible:Boolean [read-only] [override] Indicates whether the material is visible
public function get visible():Boolean| wireAlpha | property |
wireAlpha:NumberDetermines the alpha value of the wire
public function get wireAlpha():Number public function set wireAlpha(value:Number):void| wireColor | property |
wireColor:uint24 bit color value representing the wire color
public function get wireColor():uint public function set wireColor(value:uint):void| WireframeMaterial | () | Constructor |
public function WireframeMaterial(wireColor:* = null, init:Object = null)
Creates a new WireframeMaterial object.
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.
|
| clone | () | method |
override public function clone(material:Material = null):MaterialDuplicates the material properties to another material object. Usage: existingMaterial = materialToClone.clone( existingMaterial ) as WireframeMaterial;
Parameters
material: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():NumberReturnsNumber |