- Sceneform SDK for Android
was open sourced and archived ( github.com/google-ar/sceneform-android-sdk
) with version 1.16.0.
- This site ( developers.google.com/sceneform
) serves as the documentation archive for the previous version, Sceneform SDK for Android
1.15.0.
- Do not use version 1.17.0 of the Sceneform Maven artifacts
.
- The 1.17.1 Maven artifacts can be used. Other than the version, however, the 1.17.1 artifacts are identical to the 1.15.0 artifacts.
SelectionVisualizer
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
Public Methods
abstract
void |
|
abstract
void |
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eSelectionVisualizer\u003c/code\u003e is an interface used to provide visual feedback when a \u003ccode\u003eBaseTransformableNode\u003c/code\u003e is selected in Sceneform.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two main methods: \u003ccode\u003eapplySelectionVisual\u003c/code\u003e to add a visual indicator when a node is selected, and \u003ccode\u003eremoveSelectionVisual\u003c/code\u003e to remove the indicator when the node is no longer selected.\u003c/p\u003e\n"],["\u003cp\u003eA known subclass, \u003ccode\u003eFootprintSelectionVisualizer\u003c/code\u003e, provides a concrete implementation by rendering a footprint beneath the selected node.\u003c/p\u003e\n"]]],["The `SelectionVisualizer` interface manages the visual representation of a selected `BaseTransformableNode`. It provides two key actions: `applySelectionVisual` and `removeSelectionVisual`. `applySelectionVisual` adds a visual cue to signify that a given `BaseTransformableNode` is selected. Conversely, `removeSelectionVisual` removes the selection indicator from a node. `FootprintSelectionVisualizer`, a subclass, specifically renders a footprint to indicate node selection.\n"],null,["# SelectionVisualizer\n\npublic interface **SelectionVisualizer** \n\n|---|---|---|\n| Known Indirect Subclasses [FootprintSelectionVisualizer](/sceneform/reference/com/google/ar/sceneform/ux/FootprintSelectionVisualizer) |--------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [FootprintSelectionVisualizer](/sceneform/reference/com/google/ar/sceneform/ux/FootprintSelectionVisualizer) | Visualizes that a [BaseTransformableNode](/sceneform/reference/com/google/ar/sceneform/ux/BaseTransformableNode) is selected by rendering a footprint for the selected node. | |||\n\nInterface to visual when a [BaseTransformableNode](/sceneform/reference/com/google/ar/sceneform/ux/BaseTransformableNode) is selected. \n\n### Public Methods\n\n|---------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract void | [applySelectionVisual](/sceneform/reference/com/google/ar/sceneform/ux/SelectionVisualizer#applySelectionVisual(com.google.ar.sceneform.ux.BaseTransformableNode))([BaseTransformableNode](/sceneform/reference/com/google/ar/sceneform/ux/BaseTransformableNode) node) Adds a visual that indicates a [BaseTransformableNode](/sceneform/reference/com/google/ar/sceneform/ux/BaseTransformableNode) is currently selected. |\n| abstract void | [removeSelectionVisual](/sceneform/reference/com/google/ar/sceneform/ux/SelectionVisualizer#removeSelectionVisual(com.google.ar.sceneform.ux.BaseTransformableNode))([BaseTransformableNode](/sceneform/reference/com/google/ar/sceneform/ux/BaseTransformableNode) node) Removes the visual that was indicating a [BaseTransformableNode](/sceneform/reference/com/google/ar/sceneform/ux/BaseTransformableNode) is currently selected. |\n\nPublic Methods\n--------------\n\n#### public abstract void\n**applySelectionVisual**\n([BaseTransformableNode](/sceneform/reference/com/google/ar/sceneform/ux/BaseTransformableNode) node)\n\nAdds a visual that indicates a [BaseTransformableNode](/sceneform/reference/com/google/ar/sceneform/ux/BaseTransformableNode) is currently selected. \n\n##### Parameters\n\n| node | |\n|------|---|\n\n#### public abstract void\n**removeSelectionVisual**\n([BaseTransformableNode](/sceneform/reference/com/google/ar/sceneform/ux/BaseTransformableNode) node)\n\nRemoves the visual that was indicating a [BaseTransformableNode](/sceneform/reference/com/google/ar/sceneform/ux/BaseTransformableNode) is currently selected. \n\n##### Parameters\n\n| node | |\n|------|---|"]]