Packagealternativa.engine3d.materials
Classpublic class DevMaterial
InheritanceDevMaterial Inheritance SurfaceMaterial Inheritance Material

Material that shades faces with specified color according to parameterType property.



Public Properties
 PropertyDefined by
 Inheritedalpha : Number
material opacity
Material
 InheritedblendMode : String
Color blending mode.
Material
  color : uint
Fill color.
DevMaterial
  maxMobility : int
End of mobility interval for polygons' mobility visualization.
DevMaterial
  maxParameterValue : Number
Maximum value of indicated parameter.
DevMaterial
  minMobility : int
Beginning of mobility interval for polygons' mobility visualization.
DevMaterial
  normalsColor : uint
Color of normals.
DevMaterial
  parameterType : int
Type of indicated parameter.
DevMaterial
  showNormals : Boolean
Set value to true to show normals of polygons.
DevMaterial
 Inheritedsurface : Surface
Surface material.
SurfaceMaterial
  wireColor : uint
Whire line color.
DevMaterial
  wireThickness : Number
Wire line thickness.
DevMaterial
Public Methods
 MethodDefined by
  
DevMaterial(parameterType:uint = 0, color:uint = 0xFFFFFF, maxParameterValue:Number = 20, showNormals:Boolean = false, normalsColor:uint = 0x00FFFF, minMobility:int = 0, maxMobility:int = 255, alpha:Number = 1, blendMode:String, wireThickness:Number = -1, wireColor:uint = 0)
Create an instance of class.
DevMaterial
  
Clone material.
DevMaterial
Protected Methods
 MethodDefined by
 Inherited
markToChange():void
Marks a material as changed, sending a signal to the scene.
SurfaceMaterial
Public Constants
 ConstantDefined by
  BSP_DEPTH : int = 0
[static] The value of the parameterType property which enables polygons' BSP-tree depth visualization.
DevMaterial
  DEGENERATE_POLY : int = 4
[static] The value of the parameterType property which enables degenerate polygons visualization.
DevMaterial
  FRAGMENTATION : int = 2
[static] The value of the parameterType property which enables faces' fragmentation visualization.
DevMaterial
  MOBILITY : int = 1
[static] The value of the parameterType property which enables polygons' mobility visualization.
DevMaterial
  NON_PLANAR_POLY : int = 5
[static] The value of the parameterType property which enables visualization of non-planar polygons.
DevMaterial
  NO_UV_MAPPING : int = 3
[static] The value of the parameterType property which tells material to show faces without UV-coordinates.
DevMaterial
Property detail
colorproperty
color:uint  [read-write]

Fill color.

Implementation
    public function get color():uint
    public function set color(value:uint):void
maxMobilityproperty 
maxMobility:int  [read-write]

End of mobility interval for polygons' mobility visualization.

Implementation
    public function get maxMobility():int
    public function set maxMobility(value:int):void
maxParameterValueproperty 
maxParameterValue:Number  [read-write]

Maximum value of indicated parameter.

Implementation
    public function get maxParameterValue():Number
    public function set maxParameterValue(value:Number):void
minMobilityproperty 
minMobility:int  [read-write]

Beginning of mobility interval for polygons' mobility visualization.

Implementation
    public function get minMobility():int
    public function set minMobility(value:int):void
normalsColorproperty 
normalsColor:uint  [read-write]

Color of normals.

The default value is 0x00FFFF.

Implementation
    public function get normalsColor():uint
    public function set normalsColor(value:uint):void
parameterTypeproperty 
parameterType:int  [read-write]

Type of indicated parameter.

Implementation
    public function get parameterType():int
    public function set parameterType(value:int):void
showNormalsproperty 
showNormals:Boolean  [read-write]

Set value to true to show normals of polygons.

Implementation
    public function get showNormals():Boolean
    public function set showNormals(value:Boolean):void
wireColorproperty 
wireColor:uint  [read-write]

Whire line color.

Implementation
    public function get wireColor():uint
    public function set wireColor(value:uint):void
wireThicknessproperty 
wireThickness:Number  [read-write]

Wire line thickness. Lines are not drawn if thickness is negative.

Implementation
    public function get wireThickness():Number
    public function set wireThickness(value:Number):void
Constructor detail
DevMaterial()constructor
public function DevMaterial(parameterType:uint = 0, color:uint = 0xFFFFFF, maxParameterValue:Number = 20, showNormals:Boolean = false, normalsColor:uint = 0x00FFFF, minMobility:int = 0, maxMobility:int = 255, alpha:Number = 1, blendMode:String, wireThickness:Number = -1, wireColor:uint = 0)

Create an instance of class.

Parameters
parameterType:uint (default = 0)type of indicated parameter
 
color:uint (default = 0xFFFFFF)fill color
 
maxParameterValue:Number (default = 20)maximum value of indicated parameter
 
showNormals:Boolean (default = false)set value to true to show normals of polygons
 
normalsColor:uint (default = 0x00FFFF)color of normals
 
minMobility:int (default = 0)beginning of mobility interval for polygons' mobility visualization
 
maxMobility:int (default = 255)end of mobility interval for polygons' mobility visualization
 
alpha:Number (default = 1)transparency
 
blendMode:Stringcolor blending mode
 
wireThickness:Number (default = -1)wire line thickness
 
wireColor:uint (default = 0)wire line color
Method detail
clone()method
public override function clone():Material

Clone material.

Returns
Materiala clone of the material object
Constant detail
BSP_DEPTHconstant
public static const BSP_DEPTH:int = 0

The value of the parameterType property which enables polygons' BSP-tree depth visualization. Polygons that are deeper in BSP-tree are painted with lighter color.

DEGENERATE_POLYconstant 
public static const DEGENERATE_POLY:int = 4

The value of the parameterType property which enables degenerate polygons visualization. Degenerate polygons are shown with red outline five pixels width.

FRAGMENTATIONconstant 
public static const FRAGMENTATION:int = 2

The value of the parameterType property which enables faces' fragmentation visualization. The more fragmented faces are lighter.

MOBILITYconstant 
public static const MOBILITY:int = 1

The value of the parameterType property which enables polygons' mobility visualization. The more fragmented faces are painted with lighter color.

NON_PLANAR_POLYconstant 
public static const NON_PLANAR_POLY:int = 5

The value of the parameterType property which enables visualization of non-planar polygons. A polygon is treated as non-planar if it has a vertex whose distance from the polygon's plane is greater than value of the maxParameterValue property. Non-planar polygons are filled with red color and outlined by red line.

NO_UV_MAPPINGconstant 
public static const NO_UV_MAPPING:int = 3

The value of the parameterType property which tells material to show faces without UV-coordinates. Such faces are filled with red color.