Analysis
# Analysis
# Analysis
3D spatial analysis
# example
var viewer = Joint3d.Viewer('viewer-container')
var analysis = viewer.analysis
# properties
{Measure} measure
:viewer measure Measure{SightLine} sightLine
:Through-view analysis (line) SightLine{SunLight} sunLight
: Daylight Analysis SunLight{Viewshed} viewshed
:View-Shed Analysis Viewshed{Visibility} visibility
:Through-view analysis (circle) Visibility
# Measure
# example
var measure = viewer.analysis.measure
# methods
drawLineMeasureGraphics(options)
parameters
{Object} options
{
"clampToGround": true,
"callback": function (ent) {}
}
drawAreaMeasureGraphics(options)
parameters
{Object} options
{
"clampToGround": true,
"callback": function (ent) {}
}
drawTrianglesMeasureGraphics(options)
parameters
{Object} options
{
"callback": function (ent) {}
}
# SightLine
# example
var sightLine = viewer.analysis.sightLine
# properties
{Boolean} showDistance
:Whether show the distance.
# methods
open()
close()
# SunLight
# example
var sunlight = viewer.analysis.sunlight
# properties
{Boolean} showDistance
:Whether show the distance.
# methods
open()
pause()
close()
setConfig([options])
parameters
{Object} options
// options(optional)
{
multiplier: 5000,
day: "2021-10-20",
startTime: 8,
stopTime: 18,
clockRange: Joint3d.ClockRange.LOOP_STOP,
clockStep: Joint3d.ClockStep.SYSTEM_CLOCK_MULTIPLIER,
}
# Viewshed
# example
var viewshed = viewer.analysis.viewshed
# properties
{Boolean} showDistance
:Whether show the distance.{Boolean} showDome
:Whether show the dome.
# methods
open()
close()
# Visibility
# example
var visibility = viewer.analysis.visibility
# properties
{Boolean} showDistance
:Whether show the distance.{Boolean} showDome
:Whether show the dome.
# methods
open()
close()