11#ifdef FH_VISUALIZATION
13# ifndef CValuesDisplayBase_H
14# define CValuesDisplayBase_H
16#include "CTextRenderer.h"
24 std::string description;
29 DisplayValue(
int size, std::string description =
"Output value:", std::string format =
"{:4.2}", std::string unit =
"",
double multiplier = 1.0)
31 this->description = description;
32 this->format = format;
34 this->multiplier = multiplier;
41 double x,
double y,
double width,
double height,
42 Ogre::ColourValue color = Ogre::ColourValue(1.0, 1.0, 1.0, 1.0),
44 std::string fontname =
"cour",
45 std::string arrayBegin =
"[",
46 std::string arrayEnd =
"]" );
51 void UpdateVals(std::vector<double> vals);
52 void UpdateVals(
const double*
const vals);
53 Ogre::OverlayElement* GetOverlayElement();
54 void SetMaterialName(std::string material);
57 CTextRenderer* m_textRenderer;
64 Ogre::ColourValue m_color;
67 std::string m_fontname;
69 Ogre::OverlayElement* m_overlayElement;
70 std::vector<size_t> m_values_element;
71 std::vector<double> m_multipliers;
72 std::vector<std::string> m_formats;
Class for displaying a range of values in Ogre.