-
Notifications
You must be signed in to change notification settings - Fork 531
Rename exploratory samples #1771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
7fd5e18
Rename analysis and viewshed samples to include 'Exploratory' prefix
praveenaak 5f3ce84
Update analysis sample readmes with exploratory terminology and notes
praveenaak 10cfe32
sample sync
praveenaak fd3d931
readme updates
praveenaak c494358
Update src/MAUI/Maui.Samples/Samples/Analysis/ShowExploratoryViewshed…
praveenaak 8db6177
Update src/MAUI/Maui.Samples/Samples/Analysis/ShowExploratoryLineOfSi…
praveenaak 0b20fe9
update README
praveenaak ede7a82
update README wording
praveenaak 914c323
README wording update
praveenaak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
30 changes: 0 additions & 30 deletions
30
src/MAUI/Maui.Samples/Samples/Analysis/LineOfSightLocation/readme.md
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...ightGeoElement/LineOfSightGeoElement.xaml → ...oratoryLineOfSightBetweenGeoelements.xaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
2 changes: 1 addition & 1 deletion
2
...eOfSightLocation/LineOfSightLocation.xaml → ...wExploratoryLineOfSightBetweenPoints.xaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...Maui.Samples/Samples/Analysis/ShowExploratoryLineOfSightBetweenPoints/readme.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # Show exploratory line of sight between points | ||
|
|
||
| Perform an exploratory line of sight analysis between two points in real time. | ||
|
|
||
|  | ||
|
|
||
| ## Use case | ||
|
|
||
| An exploratory line of sight analysis can be used to assess whether a view is obstructed between an observer and a target. Obstructing features could either be natural, like topography, or man-made, like buildings. Consider an events planning company wanting to commemorate a national event by lighting sequential beacons across hill summits or roof tops. To guarantee a successful event, ensuring an unobstructed line of sight between neighboring beacons would allow each beacon to be activated as intended. | ||
|
|
||
| Note: This analysis is a form of "exploratory analysis", which means the results are calculated on the current scale of the data, and the results are generated very quickly but not persisted. If persisted analysis performed at the full resolution of the data is required, consider using a `LineOfSightFunction` to perform a line of sight calculation instead. | ||
|
|
||
| ## How to use the sample | ||
|
|
||
| The sample loads with a preset observer and target location, linked by a colored line. A red segment on the line means the view between observer and target is obstructed, whereas green means the view is unobstructed. | ||
|
|
||
| Tap to place the starting (observer) point for the line. Tap again to place the end (target) point. | ||
|
|
||
| ## How it works | ||
|
|
||
| 1. Create an `AnalysisOverlay` and add it to the scene view. | ||
| 2. Create an `ExploratoryLocationLineOfSight` with initial observer and target locations and add it to the analysis overlay. | ||
| 3. Listen for taps on the scene. | ||
| 4. Update the target and observer positions by updating `ExploratoryLocationLineOfSight.ObserverLocation` and `ExploratoryLocationLineOfSight.TargetLocation`. | ||
|
|
||
| ## Relevant API | ||
|
|
||
| * AnalysisOverlay | ||
| * ExploratoryLocationLineOfSight | ||
| * SceneView | ||
|
|
||
| ## Tags | ||
|
|
||
| 3D, exploratory line of sight, visibility, visibility analysis |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
2 changes: 1 addition & 1 deletion
2
...alysis/ViewshedCamera/ViewshedCamera.xaml → ...ExploratoryViewshedFromCameraInScene.xaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...aui.Samples/Samples/Analysis/ShowExploratoryViewshedFromCameraInScene/readme.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # Show exploratory viewshed from camera in scene | ||
|
|
||
| Analyze the exploratory viewshed for a camera showing the visible and obstructed areas from an observer's vantage point. | ||
|
|
||
|  | ||
|
|
||
| ## Use case | ||
|
|
||
| An exploratory viewshed analysis is a type of visual analysis you can perform at the current rendered resolution of a scene. The exploratory viewshed aims to answer the question 'What can I see from a given location?'. The output is an overlay with two different colors - one representing the visible areas (green) and the other representing the obstructed areas (red). | ||
|
|
||
| Note: This analysis is a form of "exploratory analysis", which means the results are calculated on the current scale of the data, and the results are generated very quickly but not persisted. If persisted analysis performed at the full resolution of the data is required, consider using a `ViewshedFunction` to perform a viewshed calculation instead. | ||
|
|
||
| ## How to use the sample | ||
|
|
||
| The sample will start with an exploratory viewshed created from the initial camera location, so only the visible (green) portion of the exploratory viewshed will be visible. Move around the scene to see the obstructed (red) portions. Tap the 'Update from Camera' button to update the exploratory viewshed to the current camera position. | ||
|
|
||
| ## How it works | ||
|
|
||
| 1. Create an `ExploratoryLocationViewshed`, passing in the initial `Camera` and a min/max distance. | ||
| 2. Update the viewshed using `ExploratoryLocationViewshed.UpdateFromCamera()`. | ||
|
|
||
| ## Relevant API | ||
|
|
||
| * AnalysisOverlay | ||
| * ArcGISScene | ||
| * ArcGISTiledElevationSource | ||
| * Camera | ||
| * ExploratoryLocationViewshed | ||
| * IntegratedMeshLayer | ||
| * SceneView | ||
|
|
||
| ## About the data | ||
|
|
||
| The scene shows an integrated mesh layer of [Girona, Spain](https://www.arcgis.com/home/item.html?id=5c55d0d1f21e489193cdeff11460a28c) with the [World Elevation source image service](https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer) both hosted on ArcGIS Online. | ||
|
|
||
| ## Tags | ||
|
|
||
| 3D, exploratory viewshed, integrated mesh, scene, visibility analysis |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
2 changes: 1 addition & 1 deletion
2
...iewshedGeoElement/ViewshedGeoElement.xaml → ...oratoryViewshedFromGeoelementInScene.xaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.