Class: PointCloud

mapray~ PointCloud


new PointCloud(scene, provider)

点群データを表現するクラス

Parameters:
Name Type Description
scene mapray.Scene

所属するシーン

provider mapray.PointCloudProvider

プロバイダ

Source:
See:
Example

インスタンスの生成は下記のように行う。

const provider = new mapray.RawPointCloudProvider({
    resource: {
        prefix: "https://..."
    }
});
const point_cloud = viewer.point_cloud_collection.add( provider );
point_cloud.setPointShape( mapray.PointCloud.PointShapeType.GRADIENT_CIRCLE );

Members


<static, constant> PointShapeType :object

点描画の種類

Type:
  • object
Properties:
Name Type Default Description
RECTANGLE object {"id":"RECTANGLE","shader_code":0}

矩形

CIRCLE object {"id":"CIRCLE","shader_code":1}

CIRCLE_WITH_BORDER object {"id":"CIRCLE_WITH_BORDER","shader_code":2}

境界線付きの円

GRADIENT_CIRCLE object {"id":"GRADIENT_CIRCLE","shader_code":3}

グラデーションで塗り潰した円

Source:

<static, constant> PointSizeType :object

点描画のサイズ指定方法の種類

Type:
  • object
Properties:
Name Type Default Description
PIXEL object {"id":"PIXEL"}

setPointSize()により指定された値をピクセルとして解釈する

MILLIMETERS object {"id":"MILLIMETERS"}

setPointSize()により指定された値をmmとして解釈する

FLEXIBLE object {"id":"FLEXIBLE"}

setPointSize()により指定された値を参照せず、表示位置に応じて適切なサイズを自動的に指定する。

Source:

provider :mapray.PointCloudProvider

プロバイダ

Type:
Source:

Methods


getPointShape()

点を描画する際の形状

Source:
Returns:
Type
mapray.PointCloud.PointShapeType

getPointSize()

点を描画する際のサイズ
point_size_typeにより単位が異なる

Source:
See:
Returns:
Type
number

getPointSizeLimit()

点を描画する際の最大ピクセルサイズ

Source:
Returns:
Type
number

getPointSizeType()

点を描画する際のサイズの指定方法

Source:
Returns:
Type
mapray.PointCloud.PointSizeType

getPointsPerPixel()

点群Box読み込みを行う際の解像度[points/pixel]

Source:
Returns:
Type
number

setPointShape(val)

点を描画する際の形状を設定

Parameters:
Name Type Description
val mapray.PointCloud.PointShapeType

設定する値

Source:

setPointSize(val)

点を描画する際のサイズを設定。
mapray.PointCloud#setPointSizeTypeにより指定された値によって解釈される単位が異なる。

Parameters:
Name Type Description
val number

設定する値

Source:

setPointSizeLimit(val)

点を描画する際の最大ピクセルサイズを設定

Parameters:
Name Type Description
val number

設定する値

Source:

setPointSizeType(val)

点を描画する際のサイズの指定方法を設定

Parameters:
Name Type Description
val mapray.PointCloud.PointSizeType

設定する値

Source:

setPointsPerPixel(val)

点群Box読み込みを行う際の解像度[points/pixel]を設定

Parameters:
Name Type Description
val number

設定する値

Source: