Class LinesProxy

Inheritance Relationships

Base Type

Class Documentation

class LinesProxy : public mrpt::opengl::LinesProxyBase

GPU-side proxy for rendering lines and wireframes.

This proxy handles rendering of any CVisualObject that uses the WIREFRAME shader, such as:

  • CSetOfLines

  • CSimpleLine

  • CGridPlaneXY / CGridPlaneXZ

  • CAxis

  • Wireframe rendering of meshes

  • Any object derived from VisualObjectParams_Lines

The proxy manages:

  • Vertex buffer (line endpoints as pairs)

  • Color buffer (per-vertex RGBA colors)

  • Line rendering parameters (width, anti-aliasing)

  • VAO for efficient attribute binding

Line rendering features:

  • Line width in pixels: widths larger than one pixel are drawn as screen-aligned quads (see LinesProxyBase)

  • Per-vertex colors

  • Optional anti-aliasing of thick lines (edges faded in the fragment shader)

  • Alpha blending for transparency

Typical data flow:

  1. compile(): Upload initial line vertices and colors to GPU

  2. updateBuffers(): Re-upload when lines change

  3. render(): Draw lines every frame

See also

LinesProxyBase, mrpt::viz::VisualObjectParams_Lines

Public Functions

LinesProxy() = default
inline virtual const char *typeName() const override

Returns a human-readable type name for this proxy. Used for debugging and logging.