PopupAnalysisClipping

절단면 분석 팝업 클래스.
AnalysisClipping popup class.
Note: ModelGraphic은 setXMinValue, setXMaxValue, setYMinValue, setYMaxValue, setZMinValue, setZMaxValue 함수를 통해 범위 설정 필요.
Note: ModelGraphic requires range setting through setXMinValue, setXMaxValue, setYMinValue, setYMaxValue, setZMinValue, setZMaxValue functions.

new Ditap.PopupAnalysisClipping(analysisClipping, ditapPaneManager, options, options)

Name Type Default Description
analysisClipping AnalysisClipping 절단면 분석 대상 모델.
The model targeted for clipping plane analysis.
ditapPaneManager DitapPaneManager
options object
options function closeCallback optional 인스턴스 종료 콜백
Example:
const viewer = new Ditap.DitapViewer("ditapContainer");

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

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

const modelMatrix = Ditap.Transforms.eastNorthUpToFixedFrame(
  Ditap.Cartesian3.fromDegrees(126.9782349646649, 37.56671536989183, 100)
);
const model = Ditap.Model.fromGltf({
 id: "model_01",
 url: "../../SampleData/models/GroundVehicle/GroundVehicle.glb",
 modelMatrix: modelMatrix,
 scale: 3,
});
viewer.scene.primitives.add(model);

// 1. AnalysisClipping 인스턴스 생성
const analysisClipping = new AnalysisClipping(viewer, model);

// 2. AnalysisClipping 인스턴스 할당
const popupAnalysisClipping = new Ditap.PopupAnalysisClipping(analysisClipping, viewer.ditapPaneManager);
popupAnalysisClipping.open();

Extends

Members

readonly analysisClipping : AnalysisClipping

선택 모델.
Select model

readonly buttonElement : Element

버튼 요소.
Button element

readonly clippingCheckX : Element

X축 체크박스를 감싸는 요소.
X axis checkbox wrapper

readonly clippingCheckXCheckBox : Element

X축 체크박스.
X axis checkbox

readonly clippingCheckY : Element

Y축 체크박스를 감싸는 요소.
Y axis checkbox wrapper

readonly clippingCheckYCheckBox : Element

Y axis checkbox Y축 체크박스.

readonly clippingCheckZ : Element

Y축 체크박스를 감싸는 요소.
Z axis checkbox wrapper

readonly clippingCheckZCheckBox : Element

Z축 체크박스 요소.
Z axis checkbox

readonly clippingRangeX : Element

X축 슬라이더 감싸는 요소.
X axis slider wrapper

readonly clippingRangeXCurrentValue : Element

X축 슬라이더 현재값 텍스트 요소.
X axis silider current text element

readonly clippingRangeXMaxValue : Element

X축 슬라이더 최대값 텍스트 요소.
X axis silider maximum text element

readonly clippingRangeXMinusP : Element

X축 슬라이더 마이너스 버튼 요소.
X axis slider minus button

readonly clippingRangeXMinValue : Element

X축 슬라이더 최소값 텍스트 요소.
X axis silider minimum text element

readonly clippingRangeXPlusP : Element

X축 슬라이더 플러스 버튼 요소.
X axis slider plus button

readonly clippingRangeXSlider : Element

X축 슬라이더 요소.
X axis slider

readonly clippingRangeY : Element

Y축 슬라이더 감싸는 요소.
Y axis slider wrapper

readonly clippingRangeYCurrentValue : Element

Y축 슬라이더 현재값 텍스트 요소.
Y axis silider current text element

readonly clippingRangeYMaxValue : Element

Y축 슬라이더 최대값 텍스트 요소.
Y axis silider maximum text element

readonly clippingRangeYMinusP : Element

Y축 슬라이더 마이너스 버튼 요소.
Y axis slider minus button

readonly clippingRangeYMinValue : Element

Y축 슬라이더 최소값 텍스트 요소.
Y axis silider minimum text element

readonly clippingRangeYPlusP : Element

Y축 슬라이더 플러스 버튼 요소.
Y axis slider plus button

readonly clippingRangeYSlider : Element

Y축 슬라이더 요소.
Y axis slider

readonly clippingRangeZ : Element

Z축 슬라이더 감싸는 요소.
Z axis slider wrapper

readonly clippingRangeZCurrentValue : Element

Z축 슬라이더 현재값 텍스트 요소.
Z axis silider current text element

readonly clippingRangeZMaxValue : Element

Z축 슬라이더 최대값 텍스트 요소.
Z axis silider maximum text element

readonly clippingRangeZMinusP : Element

