Skip to content

Commit

Permalink
Add sensor viewshed properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
shunter committed Mar 1, 2021
1 parent bc8a4f2 commit 72abd78
Show file tree
Hide file tree
Showing 11 changed files with 4,876 additions and 45 deletions.
586 changes: 579 additions & 7 deletions DotNet/CesiumLanguageWriter/Generated/ConicSensorCesiumWriter.cs

Large diffs are not rendered by default.

Large diffs are not rendered by default.

586 changes: 579 additions & 7 deletions DotNet/CesiumLanguageWriter/Generated/RectangularSensorCesiumWriter.cs

Large diffs are not rendered by default.

312 changes: 312 additions & 0 deletions DotNet/CesiumLanguageWriterTests/TestGenerateValidationDocument.cs

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

22 changes: 21 additions & 1 deletion Schema/Extensions/AGI/ConicSensor.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
},
"environmentConstraint": {
"$ref": "../../Boolean.json",
"description": "Whether or not the sensor will intersect the environment, e.g. terrain or models.",
"description": "Whether or not the sensor will be occluded by objects in the current view of the environment, e.g. visible terrain or models.",
"default": false
},
"showEnvironmentOcclusion": {
Expand Down Expand Up @@ -130,6 +130,26 @@
"$ref": "../../Boolean.json",
"description": "Whether or not a sensor intersecting the ellipsoid is drawn through the ellipsoid and potentially out to the other side.",
"default": false
},
"showViewshed": {
"$ref": "../../Boolean.json",
"description": "Whether or not the viewshed of the sensor will be drawn.",
"default": false
},
"viewshedVisibleColor": {
"$ref": "../../Color.json",
"description": "The color of the scene geometry that is visible to the sensor.",
"default": "lime, 50% transparent"
},
"viewshedOccludedColor": {
"$ref": "../../Color.json",
"description": "The color of the scene geometry that is not visible to the sensor.",
"default": "red, 50% transparent"
},
"viewshedResolution": {
"$ref": "../../Double.json",
"description": "The resolution in pixels of the viewshed.",
"default": 2048
}
}
}
22 changes: 21 additions & 1 deletion Schema/Extensions/AGI/CustomPatternSensor.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
},
"environmentConstraint": {
"$ref": "../../Boolean.json",
"description": "Whether or not the sensor will intersect the environment, e.g. terrain or models.",
"description": "Whether or not the sensor will be occluded by objects in the current view of the environment, e.g. visible terrain or models.",
"default": false
},
"showEnvironmentOcclusion": {
Expand Down Expand Up @@ -115,6 +115,26 @@
"$ref": "../../Boolean.json",
"description": "Whether or not a sensor intersecting the ellipsoid is drawn through the ellipsoid and potentially out to the other side.",
"default": false
},
"showViewshed": {
"$ref": "../../Boolean.json",
"description": "Whether or not the viewshed of the sensor will be drawn.",
"default": false
},
"viewshedVisibleColor": {
"$ref": "../../Color.json",
"description": "The color of the scene geometry that is visible to the sensor.",
"default": "lime, 50% transparent"
},
"viewshedOccludedColor": {
"$ref": "../../Color.json",
"description": "The color of the scene geometry that is not visible to the sensor.",
"default": "red, 50% transparent"
},
"viewshedResolution": {
"$ref": "../../Double.json",
"description": "The resolution in pixels of the viewshed.",
"default": 2048
}
}
}
22 changes: 21 additions & 1 deletion Schema/Extensions/AGI/RectangularSensor.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
},
"environmentConstraint": {
"$ref": "../../Boolean.json",
"description": "Whether or not the sensor will intersect the environment, e.g. terrain or models.",
"description": "Whether or not the sensor will be occluded by objects in the current view of the environment, e.g. visible terrain or models.",
"default": false
},
"showEnvironmentOcclusion": {
Expand Down Expand Up @@ -120,6 +120,26 @@
"$ref": "../../Boolean.json",
"description": "Whether or not a sensor intersecting the ellipsoid is drawn through the ellipsoid and potentially out to the other side.",
"default": false
},
"showViewshed": {
"$ref": "../../Boolean.json",
"description": "Whether or not the viewshed of the sensor will be drawn.",
"default": false
},
"viewshedVisibleColor": {
"$ref": "../../Color.json",
"description": "The color of the scene geometry that is visible to the sensor.",
"default": "lime, 50% transparent"
},
"viewshedOccludedColor": {
"$ref": "../../Color.json",
"description": "The color of the scene geometry that is not visible to the sensor.",
"default": "red, 50% transparent"
},
"viewshedResolution": {
"$ref": "../../Double.json",
"description": "The resolution in pixels of the viewshed.",
"default": 2048
}
}
}

0 comments on commit 72abd78

Please sign in to comment.