Packagesandy.materials.attributes
Classpublic final class OutlineAttributes
ImplementsIAttributes

Holds all outline attributes data for a material.

Each material can have an outline attribute to outline the whole 3D shape.
The OutlineAttributes class stores all the information to draw this outline shape



Public Properties
 PropertyDefined by
  alpha : Number
The alpha value for the lines ( 0 - 1 ) Alpha = 0 means fully transparent, alpha = 1 fully opaque.
OutlineAttributes
  color : Number
The line color
OutlineAttributes
  modified : Boolean
OutlineAttributes
  thickness : Number
The line thickness
OutlineAttributes
Public Methods
 MethodDefined by
  
OutlineAttributes(p_nThickness:uint = 1, p_nColor:uint = 0, p_nAlpha:Number = 1)
Creates a new OutlineAttributes object.
OutlineAttributes
  
draw(p_oGraphics:Graphics, p_oPolygon:Polygon, p_oMaterial:Material, p_oScene:Scene3D):void
Draw the outline edges of the polygon into the graphics object.
OutlineAttributes
Property detail
alphaproperty
alpha:Number  [read-write]

The alpha value for the lines ( 0 - 1 ) Alpha = 0 means fully transparent, alpha = 1 fully opaque.

Implementation
    public function get alpha():Number
    public function set alpha(value:Number):void
colorproperty 
color:Number  [read-write]

The line color

Implementation
    public function get color():Number
    public function set color(value:Number):void
modifiedproperty 
public var modified:Boolean
thicknessproperty 
thickness:Number  [read-write]

The line thickness

Implementation
    public function get thickness():Number
    public function set thickness(value:Number):void
Constructor detail
OutlineAttributes()constructor
public function OutlineAttributes(p_nThickness:uint = 1, p_nColor:uint = 0, p_nAlpha:Number = 1)

Creates a new OutlineAttributes object.

Parameters
p_nThickness:uint (default = 1) — The line thickness - Defaoult 1
 
p_nColor:uint (default = 0) — The line color - Default 0 ( black )
 
p_nAlpha:Number (default = 1) — The alpha value in percent of full opacity ( 0 - 1 )
Method detail
draw()method
public function draw(p_oGraphics:Graphics, p_oPolygon:Polygon, p_oMaterial:Material, p_oScene:Scene3D):void

Draw the outline edges of the polygon into the graphics object.

Parameters
p_oGraphics:Graphics — the Graphics object to draw attributes into
 
p_oPolygon:Polygon — the polygon which is going o be drawn
 
p_oMaterial:Material — the refering material
 
p_oScene:Scene3D — the scene