Name | Type | Description |
---|---|---|
selectOptions |
object | 다음과 같은 속성을 가진 객체. Object with the following properties: |
Example:
const viewer = new Ditap.DitapViewer("ditapContainer");
const destination = Ditap.Cartesian3.fromDegrees(
126.978275264,
37.566642192,
400
);
// 카메라 이동
viewer.scene.camera.flyTo({
destination: destination,
});
// viewer에 모델 추가
const modelMatrix = Ditap.Transforms.eastNorthUpToFixedFrame(
Ditap.Cartesian3.fromDegrees(126.9782349646649, 37.56671536989183, 100)
);
const model = await Ditap.Model.fromGltfAsync{
id: "model_01",
url: "../../SampleData/models/GroundVehicle/GroundVehicle.glb",
modelMatrix: modelMatrix,
scale: 3,
});
viewer.scene.primitives.add(model);
// InteractionRemove on/off 실행 시 EditRemove 초기화 필수
const editRemove = new Ditap.EditRemove(viewer);
const interactionRemove = new Ditap.InteractionRemove;
interactionRemove.editRemove = editRemove;
Members
editRemove : EditRemove
객체 삭제를 위한 편집 기능 클래스.
Editing feature class for object deletion.
강조된 객체 배열.
Highlighted object array.
Highlighted object array.
핸들러 비/활성화.
Handler enabled or disabled.
DitapViewer에서 선택한 객체.
Selected object in DitapViewer.
Selected object in DitapViewer.
Methods
모바일 전용 이벤트 추가.
Add mobile-specific event.
Add mobile-specific event.
객체의 리소스 파괴.
Destroy resources held by this object.
Destroy resources held by this object.
객체 삭제 핸들러 종료. (EditRemove 초기화 필수.)
End object removal handler. (EditRemove initialization is required.)
객체 삭제 핸들러 실행. (EditRemove 초기화 필수.)
Execute object removal handler. (EditRemove initialization is required.)
Execute object removal handler. (EditRemove initialization is required.)
모바일 전용 이벤트 제거.
Remove mobile-specific event.
Remove mobile-specific event.
핸들러 on/off 기능.
Function on and off.
Function on and off.