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

Wire material for face border outlining only



Public Properties
 PropertyDefined By
 Inheritedid : 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
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
[override] 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
 Event Summary Defined By
 InheritedDispatched when the any visual aspect of the material changes.Material
Property Detail
_thicknessproperty
protected var _thickness:Number

_wireAlphaproperty 
protected var _wireAlpha:Number

_wireColorproperty 
protected var _wireColor:uint = 0x0

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 
thickness:Number

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] [override]

Indicates whether the material is visible


Implementation
    public function get visible():Boolean
wireAlphaproperty 
wireAlpha:Number

Determines the alpha value of the wire


Implementation
    public function get wireAlpha():Number
    public function set wireAlpha(value:Number):void
wireColorproperty 
wireColor:uint

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)

Creates a new WireframeMaterial object.

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####
Method Detail
clone()method
override public 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