📋
XDWorld_WebGL_Manual
  • 소개
    • XDWorld API
    • 시작하기
    • About EGIS
    • Release Note
      • 2.1x 버전 업데이트
      • 2.x 버전 업데이트
      • 1.6x 버전 업데이트
      • 1.5x 버전 업데이트
      • 1.4x 버전 업데이트
      • 1.3x 버전 업데이트
      • 이전 버전 업데이트
    • Tutorial
      • 카메라 설정
      • POI 생성하기
      • 폴리곤 생성하기
      • 라인 생성하기
      • 모델 추가하기
      • 레이어 설정
      • 배경 지도 설정
      • 거리 측정
      • 면적 측정
      • 높이 측정
      • 반경 측정
  • API
    • Module
    • Core
      • Collection
      • JSAABBox3D
      • JSColor
      • JSLine3D
      • JSSize2D
      • JSSize3D
      • JSVector2D
      • JSVector3D
      • JSVec2Array
      • JSVec3Array
      • JSDateTime
    • Analysis
      • JSAnalysis
      • JSAnalysisGridShadow
      • JSEarthquake
      • JSEditTerrain
      • JSFlood
      • JSGridAnal
      • JSSightAnalysis
      • JSSlope
      • JSTransparency
      • JSSolarManager
    • Camera
      • JSCamera
    • Layer
      • JSLayer
      • JSLayerList
      • JSImageryProvider
    • Map
      • JSMap
      • JSTerrain
      • JSIndexMap
    • Object
      • JSObject
      • JSAntenna
      • JSArrow
      • JSBarGraph
      • JSBarGraph3D
      • JSBillboard
      • JSColorGrid
      • JSColorGrid3D
      • JSColorPolygon
      • JSFigure
      • JSFlow
      • JSFlowPolygon
      • JSGhostSymbol
      • JSGhostSymbolMap
      • JSHTMLObject
      • JSIcon
      • JSInstanceObject
      • JSLineString
      • JSMultiCube
      • JSMultiPoint
      • JSPipe
      • JSPoint
      • JSPointGraph
      • JSPolygon
      • JSPolygonStyle
      • JSPolyLineStyle
      • JSReal3D
      • JSSurfaceGraph
      • JSSymbol
      • JSTimeSeriesObject
      • JSTraceTarget
      • JSTyphoon
      • JSVideoObject
      • JSViewFrustum
    • Option
      • JSControl
      • JSNavigationControl
      • JSOption
    • ETC
      • JSMath
      • JSProj
      • ~~JSProjection~~
      • SOPObject
      • EVENT
      • Type List
      • Tag List
Powered by GitBook
On this page
  • Function
  • create(coordinates, startColor, endColor, segment, radius, width) → boolean
  • getExtent() → number
  • getId() → string
  • getPositions() → JSVec3Array
  • getRadius() → number
  • moveVertically(altitude) → boolean
  • setColor(starColor, endColor) → boolean
  • setFlow(startColor, endColor, segment, interval) → boolean
  • setFlowDisplay(type) → boolean
  • setFlowWaitFrame(farme) → boolean
  • setSimplifyRange(range) → boolean
  • Getter / Setter
  • getDescription(), setDescription(desc) → string
  • getName(), setName(name) → string
  • getVisible(), setVisible(visible) → boolean

Was this helpful?

  1. API
  2. Object

JSPipe

지도 내 파이프 객체를 생성 및 설정하기 위한 API 입니다.

PreviousJSMultiPointNextJSPoint

Last updated 11 months ago

Was this helpful?

Module.createPipe() API를 생성합니다.

var object = Module.createPipe("ID");

Function

create(coordinates, startColor, endColor, segment, radius, width) → boolean

3d 파이프 객체를 생성합니다.

입력 변수값(segment)은 3보다 큰값이 설정됩니다.

입력 변수값(radius)은 0보다 큰값이 설정됩니다.

Name
Type
Description

coordinates

좌표 목록(경도, 위도, 고도).

startColor

시작 파이프 색상.

endColor

끝 파이프 색상.

segment

number

단면의 다각수.

radius

number

반지름.

width

number

파이프 표현시 두께 설정.

  • Return

    • true: 생성 성공.

    • false: 생성 실패.

  • Sample

    • function createUndergroundFacility 참조.

getExtent() → number

