| Package | sandy.materials.attributes |
| Class | public class LineAttributes |
| Inheritance | LineAttributes AAttributes |
| Subclasses | DashedLineAttributes, VertexNormalAttributes |
Some materials have line attributes to outline the faces of a 3D shape.
In these cases a LineAttributes object holds all line attribute data
| Property | Defined by | ||
|---|---|---|---|
| alpha : Number
Indicates the alpha transparency value of the line.
| LineAttributes | ||
| color : Number
The line color.
| LineAttributes | ||
![]() | flags : uint
Returns the specific flags of this attribute.
| AAttributes | |
| modified : Boolean
Whether the attribute has been modified since it's last render.
| LineAttributes | ||
| thickness : Number
The line thickness.
| LineAttributes | ||
| Method | Defined by | ||
|---|---|---|---|
|
LineAttributes(p_nThickness:uint = 1, p_nColor:uint = 0, p_nAlpha:Number = 1)
Creates a new LineAttributes object.
| LineAttributes | ||
![]() |
Method called before the display list rendering.
| AAttributes | |
![]() |
Draws attribute to the graphics object.
| AAttributes | |
![]() |
Applies attribute to a sprite.
| AAttributes | |
![]() |
Method called right after the display list rendering.
| AAttributes | |
![]() |
Allows to proceed to an initialization to know when the polyon isn't lined to the material.
| AAttributes | |
![]() |
Remove all the initialization (opposite of init).
| AAttributes | |
| alpha | property |
alpha:Number [read-write]Indicates the alpha transparency value of the line. Valid values are 0 (fully transparent) to 1 (fully opaque).
The default value is 1.0.
public function get alpha():Number
public function set alpha(value:Number):void
| color | property |
color:Number [read-write]The line color.
Implementation public function get color():Number
public function set color(value:Number):void
| modified | property |
public var modified:BooleanWhether the attribute has been modified since it's last render.
| thickness | property |
thickness:Number [read-write]The line thickness.
Implementation public function get thickness():Number
public function set thickness(value:Number):void
| LineAttributes | () | constructor |
public function LineAttributes(p_nThickness:uint = 1, p_nColor:uint = 0, p_nAlpha:Number = 1)Creates a new LineAttributes object.
Parametersp_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.
|