Packagesandy.materials
Classpublic class Appearance

Represents the appearance property of the visible objects.

The appearance holds the front and back materials of the object.



Public Properties
 PropertyDefined by
  backMaterial : Material
The back material held by this appearance.
Appearance
  flags : uint
[read-only] Returns the flags for the front and back materials.
Appearance
  frontMaterial : Material
The front material held by this appearance.
Appearance
  useVertexNormal : Boolean
[read-only] Get the use of vertex normal feature of the appearance.
Appearance
Public Methods
 MethodDefined by
  
Appearance(p_oFront:Material = null, p_oBack:Material = null)
Creates an appearance with front and back materials.
Appearance
  
toString():String
Returns a string representation of this object.
Appearance
Property detail
backMaterialproperty
backMaterial:Material  [read-write]

The back material held by this appearance.

Implementation
    public function get backMaterial():Material
    public function set backMaterial(value:Material):void
flagsproperty 
flags:uint  [read-only]

Returns the flags for the front and back materials.

Implementation
    public function get flags():uint

See also

frontMaterialproperty 
frontMaterial:Material  [read-write]

The front material held by this appearance.

Implementation
    public function get frontMaterial():Material
    public function set frontMaterial(value:Material):void
useVertexNormalproperty 
useVertexNormal:Boolean  [read-only]

Get the use of vertex normal feature of the appearance.

Note: Only one of the materials is using this feature.

Implementation
    public function get useVertexNormal():Boolean
Constructor detail
Appearance()constructor
public function Appearance(p_oFront:Material = null, p_oBack:Material = null)

Creates an appearance with front and back materials.

If no material is passed, the default material for back and front is a default ColorMaterial.
If only a front material is passed, it will be used as back material as well.

Parameters
p_oFront:Material (default = null) — The front material
 
p_oBack:Material (default = null) — The back material

See also

Method detail
toString()method
public function toString():String

Returns a string representation of this object.

Returns
String — The fully qualified name of this object.