new ov.PointCloudLayer()
點雲圖層
Extends
Members
- 
    boundary
- 
    
    Boundary Properties:Name Type Description BoundaryGeoBoundary 圖層邊界。 
- 
    edlStrength
- 
    
    邊界增強效果的強度 Properties:Name Type Description edlStrengthNumber EDL加權強度。 
- 
    readonlyname
- 
    
    圖層名稱 Properties:Name Type Description nameString 名稱。 
- 
    show
- 
    
    圖層顯示 Properties:Name Type Description showBoolean 是否顯示圖層。 
Methods
- 
    enableAltitudeMode(enableAltitudeMode){Boolean}webgl/ov-PointCloudLayer.js, line 81
- 
    
    
    設定點雲是否用高度填色。 Name Type Description enableAltitudeModeBoolean 是否用高度填色。 Returns:Type Description Boolean 是否成功設定。 
- 
    enableColorBlend(enableBlend){Boolean}webgl/ov-PointCloudLayer.js, line 96
- 
    
    
    設定高度填色是否開啟漸層,預設開啟。 Name Type Description enableBlendBoolean 是否開啟漸層。 Returns:Type Description Boolean 是否成功設定。 
- 
    enableEDL(enableEDL){Boolean}webgl/ov-PointCloudLayer.js, line 111
- 
    
    
    設定點雲是否啟用EDL效果,瀏覽器是否支援,可透過 ov.PointCloudLayer#isSupportEDL檢查。Name Type Description enableEDLBoolean 是否啟用EDL。 Returns:Type Description Boolean 是否成功設定。 
- 
    inherited enableOrderIndependentTransparency(enable)webgl/ov-Layer.js, line 217
- 
    
    
    透明度是否使用OIT演算法,正確性較高但效能會降低。 Name Type Description enableBoolean 啟用OIT透明。 
- 
    getAltitude(){Object}webgl/ov-PointCloudLayer.js, line 35
- 
    
    
    取得點雲資料的高度上下界。 Returns:Name Type Description altitudeObjectObject 高度物件。 Name Type Description altitudeMinNumber 高度下界。 altitudeMaxNumber 高度上界。 
- 
    inherited goto(callback)webgl/ov-Layer.js, line 225
- 
    
    
    飛到圖層的位置。 Name Type Description callbackov.Layer~gotoCallback 移動完成後執行的回呼。 
- 
    isSupportEDL(){Boolean}webgl/ov-PointCloudLayer.js, line 125
- 
    
    
    檢查瀏覽器是否支援EDL效果,瀏覽器需支援texture float與frag depth。 Returns:Type Description Boolean 是否支援。 
- 
    inherited setAllowHoverEntity(allow)webgl/ov-Layer.js, line 136
- 
    
    
    設定圖層的圖素是否能Hover。 Name Type Description allowBoolean 是否能Hover。 
- 
    inherited setAllowSelectEntity(allow)webgl/ov-Layer.js, line 144
- 
    
    
    設定圖層的圖素是否能被選取。 Name Type Description allowBoolean 是否能被點選。 
- 
    setColorSet(color, upper){Boolean}webgl/ov-PointCloudLayer.js, line 66
- 
    
    
    設定點雲高度的分層設色。 Name Type Description colorArray 依序填入RGBA 0~255的數字,目前作畫關閉透明度混色,因此A通道無效。 upperArray 分層中各層的上界。 Returns:Type Description Boolean 是否設定成功 Examplevar gap = (altitudeMax - altitudeMin)/4; 
 var ret = lyr.setColorSet(
 [0.0, 0.0 , 0 , 255,
 0.0, 50 , 50 , 255,
 0.0, 150 , 150 , 255,
 0.0, 200 , 200 , 255,
 0.0, 255 , 255 , 255],
 [altitudeMax, altitudeMax - gap, altitudeMax - gap2, altitudeMax - gap3, altitudeMax - gap*4]);
- 
    inherited setDrawSelectedEntityOutline(isDraw)webgl/ov-Layer.js, line 103
- 
    
    
    設定圖層的圖素是否顯示outline。 Name Type Description isDrawBoolean 是否顯示。 
