Packageaway3d.materials
Classpublic class WireframeMaterial
InheritanceWireframeMaterial Inheritance Material Inheritance flash.events.EventDispatcher
SubclassesWireColorMaterial

Wire material for face border outlining only

Public Properties
 PropertyDefined by
 Inheritedid : 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
Protected Properties
 PropertyDefined 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
Public Methods
 MethodDefined by
  
WireframeMaterial
(wireColor:* = null, init:Object = null)
Creates a new WireframeMaterial object.
WireframeMaterial
 Inherited
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
Material
  
clone(material:Material = null):Material
Duplicates the material properties to another material object.
WireframeMaterial
 Inherited
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
Material
Protected Methods
 MethodDefined by
  
WireframeMaterial
Events
 EventSummaryDefined by
 Inherited Dispatched when the any visual aspect of the material changes.Material
Property detail
iniproperty
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.

_thicknessproperty 
protected var _thickness:Number
thicknessproperty 
thickness:Number  [read-write]

Determines the thickness value of the wire

Implementation
    public function get thickness():Number
    public function set thickness(value:Number):void
visibleproperty 
visible:Boolean  [read-only]

Indicates whether the material is visible

Implementation
    public function get visible():Boolean
_wireAlphaproperty 
protected var _wireAlpha:Number
wireAlphaproperty 
wireAlpha:Number  [read-write]

Determines the alpha value of the wire

Implementation
    public function get wireAlpha():Number
    public function set wireAlpha(value:Number):void
_wireColorproperty 
protected var _wireColor:uint = 0x0
wireColorproperty 
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
Constructor detail
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.
Init Parameters
 wireAlpha:Number (default = 1, min:0, max:1)
 thickness:Number (default = getDefaultThickness()
Method detail
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;

Parameters
material:Material (default = null) — [optional] The new material instance into which all properties are copied. The default is WireframeMaterial.

Returns
Material — The new material instance with duplicated properties applied.
getDefaultThickness()method 
protected function getDefaultThickness():Number

Returns
Number
Wiki link
Click to go to the wiki page for 'away3d.materials.WireframeMaterial'

Code examples

Comments