| Package | sandy.materials.attributes |
| Class | public final class LineAttributes |
| Implements | IAttributes |
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
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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
LineAttributes(p_nThickness:uint = 1, p_nColor:uint = 0, p_nAlpha:Number = 1)
Creates a new LineAttributes object.
| LineAttributes | ||
|
Draw the edges of the polygon into the graphics object.
| LineAttributes | ||
| alpha | property |
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
| 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:Boolean
| 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 - 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 )
|
| draw | () | method |
public function draw(p_oGraphics:Graphics, p_oPolygon:Polygon, p_oMaterial:Material, p_oScene:Scene3D):voidDraw the edges of the polygon into the graphics object.
Parametersp_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
|