Z축 슬라이더 마이너스 버튼 요소.
Z axis silider minus button

readonly clippingRangeZMinValue : Element

Z축 슬라이더 최소값 텍스트 요소.
Z axis silider minimum text element

readonly clippingRangeZPlusP : Element

Z축 슬라이더 플러스 버튼 요소.
Z axis silider plus button

readonly clippingRangeZSlider : Element

Z축 슬라이더 요소.
Z axis silider

readonly planeX : Entity

X축 절단면 엔티티.
X axis ClippingPlane entity

readonly planeY : Entity

Y축 절단면 엔티티.
Y axis ClippingPlane entity

readonly planeZ : Entity

Z축 절단면 엔티티.
Z axis ClippingPlane entity

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

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

createCloseAlert()DitapAlert

종료 팝업 생성.
Create exit popup.
Returns:
ditapAlert 종료 팝업.
Exit pop-up.

destroy(removePlane)

팝업과 절단면 파괴.
Destroy popup and ClippingPlane
Name Type Default Description
removePlane boolean true optional 설정된 절단면 제거 여부.
Whether to remove the set cutting plane.

hideRange(type)

입력 축 슬라이더 래퍼 숨김.
Hide input axis slider wrapper
Name Type Description
type string ["X", "Y", "Z"]

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

팝업 인스턴스 초기화.
Reset this object
Name Type Default Description
removePlane boolean true optional 설정된 절단면 제거 여부.
Whether to remove the set cutting plane.

rollback()

절단면 상태값 초기화.
Reset clipping plane information.

setXCheckBox(value)

X축 체크박스 설정
Set X axis checkbox
Name Type Description
value boolean 체크 여부.
Check value

setXCurrentValue(value)

X축 슬라이더 현재값 설정.
Set X axis slider current text value
Name Type Description
value number 슬라이더 현재값 (미터).
Slider current value (meters).

setXMaxValue(value)

X축 슬라이더 최대값 설정.
Set X axis slider maximum text value
Name Type Description
value number 슬라이더 최대값 (미터).
Slider maximum value (meters).

setXMinValue(value)

X축 슬라이더 최소값 설정.
Set X axis slider minimum text value
Name Type Description
value number 슬라이더 최소값 (미터).
Slider minimum value (meters).

setXSliderValue(value)

X축 슬라이더 값 설정.
Set X axis slider value
Name Type Description
value number 슬라이더 값 (미터).
Slider value (meters).

setYCheckBox(value)

Y축 체크박스 설정
Set Y axis checkbox
Name Type Description
value boolean 체크 여부.
Check value

setYCurrentValue(value)

Y축 슬라이더 현재값 설정.
Set Y axis slider current text value
Name Type Description
value number 슬라이더 현재값 (미터).
Slider current value (meters).

setYMaxValue(value)

Y축 슬라이더 최대값 설정.
Set Y axis slider maximum text value
Name Type Description
value number 슬라이더 최대값 (미터).
Slider maximum value (meters).

setYMinValue(value)

Y축 슬라이더 최소값 설정.
Set Y axis slider minimum text value
Name Type Description
value number 슬라이더 최소값 (미터).
Slider minimum value (meters).

setYSliderValue(value)

Y축 슬라이더 값 설정.
Set Y axis slider value
Name Type Description
value number 슬라이더 값 (미터).
Slider value (meters).

setZCheckBox(value)

Z축 체크박스 설정
Set Z axis checkbox
Name Type Description
value boolean 체크 여부.
Check value

setZCurrentValue(value)

Z축 슬라이더 현재값 설정.
Set Z axis slider current text value
Name Type Description
value number 슬라이더 현재값 (미터).
Slider current value (meters).

setZMaxValue(value)

Z축 슬라이더 최대값 설정.
Set Z axis slider maximum text value
Name Type Description
value number 슬라이더 최대값 (미터).
Slider maximum value (meters).

setZMinValue(value)

Z축 슬라이더 최소값 설정.
Set Z axis slider minimum text value
Name Type Description
value number 슬라이더 최소값 (미터).
Slider minimum value (meters).

setZSliderValue(value)

Z축 슬라이더 값 설정.
Set Z axis slider value
Name Type Description
value number 슬라이더 값 (미터).
Slider value (meters).

showRange(type)

입력 축 슬라이더 래퍼 표시.
Show input axis slider wrapper
Name Type Description
type string ["X", "Y", "Z"]

toggle(element)

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

update()

선택 객체 정보 업데이트.
Select object information update.
※ 주의사항(Note).
rollback 내용도 초기화 됩니다.
Rollback contents are also initialized.