PopupAnalysisExcavation

굴착 및 분석 팝업 클래스.
AnalysisExcavation popup class.

new Ditap.PopupAnalysisExcavation(analysisExcavation, loading)

Name Type Description
analysisExcavation AnalysisExcavation 굴착 및 분석 클래스.
Excavation and Analysis Class.
loading boolean 로딩창 생성 여부.
Whether to create a loading window.
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();
      },
    }),
  ],
});

// AnalysisExcavation 생성
const analysisExcavation = new Ditap.AnalysisExcavation(viewer);

// PopupAnalysisExcavation 생성 및 팝업창 오픈
const popupAnalysisExcavation = new Ditap.PopupAnalysisExcavation(analysisExcavation);
popupAnalysisExcavation.open();

Extends

Members

analysisExcavation : AnalysisExcavation

지형 굴착 및 분석 클래스.
Terrain Excavation and Analysis Class.

loading : boolean

로딩창 생성 여부.
Whether to create a loading window.

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(reset)

팝업 닫기.
Close popup.
Name Type Default Description
reset boolean false optional 팝업 닫을 시 굴착 객체 초기화.
Reset excavation object when closing popup.

destroy()

인스턴스 제거.
Remove instance.

initAnalysisExcavation()

팝업의 분석 클래스 초기화.
Initialize the popup's analysis class.

open(element)

팝업 열기.
Open popup.
Name Type Description
element Element 매개변수가 없는 경우 wrapper 오픈.
element If no parameter is entered, open wrapper.
Inherited From:

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:

reset()

팝업 초기화.
Popup reset.

setAverageHeight(height)

평균높이 표기값 설정.
Setting the average height display value.
Name Type Description
height number 설정값.
Setting value.

setCuttingVolume(volume)

절토량 표기값 설정.
Setting the cut amount display value.
Name Type Description
volume number 설정값.
Setting value.

setFillingVolume(volume)

성토량 표기값 설정.
Description of fill amount notation value.
Name Type Description
volume number 설정값.
Setting value.

setMaximumHeight(height)

최대높이 표기값 설정.
Setting the maximum height notation value.
Name Type Description
height number 설정값.
Setting value.

setMinimumHeight(height)

최소높이 표기값 설정.
Set minimum height notation value.
Name Type Description
height number 설정값.
Setting value.

setPlanHeightType(type)

기준 밑면 선택값 설정.
Set base base selection value.
Name Type Default Description
type 'average' | 'min' | 'max' | 'user' 'average' optional 설정값.
Setting value.

setPlanHeightValue(value)

지정고도 표기값 설정.
Plan height notation value setting.
Name Type Description
value number 설정값.
Setting value.

setShowExcavation(show)

지형 굴착 스위치 표기값 설정.
Terrain excavation switch display value setting
Name Type Description
show boolean 설정값.
Setting value.

setShowLayer(show)

레이어 스위치 표기값 설정.
Layer switch notation value setting.
Name Type Description
show boolean 설정값.
Setting value.

setShowModel(show)

모델 스위치 표기값 설정.
Model switch notation value setting.
Name Type Description
show boolean 설정값.
Setting value.

setTotalVolume(volume)

총합값 표기값 설정.
Total value display value setting.
Name Type Description
volume number 설정값.
Setting value.

toggle(element)

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