Class Cuboid

Class Documentation

class Cuboid

Manages the state of a single cuboid.

Public Functions

Cuboid(const mat4d &transform, const vec4f &rgba)

Constructor to initialize a cuboid.

Parameters:
  • transform[in] – 4x4 matrix representing a transform defining the cuboid

  • rgba[in] – 4x1 float matrix representing cuboid color in RGBA format

void update_from(const Cuboid &other)

Updates this cuboid’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_transform(const mat4d &pose)

Set the transform defining the cuboid.

Applied to a unit cube centered at the origin.

Parameters:

pose[in]

void set_rgba(const vec4f &rgba)

Set the color of the cuboid.

Parameters:

rgba[in]

Friends

friend class impl::GLCuboid