Class LineVis

Class Documentation

class LineVis

Interface for managing a LineConfig

Public Functions

LineVis(std::shared_ptr<LineConfig> l, float r, float g, float b, float a)

Create a new interface for managing a LineConfig

Parameters:
  • l – The line config being constructed

  • r – Initial color’s red component

  • g – Initial color’s green component

  • b – Initial color’s blue component

  • a – Initial color’s alpha component

void setColor(float r, float g, float b, float a = 1.0f)

Update the color for following vertices

Parameters:
  • rColor’s red component

  • gColor’s green component

  • bColor’s blue component

  • aColor’s alpha component

void addVertex(float x, float y, float z = 0.0f)

Adds a new vertex to the drawing

Note

Y is considered the vertical axis

Parameters:
  • x – Vertex’s x coord

  • y – Vertex’s y coord

  • z – Vertex’s z coord