42 LegendNode(
const std::shared_ptr<Renderer>& renderer,
const std::shared_ptr<Vector2i>& backgroundSize,
const std::shared_ptr<Vector2i>& windowSize,
const std::string& fontFile);
48 std::shared_ptr<Renderer> m_renderer;
49 std::shared_ptr<Vector2i> m_backgroundSize;
50 std::shared_ptr<Vector2i> m_windowSize;
51 std::string m_fontFile;
57 Legend(
const std::shared_ptr<Renderer>& renderer,
const std::shared_ptr<Vector2i>& backgroundSize,
const std::shared_ptr<Vector2i>& windowSize,
const std::string& fontFile);
60 std::shared_ptr<LegendNode>
add(
const std::string& title,
const std::shared_ptr<Image2D>& image);
64 std::shared_ptr<LegendNode>
hit(
int x,
int y);
70 std::shared_ptr<Renderer> m_renderer;
71 std::shared_ptr<Vector2i> m_backgroundSize;
72 std::shared_ptr<Vector2i> m_windowSize;
73 std::string m_fontFile;
76 std::shared_ptr<Legend>
_legend(
const std::shared_ptr<Renderer>& renderer,
const std::shared_ptr<Vector2i>& backgroundSize,
const std::shared_ptr<Vector2i>& windowSize,
const std::string& fontFile);
static int Height
Definition legend.h:31
static int Width
Definition legend.h:30
float maximum
Definition legend.h:38
static int BarWidth
Definition legend.h:33
static int TitleHeight
Definition legend.h:34
LegendNode(const std::shared_ptr< Renderer > &renderer, const std::shared_ptr< Vector2i > &backgroundSize, const std::shared_ptr< Vector2i > &windowSize, const std::string &fontFile)
static int Padding
Definition legend.h:32
float levels
Definition legend.h:39
std::shared_ptr< Image2D > image
Definition legend.h:35
float minimum
Definition legend.h:37
std::string title
Definition legend.h:36
std::shared_ptr< LegendNode > add(const std::string &title, const std::shared_ptr< Image2D > &image)
void remove(const std::shared_ptr< LegendNode > &node)
std::shared_ptr< LegendNode > hit(int x, int y)
Legend(const std::shared_ptr< Renderer > &renderer, const std::shared_ptr< Vector2i > &backgroundSize, const std::shared_ptr< Vector2i > &windowSize, const std::string &fontFile)
The Node class represents a node in a scene graph. A scene graph is a hierarchicaldata stucture used ...
Definition node.h:35
The Pass class represents a rendering pass within a graphics pipeline.
Definition pass.h:34
std::shared_ptr< Node > node
This member holds a shared pointer to a Node object which represents the rendering objects of the cur...
Definition pass.h:40
std::shared_ptr< Legend > _legend(const std::shared_ptr< Renderer > &renderer, const std::shared_ptr< Vector2i > &backgroundSize, const std::shared_ptr< Vector2i > &windowSize, const std::string &fontFile)