Class ObjectOverlay

Class Documentation

class ObjectOverlay

Manages the state of an object overlay.

Public Functions

ObjectOverlay()

Constructor.

void update_from(const ObjectOverlay &other)

Updates this objects’s state with the state of other, accounting for prior changes to this objects’s state.

Parameters:

other[in] the object to update the state from.

void clear()

Clear dirty flags.

Resets any changes since the last call to PointViz::update()

void dirty()

Set all dirty flags.

Re-sets everything so the object is always redrawn.

void set_cuboids(const std::vector<Cuboid> &cuboids)

Set the cuboids to be displayed.

Parameters:

cuboids[in] vector of Cuboid objects to display

void set_sensor_info(const ouster::sdk::core::SensorInfo &info)

Set the sensor information for projection.

Parameters:

info[in] sensor information

void set_view_matrix(const mat4d &mat)

Set the view matrix for panorama projection (world-to-sensor).

Parameters:

mat[in] 4x4 row-major matrix

void set_position(float x_min, float x_max, float y_min, float y_max)

Set the display position of the overlay.

Parameters:
  • x_min[in] min x

  • x_max[in] max x

  • y_min[in] min y

  • y_max[in] max y

void set_hshift(float hshift)

Set horizontal shift in normalized viewport screen width coordinate.

Parameters:

hshift[in] shift in normalized by width coordinates from 0 at the center [-1.0..1.0]

Friends

friend class impl::GLObjectOverlay