Packageaway3d.exporters
Classpublic class Elevation2AS3

Class Elevation2AS3 generates a string class of the elevation to pass to the SkinClass and ElevationReader in order to save space and processing time.

Public Properties
 PropertyDefined by
  maxElevation : Number
Elevation2AS3
  minElevation : Number
Elevation2AS3
Public Methods
 MethodDefined by
  
Elevation2AS3
(classname:String, packagename:String = "", exportmap:Boolean = false)
Creates a generate an as3 file of the elevation array.
Elevation2AS3
  
export(sourceBmd:BitmapData, channel:String = "r", subdivisionX:int = 10, subdivisionY:int = 10, factorX:Number = 1, factorY:Number = 1, elevate:Number = .5):void
Generate the string representing the mesh and optionally color information for the reader.
Elevation2AS3
Property detail
maxElevationproperty
maxElevation:Number  [read-write]Implementation
    public function get maxElevation():Number
    public function set maxElevation(value:Number):void
minElevationproperty 
minElevation:Number  [read-write]Implementation
    public function get minElevation():Number
    public function set minElevation(value:Number):void
Constructor detail
Elevation2AS3()constructor
public function Elevation2AS3(classname:String, packagename:String = "", exportmap:Boolean = false)Parameters
classname:String — String, the name of the class that will be exported.
 
packagename:String (default = "") — [optional] String. the name of the package that will be exported.
 
exportmap:Boolean (default = false) — [optional] Boolean. Defines if the class should generate an array to pass to the ElevationReader.
Init Parameters
Method detail
export()method
public function export(sourceBmd:BitmapData, channel:String = "r", subdivisionX:int = 10, subdivisionY:int = 10, factorX:Number = 1, factorY:Number = 1, elevate:Number = .5):void

Generate the string representing the mesh and optionally color information for the reader.

Parameters
sourceBmd:BitmapData — Bitmapdata. The bitmapData to read from.
 
channel:String (default = "r") — [optional] String. The channel information to read. supported "a", alpha, "r", red, "g", green, "b", blue and "av" (averages and luminance). Default is red channel "r".
 
subdivisionX:int (default = 10) — [optional] int. The subdivision to read the pixels along the x axis. Default is 10.
 
subdivisionY:int (default = 10) — [optional] int. The subdivision to read the pixels along the y axis. Default is 10.
 
factorX:Number (default = 1) — [optional] Number. The scale multiplier along the x axis. Default is 1.
 
factorY:Number (default = 1) — [optional] Number. The scale multiplier along the y axis. Default is 1.
 
elevate:Number (default = .5) — [optional] Number. The scale multiplier along the z axis. Default is .5.
Wiki link
Click to go to the wiki page for 'away3d.exporters.Elevation2AS3'

Code examples

Comments