Class Selectable

Inheritance Relationships

Derived Types

Class Documentation

class Selectable

Base class for selectable viz elements.

Subclassed by ouster::sdk::viz::Cloud, ouster::sdk::viz::Cuboid

Public Functions

inline void set_on_select(std::function<void(const std::vector<uint32_t>&)> callback)

Set the selection callback.

Argument to the callback is a list of indexes selected.

Parameters:

callback[in] function to call when points are selected

inline void clear_on_select()

Clear the selection callback.

inline bool selectable()

Return if this object has an active selection callback.

Returns:

true if there is a selection callback