FootprintSelectionVisualizer

  • FootprintSelectionVisualizer provides a visual cue, typically a footprint, to indicate that a BaseTransformableNode is selected in a Sceneform scene.

  • It uses a ModelRenderable to represent the footprint, which can be customized using setFootprintRenderable.

  • applySelectionVisual and removeSelectionVisual methods control the display of the footprint on the selected node.

  • This class helps users visually identify which node is currently selected for interaction or manipulation.

public class FootprintSelectionVisualizer

Visualizes that a BaseTransformableNode is selected by rendering a footprint for the selected node.

Public Constructors

Public Methods

void
applySelectionVisual(BaseTransformableNode node)
Adds a visual that indicates a BaseTransformableNode is currently selected.
ModelRenderable
void
removeSelectionVisual(BaseTransformableNode node)
Removes the visual that was indicating a BaseTransformableNode is currently selected.
void

Inherited Methods

Public Constructors

public FootprintSelectionVisualizer ()

Public Methods

public void applySelectionVisual (BaseTransformableNode node)

Adds a visual that indicates a BaseTransformableNode is currently selected.

Parameters
node

public ModelRenderable getFootprintRenderable ()

public void removeSelectionVisual (BaseTransformableNode node)

Removes the visual that was indicating a BaseTransformableNode is currently selected.

Parameters
node

public void setFootprintRenderable (ModelRenderable renderable)

Parameters
renderable