View
BackupCamera
카메라 백업
Example
Returns
Type | Description |
---|---|
Data.UUIDv4 | 백업 아이디 |
BoxZoomByArea
영역을 확대
Example
Parameters
Name | Type | Description |
---|---|---|
x1 | Number | 위치 |
y1 | Number | 위치 |
x2 | Number | 위치 |
y2 | Number | 위치 |
CameraZoomIn
설정된 Pivot 기준 Camera Zoom In
Example
Parameters
Name | Type | Description |
---|---|---|
ratio | Number | Zoom (기본 1.0) |
CameraZoomOut
설정된 Pivot 기준 Camera Zoom Out
Example
Parameters
Name | Type | Description |
---|---|---|
ratio | Number | Zoom (기본 1.0) |
ClearGLWindow
GL Windows View 초기화
Example
DeleteCameraBackupData
카메라 복원 데이터 제거
Example
Parameters
Name | Type | Description |
---|---|---|
id | Data.UUIDv4 | 백업 아이디 |
EnableAnimation
카메라 애니메이션 설정
Example
Parameters
Name | Type | Description |
---|---|---|
enable | Boolean | true : 활성화, false : 비활성화 |
EnableEnvironment
환경 조명 설정 - 활성화 / 비활성화
Example
Parameters
Name | Type | Description |
---|---|---|
enable | Boolean | true : 활성화, false : 비활성화 |
EnableFog
환경 Fog 활성화
Example
Parameters
Name | Type | Description |
---|---|---|
enable | Boolean | true : 활성화, false : 비활성화 |
EnableGraySacle
GraySacle 모드 활성화 / 비활성화
Example
Parameters
Name | Type | Description |
---|---|---|
enable | Boolean | true : 활성화, false : 비활성화 |
EnableHiddenLine
HiddenLine 모드 활성화 / 비활성화
Example
Parameters
Name | Type | Description |
---|---|---|
enable | Boolean | true : 활성화, false : 비활성화 |
EnableShadow
그림자 효과 활성화 / 비활성화 (WebGL 2.0 지원)
Example
Parameters
Name | Type | Description |
---|---|---|
enable | Boolean | true : 활성화, false : 비활성화 |
EnableSilhouetteEdge
윤곽효과 모드 활성화 / 비활성화
Example
Parameters
Name | Type | Description |
---|---|---|
enable | Boolean | true : 활성화, false : 비활성화 |
EnableSilhouetteEdgeToSelectedObject
선택모델 윤곽효과 활성화 / 비활성화
Example
Parameters
Name | Type | Description |
---|---|---|
enable | Boolean | true : 활성화, false : 비활성화 |
EnableSSAO
SSAO효과 모드 활성화 / 비활성화
Example
Parameters
Name | Type | Description |
---|---|---|
enable | Boolean | true : 활성화, false : 비활성화 |
EnableWireframe
Wireframe 모드 활성화 / 비활성화
Example
Parameters
Name | Type | Description |
---|---|---|
enable | Boolean | true : 활성화, false : 비활성화 |
FitAll
현재 모델을 화면에 맞춤
Example
FocusByBoundBox
바운드 박스로 포커스
Example
Parameters
Name | Type | Description |
---|---|---|
boundBox | Data.BBox | Bound Box |
margin | Number | screen margin ratio |
FocusObjectByNodeID
해당 Node IDs 의 노드 포커스
Example
Parameters
Name | Type | Description |
---|---|---|
nodeIds | Array | Node IDs |
offset | Number | Offset |
margin | Number | screen margin ratio |
FocusPivot
피벗 위치로 화면 중심이동
Example
Parameters
Name | Type | Description |
---|---|---|
world | VIZCore.Vector3 | Pivot 위치 갱신 (undefined === 현재 pivot으로 이동) |
GetBackupCameraData
카메라 복원 데이터 반환
Example
Parameters
Name | Type | Description |
---|---|---|
id | Data.UUIDv4 | 백업 아이디 |
Returns
Type | Description |
---|---|
BackupCameraData | 백업된 데이터 반환 |
GetBackupCameraList
카메라 복원 목록 반환
Example
Returns
Type | Description |
---|---|
Array | 백업된 데이터 반환 : BackupCameraData |
GetCameraData
현재 카메라 정보 반환
Example
Returns
Type | Description |
---|---|
Object | CameraData |
GetCurrentImage
현재 화면의 이미지 데이터 반환
Example
Parameters
Name | Type | Description |
---|---|---|
bIncludeReview | boolean | 리뷰 정보 포함 여부(측정, 노트, 그리기, 그리드 정보) |
Returns
Type | Description |
---|---|
String | 이미지 데이터 (base64) |
GetDirectionalLight
Directional Light 정보 반환
Example
Returns
Type | Description |
---|---|
view.Data.LightItem | 빛 정보 반환 |
GetLightDirection
빛 방향 반환
Example
Returns
Type | Description |
---|---|
VIZCore.Vector3 | 빛 방향 |
GetLockCameraUpAngle
Z축 고정 시 모델의 바닥면으로 회전되는 것을 방지 설정반환
Example
Returns
Type | Description |
---|---|
Boolean | True(바닥면으로 카메라 회전 차단), False(360 회전) |
GetPivotLock
회전 중심(Pivot) 위치설정 잠금여부 반환
Example
Returns
Type | Description |
---|---|
Boolean | True, False |
GetScreen1PixelLength
화면 기준 1Pixel당 거리 반환
Example
Parameters
Name | Type | Description |
---|---|---|
pos | VIZCore.Vector3 | 기준 좌표 |
Returns
Type | Description |
---|---|
Number | 1Pixel당 거리 |
GetViewUnderControlMode
View Control 중 형상 가시화 모드 설정 반환
Example
Returns
Type | Description |
---|---|
VIZCore.Enum.ViewUnderControlVisibleMode | 설정 반환 |
IsAnimation
카메라 애니메이션 설정 반환
Example
Returns
Type | Description |
---|---|
Boolean | true : 활성화, false : 비활성화 |
IsEdgeVisible
모델 모서리 표시 상태 반환
Example
Returns
Type | Description |
---|---|
boolean | 상태 : True(show) / False(hide) |
IsEnableViewLightRotate
카메라 방향에 따른 빛 방향 업데이트 반환
Example
Returns
Type | Description |
---|---|
Boolean | true : 빛 방향 갱신, false : 방향 고정 |
LockCamera
카메라 제어
Example
Parameters
Name | Type | Description |
---|---|---|
enable | Boolean | True(Lock), False(Unlock) |
LockPivot
회전 중심(Pivot) 위치설정 잠금
Example
LockZAxis
Z축을 기준으로 회전
Example
Parameters
Name | Type | Description |
---|---|---|
enable | Boolean | True(Z축을 기준으로 회전), False(360 회전) |
MoveCamera
카메라 이동
Example
Parameters
Name | Type | Description |
---|---|---|
camera | VIZCore.Enum.CameraDirection | 카메라 방향 |
Refresh
현재 화면을 갱신
Example
ResetGLWindow
초기 GL Windows View 설정
Example
ResetView
초기 화면으로 초기화
Example
Resize
Window 의 크기를 변경된 조건에 맞게 조정
Example
RollbackCamera
카메라 복원
Example
Parameters
Name | Type | Description |
---|---|---|
id | string | 백업 아이디 |
RotateCamera
Camera 회전
Example
Parameters
Name | Type | Description |
---|---|---|
x | Number | 회전 X |
y | Number | 회전 Y |
z | Number | 회전 Z |
angleFormat | VIZCore.Enum.AngleFormat | DEFAULT : VIZCore.Enum.AngleFormat.DEGREE |
RotateCameraByMatrix
Camera 회전
Example
Parameters
Name | Type | Description |
---|---|---|
matrix | VIZCore.Matrix4 | 회전 Matrix |
RotateCameraByVector
Camera 회전
Example
Parameters
Name | Type | Description |
---|---|---|
vector | VIZCore.Vector3 | 회전 angle x, y, z |
angleFormat | VIZCore.Enum.AngleFormat | DEFAULT : VIZCore.Enum.AngleFormat.DEGREE |
RotateCameraByWorldAxis
축 기준 Camera 회전
Example
Parameters
Name | Type | Description |
---|---|---|
axis | VIZCore.Vector3 | 고정 축 |
vector | VIZCore.Vector3 | 회전 값 |
angleFormat | VIZCore.Enum.AngleFormat | DEFAULT : VIZCore.Enum.AngleFormat.DEGREE |
ScreenToWorld
2D 좌표(화면 좌표)계를 3D World 좌표계로 반환
Example
Parameters
Name | Type | Description |
---|---|---|
x | Number | X 좌표 |
y | Number | Y 좌표 |
z | Number | Z 좌표 |
ScreenToWorldByVector3
2D 좌표(화면 좌표)계를 3D World 좌표계로 반환
Example
Parameters
Name | Type | Description |
---|---|---|
screen | VIZCore.Vector3 | Screen 좌표 |
SetAmbientColor
Ambient 설정
Example
Parameters
Name | Type | Description |
---|---|---|
color | VIZCore.Color | Ambient 색상 |
SetBackgroundColor
배경 색상 설정
Example
Parameters
Name | Type | Description |
---|---|---|
color1 | VIZCore.Color | Color #1 |
color2 | VIZCore.Color | Color #2 |
SetBackgroundMode
배경 색상 표현 설정
Example
Parameters
Name | Type | Description |
---|---|---|
mode | VIZCore.Enum.BackgroundModes | 배경 색상표현 설정 |
SetCameraBaseDirection
초기 모델 조회 시, 초기 카메라 방향 설정
Example
Parameters
Name | Type | Description |
---|---|---|
direction | VIZCore.Enum.VIEW_MODES | 카메라 방향 |
SetCameraBaseDirectionMatrix
초기 모델 조회 시, 초기 카메라 방향 설정
Example
Parameters
Name | Type | Description |
---|---|---|
matrix | VIZCore.Matrix4 | 초기 방향 matrix 설정 |
SetCameraBaseMatrix
초기 모델 조회 시, 초기 카메라 설정
Example
Parameters
Name | Type | Description |
---|---|---|
matrix | VIZCore.Matrix4 | 초기 matrix 설정 |
SetCameraData
현재 카메라 정보 설정
Example
Parameters
Name | Type | Description |
---|---|---|
id | Data.UUIDv4 | 백업 아이디 |
SetCameraDataByMatrix
매트릭스로 화면 이동
Example
Parameters
Name | Type | Description |
---|---|---|
matrix |
| 카메라 매트릭스(Matrix) |
zoom | Number | 카메라 Zoom |
SetEdgeColor
모서리 강조 색상 설정
Example
Parameters
Name | Type | Description |
---|---|---|
color | VIZCore.Color | Edge Highlight Color |
SetEnableViewLightRotate
카메라 방향에 따른 빛 방향 업데이트
Example
Parameters
Name | Type | Description |
---|---|---|
enable | Boolean | true : 빛 방향 갱신, false : 방향 고정 |
SetLightColor
빛 색상 설정
Example
Parameters
Name | Type | Description |
---|---|---|
color | VIZCore.Color | 빛 색상 |
SetLightDirection
빛 방향 설정
Example
Parameters
Name | Type | Description |
---|---|---|
direction | VIZCore.Vector3 | 빛 방향 |
SetLightTime
지정된 시간의 빛 방향 설정
Example
Parameters
Name | Type | Description |
---|---|---|
time | Number | 시간 (6 ~ 18) |
SetLockCameraUpAngle
Z축 고정 시 모델의 바닥면으로 회전되는 것을 방지
Example
Parameters
Name | Type | Description |
---|---|---|
enable | Boolean | True(바닥면으로 카메라 회전 차단), False(360 회전) |
SetLockCameraUpAngleMinMax
Z축 고정된 카메라를 회전할수 있는 각도 설정
Example
Parameters
Name | Type | Description |
---|---|---|
min | Number | 최소 각 (-90 ~ 90) |
max | Number | 최대 각 (-90 ~ 90) |
SetModelObjectCustomEdgeColor
지정한 개체의 모델 모서리 추가 표시 색상 설정
Example
Parameters
Name | Type | Description |
---|---|---|
color | VIZCore.Color | 모서리 추가 표시 색상 |
SetModelObjectCustomEdgeThickness
지정한 개체의 모델 모서리 두께 설정
Example
Parameters
Name | Type | Description |
---|---|---|
thickness | Number | 모서리 두께 설정 (범위 : 0.1 ~ 2.0) |
SetPivot
피봇(회전 중심) 설정
Example
Parameters
Name | Type | Description |
---|---|---|
point | VIZCore.Vector3 | 위치 |
SetPivotPosition
회전 중심(Pivot) 위치 설정
Example
Parameters
Name | Type | Description |
---|---|---|
position | VIZCore.Vector3 | Pivot 위치 |
SetPivotVisible
회전 중심(Pivot) 가시화 여부
Example
Parameters
Name | Type | Description |
---|---|---|
visible | boolean | 가시화 여부 |
SetProjection
Projection (원근, 평행) 모드 설정
Example
Parameters
Name | Type | Description |
---|---|---|
projection | VIZCore.Enum.PROJECTION_MODES | 원근/평행 모드 |
SetRenderMode
Render Mode 설정
Example
Parameters
Name | Type | Description |
---|---|---|
mode | VIZCore.Enum.RENDER_MODES | Render Mode 설정 |
SetSelectionColor
선택 객체 색상 설정
Example
Parameters
Name | Type | Description |
---|---|---|
color | VIZCore.Color | 선택 객체 색상 |
SetSelectionLevel
선택 가능 개체 타입이 LEVEL일 경우, 선택되어야 하는 LEVEL 설정
Example
Parameters
Name | Type | Description |
---|---|---|
level | Number | 개체 레벨 |
SetSelectionLineColor
선택 객체 선 색상 설정
Example
Parameters
Name | Type | Description |
---|---|---|
color | VIZCore.Color | 선택 객체 선 색상 |
SetSelectionObject3DType
선택 가능 개체 유형 설정
Example
Parameters
Name | Type | Description |
---|---|---|
selectionObject3DTypes | VIZCore.Enum.SelectionObject3DTypes | 개체 유형 |
SetSelectionUnit
선택 가능 개체 타입 설정
Example
Parameters
Name | Type | Description |
---|---|---|
unit | VIZCore.Enum.SELECT_UNIT | 개체 유형 |
SetShadowRatio
그림자 효과 비율 설정 (0 ~ 1)
Example
Parameters
Name | Type | Description |
---|---|---|
ratio | Number | 0 : 그림자 표시하지 않음, 1 : 그림자 어둡게 적용 |
SetViewUnderControlMode
View Control 중 형상 가시화 모드 설정
Example
Parameters
Name | Type | Description |
---|---|---|
mode | VIZCore.Enum.ViewUnderControlVisibleMode | 형상 가시화 모드 설정 |
SetZAxis2Up
Axis Z Up
Example
ShowEdge
모델 모서리 표시
Example
Parameters
Name | Type | Description |
---|---|---|
visible | boolean | 모델 모서리 표시 |
ShowModelObjectCustomEdge
지정한 개체의 모델 모서리 추가 표시
Example
Parameters
Name | Type | Description |
---|---|---|
visible | boolean | 모델 모서리 표시 |
TranslateCameraByMatrix
Camera 이동
Example
Parameters
Name | Type | Description |
---|---|---|
matrix | VIZCore.Matrix4 | 이동 Matrix |
TranslateCameraByVector
Camera 이동
Example
Parameters
Name | Type | Description |
---|---|---|
vector | VIZCore.Vector3 | 이동 |
UnlockPivot
회전 중심(Pivot) 위치설정 잠금해제
Example
UpdateGLWindow
Update GL Window - matrix MV, matrix MVP Update
Example
Parameters
Name | Type | Description |
---|---|---|
matrix | VIZCore.Matrix4 | Model Matrix == undefined 인 경우 초기값 |
ViewBackBottomSide
Camera 설정 (+y -z)
Example
ViewBackSection
Camera 설정 (+y)
Example
ViewBackTopSide
Camera 설정 (+y +z)
Example
ViewBottomPlan
Camera 설정 (-z)
Example
ViewFrontBottomSide
Camera 설정 (-y -z)
Example
ViewFrontSection
Camera 설정 (-y)
Example
ViewFrontTopSide
Camera 설정 (-y +z)
Example
ViewISOLeftBackBottom
Camera 설정 (-x +y -z)
Example
ViewISOLeftBackTop
Camera 설정 (-x +y +z)
Example
ViewISOLeftFrontBottom
Camera 설정 (-x -y -z)
Example
ViewISOLeftFrontTop
Camera 설정 (-x -y +z)
Example
ViewISOMinus
Camera 설정 (ISO-)
Example
ViewISOPlus
Camera 설정 (ISO+)
Example
ViewISORightBackBottom
Camera 설정 (+x +y -z)
Example
ViewISORightBackTop
Camera 설정 (+x +y +z)
Example
ViewISORightFrontBottom
Camera 설정 (+x -y -z)
Example
ViewISORightFrontTop
Camera 설정 (+x -y +z)
Example
ViewLeftBackSide
Camera 설정 (-x +y)
Example
ViewLeftBottomSide
Camera 설정 (-x -z)
Example
ViewLeftElevation
Camera 설정 (-x)
Example
ViewLeftFrontSide
Camera 설정 (-x -y)
Example
ViewLeftTopSide
Camera 설정 (-x +z)
Example
ViewRightBackSide
Camera 설정 (+x +y))
Example
ViewRightBottomSide
Camera 설정 (+x -z)
Example
ViewRightElevation
Camera 설정 (+x)
Example
ViewRightFrontSide
Camera 설정 (+x -y)
Example
ViewRightTopSide
Camera 설정 (+x +z)
Example
ViewTopPlan
Camera 설정 (+z)
Example
WorldToScreen
3D World 좌표계를 2D 좌표(화면 좌표) 반환
Example
Parameters
Name | Type | Description |
---|---|---|
x | Number | x 좌표 |
y | Number | y 좌표 |
z | Number | z 좌표 |
WorldToScreenByVector3
3D World 좌표계를 2D 좌표(화면 좌표) 반환
Example
Parameters
Name | Type | Description |
---|---|---|
world | VIZCore.Vector3 | World 좌표 |
ZoomSelectedObject
선택 모델 박스 줌
Example
Parameters
Name | Type | Description |
---|---|---|
offset | Number | bbox offset |
margin | Number | screen margin ratio |
--- Event Listener ---
OnCameraStateChangedEvent
카메라 변경 이벤트 등록
Example
Parameters
Name | Type | Description |
---|---|---|
listener | Object | Event Listener |
OnEmptyMeshBlockEvent
Empty MeshBlock 이벤트 등록
Example
Parameters
Name | Type | Description |
---|---|---|
listener | Object | Event Listener |
OnSelectedEvent
개체 선택 이벤트 등록
Example
Parameters
Name | Type | Description |
---|---|---|
listener | Object | Event Listener |
OnViewDefaultContextMenuEvent
View Default ContextMenu Event
Example
Parameters
Name | Type | Description |
---|---|---|
listener | Object | Event Listener |
OnViewDefaultKeyUpEvent
View Default KeyUp Event
Example
Parameters
Name | Type | Description |
---|---|---|
listener | Object | Event Listener |
OnViewDefaultMouseDoubleClickEvent
View Default Mouse DoubleClick Event
Example
Parameters
Name | Type | Description |
---|---|---|
listener | Object | Event Listener |
OnViewDefaultMouseDownEvent
View Default Mouse Down Event
Example
Parameters
Name | Type | Description |
---|---|---|
listener | Object | Event Listener |
OnViewDefaultMouseMoveEvent
View Default Mouse Move Event
Example
Parameters
Name | Type | Description |
---|---|---|
listener | Object | Event Listener |
OnViewDefaultMouseUpEvent
View Default Mouse Up Event
Example
Parameters
Name | Type | Description |
---|---|---|
listener | Object | Event Listener |
OnViewDefaultMouseWheelEvent
View Default Mouse Wheel Event
Example
Parameters
Name | Type | Description |
---|---|---|
listener | Object | Event Listener |
OnViewDrawInfoEvent
View DrawInfo Event
Example
Parameters
Name | Type | Description |
---|---|---|
listener | Object | Event Listener |