new UAnalySection(opt)
| Name | Type | Description |
|---|---|---|
opt |
UAnalySectionCO | optional |
Members
-
namestring
-
Methods
-
active()
-
-
addSelected(object)
-
입력받은 Object를 선택상태로 추가하는 함수
Name Type Description objectUMesh | Array.<UMesh> Object 객체
-
clear()
-
측정된 전체 내용을 삭제합니다. poiGroup의 Children과 SceneComment에 등록된 filter들이 삭제됩니다. highLight 된 건물들을 원래대로 되돌립니다.
-
clearSelect()
-
선택된 Object의 선택 상태를 초기화하는 함수
-
deactive()
-
-
drawVerticalLine(dist, name)
-
해당 지점에서 지형과 만나는 점과 수직선을 지도상에 나타내는 함수
Name Type Description distVector3 해당 지점의 좌표값
namestring optional 해당 함수를 호출한 유형의 이름 / 미리보기선 [ prevLine ], 클릭시 생성 되는 POI [ measure ]
Example
let analy = app.getAnalysis('Depth'); let position = new THREE.Vector3(x:129.1531330187, y: 35.1587087531, z: 50); analy.drawVerticalLine(position,'measure') -
getDistanceLine(start, end, getLine)U3dLine|undefined
-
두 지점 사이의 거리를 구하고 그리는 함수입니다.
start 와 end 가 Vector3 유형일 경우만 결과 값을 출력합니다.
이전에 POI 가 생성되어야 결과 값이 출력되며, DistanceLine 생성 시 마지막으로 추가된 POI 의 children 으로 추가됩니다.
두 점 사이의 선과 거리 값을 지도상에 그려줍니다.Name Type Description startWorldPositionVector3 첫 지점의 좌표 (월드 좌표, EPSG:3857)
endWorldPositionVector3 끝 지점의 좌표 (월드 좌표, EPSG:3857)
getLineboolean optional 결과 라인 반환 여부
Returns:
Type Description U3dLine | undefined 생성된 거리 라인 -
getFilteredList()Array.<string>
-
측정된 거리의 POI ID 리스트를 반환하는 함수
Returns:
Type Description Array.<string> - POI ID가 담긴 배열 (해당 거리 측정시 처음 찍은 점 POI의 ID)
-
getFilteredObject()Record.<string, unknown>
-
측정된 영역에 필터링된 Object 객체를 반환하는 함수
Returns:
Type Description Record.<string, unknown> 필터링된 Object 객체 Example
return { arr : [UMesh, UMesh...], //Obejct가 가지는 메시 목록 height: "10", poiGroupID :37439, type: "longitudinal" } -
getLineWidth()number
-
Returns:
Type Description number -
getResultFromCoordinate(point1, point2)
-
위경도 좌표를 입력 받아 단면 분석을 수행하는 함수
Name Type Description point1GeoPosition 첫번째 지점 좌표값 (경도, 위도, 높이)
point2GeoPosition 두번째 지점 좌표값 (경도, 위도, 높이)
Example
point1={x: 129.1531330187, y:35.1587087531, z: 15}; point2={x: 129.1551362618, y:35.1591494079, z: 35}; analy.getResultFromCoordinate(point1,point2); -
intersectMesh(cylinder, bottom, height, mesh, invert)boolean
-
사용자가 그린 도형 반경의 해당하는 건물을 포함 여부 판단하여 출력
Name Type Description cylinderU3dCylinder 사용자가 그린 도형 ( cylinder )
bottomnumber cylinder의 바닥 높이
heightnumber cylinder의 도형 높이
meshUMesh 사용자가 그린 도형에 포함되는지 비교할 건물
invertboolean optional 사용자가 도형을 그릴시 첫점보다 끝점의 높이가 높을 경우 true 입력
Returns:
Type Description boolean - 해당 mesh가 사용자가 그린 도형 반경에 포함된다면 true, 아닐 경우 false
-
passToClickEvent(func, event)
-
입력받은 함수를 화면 클릭 이벤트로 등록하는 함수
Name Type Description funcEventCallBack 이벤트 동작시 실행 함수
eventstring optional 이벤트 지정
Example
function printFilteredList (){ let list = analy.getFilteredList(); list.forEach((filter)=> { console.log(filter); }); } analy.passToClickEvent(printFilteredList); //클릭이벤트 발생 시 printFilteredList 함수 호출 -
removeAllFilter()
-
전체 Filter를 제거하는 함수
-
removeFilter(id)
-
ID에 해당하는 Filter를 삭제하고, 측정 영역을 원래대로 되돌리는 함수
Name Type Description idstring 삭제하려는 Filter의 ID
-
setGridSpriteImage(url, size, opacity)
-
격자 SPRITE의 IMAGE 설정과 크기, 투명도를 설정하는 함수
Name Type Default Description urlstring 설정하려는 격자 이미지 url
sizenumber 1000 optional 설정하려는 격자 크기
opacitynumber 0.7 optional 설정하려는 격자 투명도
Example
let url ='../../tutorial-official/image/grid2.png'; let size = 1000; let opacity = 0.7; let analy = app.getAnalysis('Depth'); analy.setGridSpriteImage(url, size, opacity); -
setLineWidth(width)
-
Name Type Description widthnumber -
setType(type)
-
가이드라인의 타입을 지정하는 함수
Name Type Description typestring 가이드라인의 타입
longitudinalcrossSection
Type Definitions
-
FilteredEntryobject
-
Properties:
Name Type Argument Description arrArray.<(UMesh|{layerName: string, id: unknown})> typestring poiGroupIDstring | number heightnumber <optional>
-
MeasurePOILikeobject
-
Properties:
Name Type Argument Description setPositionfunction <optional>
setLabelfunction <optional>
setPointSizefunction <optional>
setPointColorfunction <optional>
getUidfunction <optional>
-
SelectLayerLikeobject
-
Properties:
Name Type Description setMeasureTypefunction addMeasurePointfunction -
UAnalySectionCOobject
-
~extends UAnaly~UAnalyCO
횡단면/종단면영역 분석 생성자 옵션Properties:
Name Type Argument Default Description namestring <optional>
'Section' 분석모드 이름