Name | Type | Description |
---|---|---|
viewer |
DitapViewer | 사용할 Ditap Viewer 인스턴스. The DitapViewer instance to use. |
options |
AnalysisExcavation.ConstructorOptions |
optional
초기화 옵션을 설명하는 객체. An object describing initialization options. |
Example:
const getUrlFromBase64 = (base64Data) => {
const b64Data = base64Data;
const byteCharacters = window.atob(b64Data);
const byteNumbers = new Array(byteCharacters.length);
for (let i = 0; i < byteCharacters.length; i++) {
byteNumbers[i] = byteCharacters.charCodeAt(i);
}
const byteArray = new Uint8Array(byteNumbers);
const blob = new Blob([byteArray], { type: "image/png" });
return URL.createObjectURL(blob);
};
const viewer = new Ditap.DitapViewer("ditapContainer", {
baseLayerPicker: true,
// 지형(터레인 지정)
terrainProviderViewModels: [
new Ditap.ProviderViewModel({
name: "Ditap Korea Terrain",
iconUrl: getUrlFromBase64(
Ditap.ConstantUrl.DITAP_TERRAIN_IMG_URL
),
tooltip: "WGS84 standard ellipsoid, also known as EPSG:4326",
category: "Ditap",
creationFunction: function () {
return Ditap.NationwideTerrainProvider.create();
},
}),
],
});
const positions = [
new Ditap.Cartesian3(-3044739.446567739, 4043823.403143691,3867463.012077135),
new Ditap.Cartesian3(-3044747.714411474, 4043814.3380325786,3867466.015981707),
new Ditap.Cartesian3(-3044752.780860346, 4043817.3342751344,3867458.802892699)
];
// AnalysisExcavation 생성
const analysisTerrainClipping = await Ditap.AnalysisExcavation.fromCartesianArray(
viewer,
positions,
{
planHeight: -100
}
);
Members
면적.
Area.
Area.
평균 높이.
Average Height.
Average Height.
절토량.
Amount of cut.
Amount of cut.
성토량.
Amount of fill.
Amount of fill.
작업중 여부.
Working or not
Working or not
readonly layers : Array.<AnalysisExcavationLayer>
굴착 및 분석 레이어 배열.
Excavation and Analysis Layer Arrangement
Excavation and Analysis Layer Arrangement
최대 높이.
Maximum height.
Maximum height.
최소 높이.
Minimum height.
Minimum height.
readonly models : Array.<(Cesium3DTileset|Model)>
굴착 및 분석 모델 모음.
A collection of excavation and analysis models.
A collection of excavation and analysis models.
계획고.
planHeight.
planHeight.
planHeightType : VolumePlanHeightType
계획고 타입.
PlanHeight type.
PlanHeight type.
positions : Array.<Cartesian3>
굴착 및 분석 영역 좌표.
Excavation and analysis area coordinates.
Excavation and analysis area coordinates.
분석 결과 표시 여부.
Whether to display analysis results.
Whether to display analysis results.
절토량, 성토량 합계.
Total amount of cut and fill.
Total amount of cut and fill.
readonly viewer : DitapViewer
사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.
Methods
async static Ditap.AnalysisExcavation.fromCartesianArray(viewer, cartesians, options) → Promise.<AnalysisExcavation>
AnalysisExcavation 생성.
Create a AnalysisExcavation.
Create a AnalysisExcavation.
Name | Type | Description |
---|---|---|
viewer |
DitapViewer | 사용할 Ditap Viewer 인스턴스. The DitapViewer instance to use. |
cartesians |
Array.<Cartesian3> |
굴착 및 분석 영역 좌표. Excavation and analysis area coordinates. |
options |
AnalysisExcavation.ConstructorOptions |
optional
초기화 옵션을 설명하는 객체. An object describing initialization options. |
Returns:
레이어 추가.
Add layer.
Add layer.
Name | Type | Description |
---|---|---|
options |
AnalysisExcavationLayer.ConstructorOptions |
optional
초기화 옵션을 설명하는 객체. An object describing initialization options. |
모델 추가.
Add model.
Add model.
Name | Type | Description |
---|---|---|
model |
Cesium3DTileset | Model |
추가할 모델. Model to add. |
굴착 및 분석 결과 초기화.
Initialization of excavation and analysis results.
Initialization of excavation and analysis results.
인스턴스 제거.
Remove instance.
Remove instance.
async excavation(options) → Promise.<AnalysisExcavation>
굴착 및 분석 작업 수행.
Perform excavation and analysis work.
Perform excavation and analysis work.
Name | Type | Description |
---|---|---|
options |
AnalysisExcavation.ConstructorOptions |
optional
초기화 옵션을 설명하는 객체. An object describing initialization options. |
Returns:
모델 비가시화.
Layer invisible.
Layer invisible.
Name | Type | Description |
---|---|---|
model |
AnalysisExcavationLayer |
비가시화할 레이어. Layer to make invisible. |
모든 레이어 비가시화.
Make all layers invisible.
Make all layers invisible.
모델 비가시화.
Model invisible.
Model invisible.
Name | Type | Description |
---|---|---|
model |
Cesium3DTileset | Model |
비가시화할 모델. Model to make invisible. |
모든 모델 비가시화.
Make all models invisible.
Make all models invisible.
지형 비가시화.
Terrain invisibility.
Terrain invisibility.
레이어 제거.
Remove layer.
Remove layer.
Name | Type | Description |
---|---|---|
layer |
AnalysisExcavationLayer | 제거할 레이어. Layer to remove. |
모든 레이어 제거.
Remove all layers.
Remove all layers.
모델 제거.
Remove model.
Remove model.
Name | Type | Description |
---|---|---|
model |
Cesium3DTileset | Model |
제거할 모델. Model to remove. |
모든 모델 제거.
Remove all models.
Remove all models.
레이어 가시화.
Layer Visualization.
Layer Visualization.
Name | Type | Description |
---|---|---|
layer |
AnalysisExcavationLayer |
가시화할 레이어. Layer to visualize. |
모든 레이어 가시화.
All layers visible.
All layers visible.
모델 가시화.
Model visualization.
Model visualization.
Name | Type | Description |
---|---|---|
model |
Cesium3DTileset | Model |
가시화할 모델. Model to visualize. |
모든 모델 가시화.
All models visible.
All models visible.
지형 가시화.
Terrain visualization.
Terrain visualization.
Type Definitions
AnalysisExcavation 생성자의 초기화 옵션.
Initialization options for the AnalysisExcavation constructor.
Initialization options for the AnalysisExcavation constructor.
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
positions |
Array.<Cartesian3> |
<optional> |
[] | 굴착 및 분석 영역 좌표. Excavation and analysis area coordinates |
planHeightType |
VolumePlanHeightType |
<optional> |
VolumePlanHeightType.MIN | 계획고 타입. ※ planHeight 속성이 존재할 경우 이 속성은 무시됨. PlanHeight type. ※ If the planHeight property exists, this property is ignored. |
planHeight |
number | undefined |
<optional> |
계획고. planHeight. |
|
show |
boolean |
<optional> |
true | 분석 결과 표시 여부. Whether to display analysis results. |