Packageaway3d.materials
Classpublic class WireframeMaterial
InheritanceWireframeMaterial Inheritance flash.events.EventDispatcher
ImplementsISegmentMaterial, ITriangleMaterial

Wire material for face border outlining only

Public Properties
 PropertyDefined by
  alpha : Number
Determines the alpha value of the wire
WireframeMaterial
  color : int
Determines the color value of the wire
WireframeMaterial
  visible : Boolean
[read-only] Indicates whether the material is visible
WireframeMaterial
  width : Number
Determines the width value of the wire
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
Public Methods
 MethodDefined by
  
WireframeMaterial
(color:* = null, init:Object = null)
Creates a new WireframeMaterial object.
WireframeMaterial
  
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
WireframeMaterial
  
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
WireframeMaterial
  
Sends data from the material coupled with data from the DrawSegment primitive to the render session.
WireframeMaterial
  
Sends data from the material coupled with data from the DrawTriangle primitive to the render session.
WireframeMaterial
  
updateMaterial(source:Object3D, view:View3D):void
Called once per render loop when material is visible.
WireframeMaterial
Property detail
alphaproperty
public var alpha:Number

Determines the alpha value of the wire

colorproperty 
public var color:int

Determines the color value of the wire

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.

visibleproperty 
visible:Boolean  [read-only]

Indicates whether the material is visible

Implementation
    public function get visible():Boolean
widthproperty 
public var width:Number

Determines the width value of the wire

Constructor detail
WireframeMaterial()constructor
public function WireframeMaterial(color:* = null, init:Object = null)Parameters
color:* (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
 alpha:Number (default = 1, min:0, max:1)
 width:Number (default = 1, min:0)
Method detail
addOnMaterialUpdate()method
public function addOnMaterialUpdate(listener:Function):void

Default method for adding a materialupdated event listener

Parameters
listener:Function — The listener function
removeOnMaterialUpdate()method 
public function removeOnMaterialUpdate(listener:Function):void

Default method for removing a materialupdated event listener

Parameters
listener:Function — The listener function
renderSegment()method 
public function renderSegment(seg:DrawSegment):void

Sends data from the material coupled with data from the DrawSegment primitive to the render session.

Parameters
seg:DrawSegment
renderTriangle()method 
public function renderTriangle(tri:DrawTriangle):void

Sends data from the material coupled with data from the DrawTriangle primitive to the render session.

Parameters
tri:DrawTriangle
updateMaterial()method 
public function updateMaterial(source:Object3D, view:View3D):void

Called once per render loop when material is visible.

Parameters
source:Object3D
 
view:View3D
Wiki link
Click to go to the wiki page for 'away3d.materials.WireframeMaterial'

Code examples

Comments