EditUtils

선택한 객체(엔티티, 모델, 3D 타일)의 색상 변경, 위치·id 조회, 줌 등 편집 기능에서 사용하는 유틸리티 함수 모음.
Utility functions used by the editing tools, such as changing the color of a picked object (entity, model, 3D tile), getting its positions or id, and zooming to it.

Methods

static Ditap.EditUtils.changeColor(object, color)

객체 색상 변경.
Change the color of the object.
Name Type Description
object object 색상 변경할 객체.
objects to Change Color.
color Color 변경할 색상.
Color to change.

static Ditap.EditUtils.get3DTileName(feature) → string

3d 타일셋의 id 조회.
Get 3DTileset Id.
Name Type Description
feature object 선택된 3d타일셋.
The selected 3DTileset object.
Returns:
타일셋 id.
3DTileset's Id.

static Ditap.EditUtils.getOriginalColor(objects) → Color

객체의 기존 색상 조회.
Get Original material.
Name Type Description
objects object 색상을 조회할 객체.
objects to Change Color.
Returns:
기존 색상.
The color before it changed

static Ditap.EditUtils.getSelectObject()

Interaction 클래스에서 지원하는 object 추출

static Ditap.EditUtils.isSelectedObject(newObject) → boolean

선택 된 객체인지 확인.
Check that it is selected Object.
Name Type Description
newObject object 선택 된 객체.
object to check.
Returns:
선택 된 객체 여부. Whether the object is selected or not.(true/false)

static Ditap.EditUtils.setHighlightObjects(pickedObject)

강조할 객체 설정.
Set objects to be emphasized.
Name Type Description
pickedObject object 강조할 객체.
Emphasize the objects.

static Ditap.EditUtils.setOriginalColor(objects)

객체의 기존 색상으로 변경.
Set Original material.
Name Type Description
objects object 색상 변경할 객체.
objects to Change Color.