new module:Plot(gmfLidarprofileManagerInstance)
Provides a service to create an SVG element with defined axis and a LIDAR point drawing mechanism.
Parameters:
Name | Type | Description |
---|---|---|
gmfLidarprofileManagerInstance |
gmf.lidarprofile.Manager | gmf lidar profile manager instance |
Members
material: string
The material used for the drawing process. Initialized in the setup
previousDomainX: Array:.<number:>
scaleX: function
d3.scaleLinear X scale.
scaleY: function
d3.scaleLinear Y scale.
updateScaleX: function
d3.scaleLinear X scale.
updateScaleY: function
d3.scaleLinear Y scale.
Methods
changeStyle(material)
Change the profile style according to the material color
Parameters:
Name | Type | Description |
---|---|---|
material |
string | value as defined in Pytree attribute configuration |
drawPoints(points)
Draw the points to the canvas element
Parameters:
Name | Type | Description |
---|---|---|
points |
gmfx.LidarprofilePoints | of the profile |
getInfoHTML(point, classification_color, distDecimal)
Parameters:
Name | Type | Description |
---|---|---|
point |
gmfx.LidarPoint | the concerned point. |
classification_color |
lidarprofileServer.ConfigClassification | the classification object concerning this point. |
distDecimal |
number | the number of decimal to keep. |
Returns:
the text for the html info.
pointHighlight()
Update the Openlayers overlay that displays point position and attributes values
setClassActive(classification, material)
Show/Hide classes in the profile
Parameters:
Name | Type | Description |
---|---|---|
classification |
lidarprofileServer.ConfigClassifications | value as defined in the Pytree classification_colors configuration |
material |
string | value as defined in Pytree attribute configuration |
setupPlot(rangeX, rangeY)
Setup the SVG components of the D3 chart
Parameters:
Name | Type | Description |
---|---|---|
rangeX |
Array. |
range of the x scale |
rangeY |
Array. |
range of the y scale |
zoomed()
Update the plot axis during the zoom process
zoomEnd()
Update the plot data at the end of the zoom process