Packageaway3d.materials
Interfacepublic interface IUVMaterial extends IMaterial
ImplementorsAnimatedBitmapMaterial, BitmapFileMaterial, BitmapMaskMaterial, BitmapMaterial, DiffuseDot3Shader, MovieMaterial, SpecularDot3Shader, TransformBitmapMaterial, WhiteShadingBitmapMaterial

Interface for materials that use uv texture coordinates

Public Properties
 PropertyDefined by
  bitmap : BitmapData
[read-only] Returns the bitmapData object being used as the material texture.
IUVMaterial
  height : Number
[read-only] Returns the height of the bitmapData being used as the material texture.
IUVMaterial
 Inheritedvisible : Boolean
Indicates whether the material is visible
IMaterial
  width : Number
[read-only] Returns the width of the bitmapData being used as the material texture.
IUVMaterial
Public Methods
 MethodDefined by
 Inherited
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
IMaterial
  
clearFaces(source:Object3D = null, view:View3D = null):void
Clears facematerial value objects when bitmap requires updating
IUVMaterial
  
getFaceMaterialVO(faceVO:FaceVO, source:Object3D = null, view:View3D = null):FaceMaterialVO
IUVMaterial
  
getPixel32(u:Number, v:Number):uint
Returns the argb value of the bitmapData pixel at the given u v coordinate.
IUVMaterial
  
invalidateFaces(source:Object3D = null, view:View3D = null):void
Invalidates facematerial value objects when texturemapping requires updating
IUVMaterial
 Inherited
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
IMaterial
 Inherited
updateMaterial(source:Object3D, view:View3D):void
Called once per render loop when material is visible.
IMaterial
Property detail
bitmapproperty
bitmap:BitmapData  [read-only]

Returns the bitmapData object being used as the material texture.

Implementation
    public function get bitmap():BitmapData
heightproperty 
height:Number  [read-only]

Returns the height of the bitmapData being used as the material texture.

Implementation
    public function get height():Number
widthproperty 
width:Number  [read-only]

Returns the width of the bitmapData being used as the material texture.

Implementation
    public function get width():Number
Method detail
clearFaces()method
public function clearFaces(source:Object3D = null, view:View3D = null):void

Clears facematerial value objects when bitmap requires updating

Parameters
source:Object3D (default = null) — [optional] The parent 3d object of the face.
 
view:View3D (default = null) — [optional] The view rendering the draw triangle.

See also

getFaceMaterialVO()method 
public function getFaceMaterialVO(faceVO:FaceVO, source:Object3D = null, view:View3D = null):FaceMaterialVO Parameters
faceVO:FaceVO
 
source:Object3D (default = null)
 
view:View3D (default = null)

Returns
FaceMaterialVO
getPixel32()method 
public function getPixel32(u:Number, v:Number):uint

Returns the argb value of the bitmapData pixel at the given u v coordinate.

Parameters
u:Number — The u (horizontal) texture coordinate.
 
v:Number — The v (verical) texture coordinate.

Returns
uint — The argb pixel value.
invalidateFaces()method 
public function invalidateFaces(source:Object3D = null, view:View3D = null):void

Invalidates facematerial value objects when texturemapping requires updating

Parameters
source:Object3D (default = null) — [optional] The parent 3d object of the face.
 
view:View3D (default = null) — [optional] The view rendering the draw triangle.

See also

Wiki link
Click to go to the wiki page for ####WIKI####

Code examples

Comments