fast::BoundingBoxRenderer class

Renders a set of bounding boxes.

Base classes

class LabelColorRenderer

Constructors, destructors, conversion operators

~BoundingBoxRenderer() virtual

Public functions

auto create(float borderSize, LabelColors labelColors) -> std::shared_ptr<BoundingBoxRenderer>
Create instance.
auto getBorderSize() const -> float
auto attributesToString() -> std::string override
Convert attributes to string.
void loadAttributes() override

Protected functions

void draw(Matrix4f perspectiveMatrix, Matrix4f viewingMatrix, float zNear, float zFar, bool mode2D, int viewWidth, int viewHeight) virtual

Protected variables

std::unordered_map<uint, float> mInputWidths
std::unordered_map<uint, bool> mInputDrawOnTop
std::unordered_map<uint, uint> mVAO
float m_borderSize

Function documentation

std::shared_ptr<BoundingBoxRenderer> fast::BoundingBoxRenderer::create(float borderSize, LabelColors labelColors)

Create instance.

Parameters
borderSize Size of bounding box lines. If zero or negative value, the 10% of the minimum size of BoundingBoxSet is used instead.
labelColors Color of each label/class
Returns instance