- 
    inherited setFadeNearFar(near, far){Boolean}webgl/ov-Layer.js, line 209
- 
    
    
    設定圖層開始淡出與完全消失的距離。 Name Type Description nearNumber 開始淡出的距離。 farNumber 完全消失的距離。 Returns:Type Description Boolean 設定是否成功,當near > far時,會失敗。 
- 
    inherited setHoverEntityHighlightColor(color)webgl/ov-Layer.js, line 128
- 
    
    
    設定圖層圖素的Hover高亮顏色。 Name Type Description colorHexColor Hover高亮的顏色。 
- 
    inherited setOffset(x, y, z){Boolean}webgl/ov-Layer.js, line 155
- 
    
    
    設定圖層的公尺平移量(目前僅支援Acute3D、PointCloud、Model、ModelSet、Pipeline)。 Name Type Description xNumber 向東西方向偏移,單位為公尺。 yNumber 向南北方向偏移,單位為公尺。 zNumber 向垂直於地表方向偏移,單位為公尺。 Returns:Type Description Boolean 變換是否成功,某些圖層不支持此操作時返回false。 
- 
    inherited setOnClickEntity(callback)webgl/ov-Layer.js, line 61
- 
    
    
    設定此圖層圖素被點擊時的回呼。 Name Type Description callbackov.Layer~setOnClickEntityCallback 圖素被點擊時的回呼。 
- 
    inherited setOpacity(opacity)webgl/ov-Layer.js, line 95
- 
    
    
    設置圖層不透明程度。 Name Type Description opacityNumber 圖層不透明程度(0~1)。 
- 
    inherited setOutlineColor(VisibleColor, HiddenColor)webgl/ov-Layer.js, line 112
- 
    
    
    設定選取圖層圖素的Outline顏色。 Name Type Description VisibleColorHexColor outline可視的顏色。 HiddenColorHexColor outline不可視的顏色。 
- 
    setPointSizeScale(scale){Boolean}webgl/ov-PointCloudLayer.js, line 138
- 
    
    
    設定點大小的Scale。 Name Type Description scaleNumber 大小縮放比例。 Returns:Type Description Boolean 是否設定成功。 
- 
    inherited setResolutionScale(resolutionScale){Boolean}webgl/ov-Layer.js, line 182
- 
    
    
    設定圖層解析度條件的Scale比例。 Name Type Description resolutionScaleNumber 解析度條件的Scale比例(初始值1,越大越容易分裂,模型越細緻)。 Returns:Type Description Boolean 是否設定成功。 
- 
    inherited setRotate(degree){Boolean}webgl/ov-Layer.js, line 164
- 
    
    
    設定圖層的旋轉量(目前僅支援Acute3D、PointCloud、Model、ModelSet、Pipeline)。 Name Type Description degreeNumber 旋轉角度。 Returns:Type Description Boolean 變換是否成功,某些圖層不支持此操作時返回false。 
- 
    inherited setScale(scale){Boolean}webgl/ov-Layer.js, line 173
- 
    
    
    設定圖層的縮放量(目前僅支援Acute3D、PointCloud、Model、ModelSet、Pipeline)。 Name Type Description scaleNumber 縮放比例。 Returns:Type Description Boolean 變換是否成功,某些圖層不支持此操作時返回false。 
- 
    inherited setSelectedEntityHighlightColor(color)webgl/ov-Layer.js, line 120
- 
    
    
    設定圖層圖素的選取高亮顏色。 Name Type Description colorHexColor 選取高亮的顏色。 
- 
    inherited setUseFade(useFade)webgl/ov-Layer.js, line 199
- 
    
    
    設定圖層是否開啟淡出功能。 Name Type Description useFadeBoolean 淡出開關。 
- 
    inherited setZScale(zScale){Boolean}webgl/ov-Layer.js, line 191
- 
    
    
    設定圖層的ZScale(ZScale:越小圖層越不會被遮擋)。 Name Type Description zScaleNumber ZScale的值。 Returns:Type Description Boolean 是否設定成功。