Packagesandy.materials.attributes
Classpublic final class OutlineAttributes
InheritanceOutlineAttributes Inheritance AAttributes

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
Indicates the alpha transparency value of the outline.
OutlineAttributes
  color : Number
The line color.
OutlineAttributes
 Inheritedflags : uint
Returns the specific flags of this attribute.
AAttributes
  modified : Boolean
Whether the attribute has been modified since it's last render.
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
 Inherited
begin(p_oScene:Scene3D):void
Method called before the display list rendering.
AAttributes
 Inherited
draw(p_oGraphics:Graphics, p_oPolygon:Polygon, p_oMaterial:Material, p_oScene:Scene3D):void
Draws attribute to the graphics object.
AAttributes
 Inherited
drawOnSprite(p_oSprite:Sprite2D, p_oMaterial:Material, p_oScene:Scene3D):void
Applies attribute to a sprite.
AAttributes
 Inherited
finish(p_oScene:Scene3D):void
Method called right after the display list rendering.
AAttributes
 Inherited
init(p_oPolygon:Polygon):void
Allows to proceed to an initialization to know when the polyon isn't lined to the material.
AAttributes
 Inherited
unlink(p_oPolygon:Polygon):void
Remove all the initialization (opposite of init).
AAttributes
Property detail
alphaproperty
alpha:Number  [read-write]

Indicates the alpha transparency value of the outline. Valid values are 0 (fully transparent) to 1 (fully opaque).

The default value is 1.0.

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

Whether the attribute has been modified since it's last render.

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.
 
p_nColor:uint (default = 0) — The line color.
 
p_nAlpha:Number (default = 1) — The alpha transparency value of the material.