Packagelaya.d3.terrain
Classpublic class TerrainRes
InheritanceTerrainRes Inheritance laya.resource.Resource

TerrainRes 类用于描述地形信息。



Public Properties
 PropertyDefined By
  _alphaMaps : Vector.<String>
TerrainRes
  _cameraCoordinateInverse : Boolean
TerrainRes
  _chunkInfos : Vector.<ChunkInfo>
TerrainRes
  _chunkNumX : int
TerrainRes
  _chunkNumZ : int
TerrainRes
  _detailTextureInfos : Vector.<DetailTextureInfo>
TerrainRes
  _gridSize : Number
TerrainRes
  _heightData : TerrainHeightData
TerrainRes
  _heightDataBitType : int
TerrainRes
  _heightDataUrl : String
TerrainRes
  _heightDataValue : Number
TerrainRes
  _heightDataX : int
TerrainRes
  _heightDataZ : int
TerrainRes
  _materialInfo : MaterialInfo
TerrainRes
  _normalMaps : Vector.<String>
TerrainRes
  _version : Number
TerrainRes
Public Methods
 MethodDefined By
  
创建一个 TerrainHeightData 实例。
TerrainRes
  
load(url:String):TerrainRes
[static] 加载地形模板,注意:不缓存。
TerrainRes
  
onAsynLoaded(url:String, data:*, params:Array):void
[override] 异步回调
TerrainRes
  
TerrainRes
  
parseData(data:*):Boolean
TerrainRes
Property Detail
_alphaMapsproperty
public var _alphaMaps:Vector.<String>

_cameraCoordinateInverseproperty 
public var _cameraCoordinateInverse:Boolean

_chunkInfosproperty 
public var _chunkInfos:Vector.<ChunkInfo>

_chunkNumXproperty 
public var _chunkNumX:int

_chunkNumZproperty 
public var _chunkNumZ:int

_detailTextureInfosproperty 
public var _detailTextureInfos:Vector.<DetailTextureInfo>

_gridSizeproperty 
public var _gridSize:Number

_heightDataproperty 
public var _heightData:TerrainHeightData

_heightDataBitTypeproperty 
public var _heightDataBitType:int

_heightDataUrlproperty 
public var _heightDataUrl:String

_heightDataValueproperty 
public var _heightDataValue:Number

_heightDataXproperty 
public var _heightDataX:int

_heightDataZproperty 
public var _heightDataZ:int

_materialInfoproperty 
public var _materialInfo:MaterialInfo

_normalMapsproperty 
public var _normalMaps:Vector.<String>

_versionproperty 
public var _version:Number

Constructor Detail
TerrainRes()Constructor
public function TerrainRes()

创建一个 TerrainHeightData 实例。

Method Detail
load()method
public static function load(url:String):TerrainRes

加载地形模板,注意:不缓存。

Parameters

url:String — 模板地址。

Returns
TerrainRes
onAsynLoaded()method 
override public function onAsynLoaded(url:String, data:*, params:Array):void

异步回调

Parameters

url:String
 
data:*
 
params:Array

onLoadTerrainComplete()method 
public function onLoadTerrainComplete(heightData:TerrainHeightData):void

Parameters

heightData:TerrainHeightData

parseData()method 
public function parseData(data:*):Boolean

Parameters

data:*

Returns
Boolean