PopupMeasurementVolume

체적량 측정 팝업 클래스.
MeasurementVolume popup class.

new Ditap.PopupMeasurementVolume(measurementVolume)

Name Type Description
measurementVolume MeasurementVolume 체적량 측정 연산 및 영역 표시 클래스.
Volume Measurement Calculation and Area Display Class.
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 new Ditap.CesiumTerrainProvider({
          url: "http://121.135.139.45:9092/tilesets/layer",
        });
      },
    }),
  ],
});

const destination = Ditap.Cartesian3.fromDegrees(
  126.978275264,
  37.566642192,
  400
);

// 카메라 이동
viewer.scene.camera.flyTo({
  destination: destination,
});

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),
];
const props = {
  positions: positions,
  callback: (measurementVolume) => {
    // 콜백 함수를 이용하여 계산이 완료된 MeasurementVolume을 할당
    const popupMeasurementVolume = new Ditap.PopupMeasurementVolume(measurementVolume);
    popupMeasurementVolume.open();
  }
};
const measurementVolume = new Ditap.MeasurementVolume(viewer, props);

Extends

Members

readonly createWarningAlert : Element

경고 알림 요소.
Warning alert element.

readonly detailCuttingVolume : Element

절토량 상세정보 요소.
Cutting volume details.

readonly detailFillingVolume : Element

성토량 상세정보 요소.
Fill volume details.

readonly detailTotalVolume : Element

절토량과 성토량의 합 요소.
Sum of fill volume and cutting volume.

readonly mainCuttingVolume : Element

메인 절토량 요소.
Main cutting volume.

readonly mainFillingVolume : Element

메인 성토량 요소.
Main fill volume.

readonly measurementVolume : MeasurementVolume

체적량 측정 인스턴스.
MeasurementVolume instance.

readonly planHeight : Element

계획고 입력 요소.
Plan height input.

readonly planHeightInputPopup : Element

계획고 입력 영역 요소.
Plan height input wrapper.

readonly planHeightItem : Element

계획고 유형 목록 아이템 요소.
Plan height type items.

readonly planHeightList : Element

계획고 유형 목록 요소.
Plan height type list.

readonly planHeightPopup : Element

계획고 영역 요소.
Plan height wrapper.

readonly planHeightSearch : Element

계획고 검색 요소.
Plan height search button.

readonly planHeightSelectText : Element

선택된 계획고 유형 요소.
Selected plan height type.

Methods

appendContent(element)

컨텐츠 영역에 요소 추가.
Append element to content.
Name Type Description
element Element 추가할 요소.
Element to add.
Inherited From:

appendFooter(element)

푸터 영역에 요소 추가.
Append element to footer.
Name Type Description
element Element 추가할 요소.
Element to add.
Inherited From:

appendHeader(element)

헤더 영역에 요소 추가.
Append element to header.
Name Type Description
element Element 추가할 요소.
Element to add.
Inherited From:

close()

팝업 닫기.
Close popup.

closePlanHeightListIcon()

계획고 유형 목록 아이콘을 닫기 상태로 변경.
Change the icon of the planning type list to the close state.

destroy()

팝업 제거.
Destroy popup.

async handleKeyDown()

키보드 이벤트.
Keyboard input event

open()

팝업 열기.
Open popup.

openPlanHeightListIcon()

계획고 유형 목록 아이콘을 열림 상태로 변경.
Change the icon of the planning type list to the open state.

prependContent(element)

컨텐츠 영역 맨 앞에 요소 추가.
Prepend element to content.
Name Type Description
element Element 추가할 요소.
Element to add.
Inherited From:

prependFooter(element)

푸터 영역 맨 앞에 요소 추가.
Prepend element to footer.
Name Type Description
element Element 추가할 요소.
Element to add.
Inherited From:

prependHeader(element)

헤더 영역 맨 앞에 요소 추가.
Prepend element to header.
Name Type Description
element Element 추가할 요소.
Element to add.
Inherited From:

removeAllContent()

컨텐츠 영역의 모든 자식 요소 제거.
Remove all children of content.
Inherited From:

removeAllFooter()

푸터 영역의 모든 자식 요소 제거.
Remove all children of footer.
Inherited From:

removeAllHeader()

헤더 영역의 모든 자식 요소 제거.
Remove all children of header.
Inherited From:

removeContent(element)

컨텐츠 영역의 자식 요소 제거.
Remove children of content.
Name Type Description
element Element 제거할 요소.
Element to remove.
Inherited From:

removeFooter(element)

푸터 영역의 자식 요소 제거.
Remove children of footer.
Name Type Description
element Element 제거할 요소.
Element to remove.
Inherited From:

removeHeader(element)

헤더 영역의 자식 요소 제거.
Remove children of header.
Name Type Description
element Element 제거할 요소.
Element to remove.
Inherited From:

setdetailCuttingVolume(value)

절토량 상세정보 설정.
Set cutting volume details value
Name Type Description
value number 절토량 (m³).
Detail cutting volume (m³).

setdetailFillingVolume(value)

성토량 상세정보 설정.
Set fill volume details value.
Name Type Description
value number 성토량 (m³).
Main fill volume (m³).

setdetailTotalVolume(value)

절토량과 성토량의 합 설정.
Set total volume details value.
Name Type Description
value number 절토량과 성토량의 합 (m³).
Main total volume (m³).

setEvent()

이벤트 설정.
Binding popup events.

setMainCuttingVolume(value)

메인 절토량 설정.
Set main cutting volume value.
Name Type Description
value number 절토량 (m³).
Main cutting volume (m³).

setMainFillingVolume(value)

메인 성토량 설정.
Set main fill volume value.
Name Type Description
value number 성토량 (m³).
Main fill volume (m³).

setplanHeight(value)

계획고 설정.
Change the custom plan height text.
Name Type Description
value number 계획고 (미터).
Plan Height (meters).

setplanHeightSelectText(value)

체적량 측정 유형 설정.
Change volume measurement type text.
Name Type Description
value string 측정 유형 ["min", "max", "average", "user"].
Measurement type ["min", "max", "average", "user"].

toggle(element)

팝업 활성화 on/off 기능.
Function on and off.
Name Type Description
element Element 매개변수가 없는 경우 wrapper 오픈.
If no parameter is entered, toggle wrapper.
Inherited From:

update()

팝업 업데이트.
Update popup