3d 파이프 객체의 공간 영역의 장축 거리를 반환합니다.

  • Return

    • number: 거리 반환 성공.

var bExtends = figure.getExtent();

getId() → string

객체의 고유 명칭을 반환 합니다.

  • Return

    • string: 객체 설명 문자열이 성공적으로 반환.

    • null: 객체가 null인 경우.

var strKey = object.getId();

3d 파이프 객체을 중심 좌표(경도, 위도, 고도)를 반환합니다.

  • Return

    • null: 반환 실패.

getRadius() → number

3d 파이프 객체을 반지름(meter 단위)을 반환합니다.

  • Return

    • number: 반환 성공.

moveVertically(altitude) → boolean

3d 파이프 객체의 고도를 설정합니다.

입력 변수값(altitude) 최소 -1000 보다 큰 값이 입력 되어야 합니다(해발고도 기준).

Name
Type
Description

altitude

number

고도 설정.

  • Return

    • true: 설정 성공.

    • false: 설정 실패.

setColor(starColor, endColor) → boolean

3d 파이프 객체의 시작, 끝에 대한 색상을 설정합니다.

Name
Type
Description

startColor

시작 색상.

endColor

끝 색상.

  • Return

    • true: 설정 성공.

    • false: 설정 실패.

setFlow(startColor, endColor, segment, interval) → boolean

3d 파이프 객체 내부 흐름 표현 형태를 설정합니다.

입력 변수값(segment)은 3보다 큰값이 설정됩니다.

입력 변수값(interval)은 0보다 큰값이 설정됩니다.

Name
Type
Description

startColor

시작 색상.

endColor

끝 색상.

segment

number

흐름 구성을 위한 점수.

interval

number

흐름 표현 화살표의 간격.

  • Return

    • true: 설정 성공.

    • false: 설정 실패.

  • Sample

    • function createUndergroundFacility 참조.

setFlowDisplay(type) → boolean

3d 파이프 객체 내부 흐름 가시화 유무를 설정합니다.

Name
Type
Description

type

boolean

true: 흐름 가시화. false: 흐름 비가시화.

  • Return

    • true: 설정 성공.

    • false: 설정 실패.

  • Sample

    • function createUndergroundFacility 참조.

setFlowWaitFrame(farme) → boolean

3d 파이프 내부 흐름에 대한 갱신 프레임 수를 설정합니다.

입력 변수값(frame)은 0보다 큰값이 설정됩니다.

Name
Type
Description

frame

number

갱신 프레임 수.

  • Return

    • true: 설정 성공.

    • false: 설정 실패.

  • Sample

    • function createUndergroundFacility 참조.

setSimplifyRange(range) → boolean

3d 파이프 객체의 간소화 표현 거리를 설정합니다.

입력 변수값(range)은 0보다 큰값이 설정됩니다.

간소화 표현 중 흐름 표현은 생략됩니다.

Name
Type
Description

range

number

간소화 거리.

  • Return

    • true: 설정 성공.

    • false: 설정 실패.

  • Sample

    • function createPipe 참조.

Getter / Setter

getDescription(), setDescription(desc) → string

객체에 대한 설명을 설정합니다.

Name
Type
Description

desc

string

설명 문자열.

  • Return

    • string: 객체 설명 문자열이 성공적으로 반환.

    • null: 객체가 null인 경우.

var strDesc = object.getDescription();
// ... or ...
object.setDescription("First Object.");

getName(), setName(name) → string

객체 이름을 설정합니다.

Name
Type
Description

name

string

객체 이름.

  • Return

    • string: 객체 이름을 성공적을 반환

    • null: 객체가 null인 경우.

var objName = object.getName();
// ... or ...
object.setName("MyObject");

getVisible(), setVisible(visible) → boolean

객체의 가시화 유무를 설정합니다.

Name
Type
Description

visible

boolean

true: 객체 가시화. false: 객체 비가시화.

  • Return

    • true: 객체 가시화 상태.

    • false: 객체 비가시화 상태.

var objName = object.getName();
// ... or ...
object.setVisible(true);

getPositions() →

: 반환 성공.

Sandbox_Creating Excavation
JSVec3Array
JSVec3Array
Sandbox_Creating Excavation
Sandbox_Creating Excavation
Sandbox_Creating Excavation
Sandbox_Pipe
Collection
JSColor
JSColor
JSColor
JSColor
JSColor
JSColor