Packagesandy.materials.attributes
Classpublic final class LineAttributes
ImplementsIAttributes

Holds all line attribute data for a material.

Some materials have line attributes to outline the faces of a 3D shape.
In these cases a LineAttributes object holds all line attribute data



Public Properties
 PropertyDefined by
  alpha : Number
The alpha value for the lines ( 0 - 1 ) Alpha = 0 means fully transparent, alpha = 1 fully opaque.
LineAttributes
  color : Number
The line color
LineAttributes
  modified : Boolean
LineAttributes
  thickness : Number
The line thickness
LineAttributes
Public Methods
 MethodDefined by
  
LineAttributes(p_nThickness:uint = 1, p_nColor:uint = 0, p_nAlpha:Number = 1)
Creates a new LineAttributes object.
LineAttributes
  
draw(p_oGraphics:Graphics, p_oPolygon:Polygon, p_oMaterial:Material, p_oScene:Scene3D):void
Draw the edges of the polygon into the graphics object.
LineAttributes
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
LineAttributes()constructor
public function LineAttributes(p_nThickness:uint = 1, p_nColor:uint = 0, p_nAlpha:Number = 1)

Creates a new LineAttributes object.

Parameters
p_nThickness:uint (default = 1) — The line thickness - Defaoult 1
 
p_nColor:uint (default = 0) — The line color - Defaoult 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 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