MeasurementAngle

각도 계산 및 선분 표시 클래스.
Angle calculation and line display class.

new Ditap.MeasurementAngle(options)

Name Type Description
options object 아래 속성 포함 객체.
Object with the following properties:
Name Type Default Description
viewer DitapViewer 사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.
positions Array.<Cartesian3> optional 각도 측정을 위한 2개 이상의 Cartesian 좌표 배열. 예) 2점만 있으면 "수평선 대비 각도", 3점이면 "두 선분 사이의 각도" 등 응용 가능.
If provided, the input points are used for angle calculation and line display, and it cannot be modified by Interaction classes.
entityColor Color Color.fromBytes(252, 76, 2, 255) optional 엔티티 색상.
Color of the entity (line, points, label).
Example:
const viewer = new DitapViewer("ditapContainer");

// 1. 지정된 점들로 선분 및 각도 생성.
const positions = [
  new Cartesian3(-3044793.45215, 4043760.15101, 3867436.51189),
  new Cartesian3(-3044900.12345, 4043800.67890, 3867500.65432)
];

const options = {
  viewer: viewer,
  positions: positions,
  entityColor: Color.fromBytes(252, 76, 2, 255),
};

const measurementAngle = new MeasurementAngle(options);

const measurementAngle = new Ditap.MeasurementAngle({
  viewer: viewer,
});

const interactionAngle = new Ditap.InteractionAngle();
interactionAngle.measurementAngle = measurementAngle;

Members

viewer : DitapViewer

사용할 DitapViewer 인스턴스.

Methods

destroy()

인스턴스 파괴. 영구적으로 제거하는 경우 호출.
Destroys the instance. Should be called if permanently removing the instance from layout.