Vis2 Line Renderer
Linedata-Renderer with transparancy
helper_functions.cpp File Reference
#include "helper_functions.h"
#include <imgui.h>
#include <sstream>
#include <iomanip>

Functions

void activateImGuiStyle (bool darkMode, float alpha)
 Needs to be called after the setup of the dear gui and changes the color theme. WARNING: lightMode is buggy! More...
 
unsigned int getDigitCountForUInt (unsigned int src)
 Returns the count of digits of the given unsined int. Example: getDigitCountForUInt(21349) = 5 More...
 

Function Documentation

◆ activateImGuiStyle()

void activateImGuiStyle ( bool  darkMode = true,
float  alpha = 0.2F 
)

Needs to be called after the setup of the dear gui and changes the color theme. WARNING: lightMode is buggy!

Parameters
darkModedark/light mode flag
alphaThe overall alpha level of the theme

◆ getDigitCountForUInt()

unsigned int getDigitCountForUInt ( unsigned int  src)

Returns the count of digits of the given unsined int. Example: getDigitCountForUInt(21349) = 5