Class Lines¶
Defined in File point_viz.h
Class Documentation¶
-
class Lines¶
Manages the state of a single set of lines.
Public Functions
-
Lines(const mat4d &transform, const vec4f &rgba)¶
Constructor to initialize a set of lines.
- Parameters:
transform[in] 4x4 matrix representing a transform for the points
rgba[in] 4x1 float matrix representing lines color in RGBA format
-
void update_from(const Lines &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_points(size_t num_points, const float *points)¶
Set the 3D points defining the lines.
Each line is defined by 2 points, a start and an end.
- Parameters:
num_points[in] number of points
points[in] num_points*3 array of doubles representing the xyz of each point
-
void set_transform(const mat4d &pose)¶
Set the transform for the lines.
- Parameters:
pose[in] new pose for the lines
Friends
- friend class impl::GLLines
-
Lines(const mat4d &transform, const vec4f &rgba)¶