55 float m_devicePixelRatio;
61 LegendPass(
const std::shared_ptr<Vector2i>& backgroundSize);
85 std::shared_ptr<Legend>
add(
const std::string& title,
const std::shared_ptr<Image2D>& image);
86 void remove(
const std::shared_ptr<Legend>& legend);
88 std::shared_ptr<Legend>
hit(
const Vector2i& coord,
float devicePixelRatio);
93 float m_devicePixelRatio;
96 std::shared_ptr<LegendPass>
_legendPass(
const std::shared_ptr<Vector2i>& backgroundSize);
The Color3f class inherits from Color3, specilizing the template parameters to float for element type...
Definition color.h:105
void setTitleFontFamily(const std::string &family)
void setSpacing(int spacing)
void setBarWidth(int width)
void setTitleFontSize(int size)
std::string titleFontFamily()
std::string labelFontFamily()
void remove(const std::shared_ptr< Legend > &legend)
void setHeight(int height)
void setLabelFontColor(const Color3f &color)
int titleFontSize() const
int labelFontSize() const
Color3f labelFontColor() const
void setLabelFontFamily(const std::string &family)
LegendPass(const std::shared_ptr< Vector2i > &backgroundSize)
std::shared_ptr< Legend > hit(const Vector2i &coord, float devicePixelRatio)
Color3f titleFontColor() const
void setTitleFontColor(const Color3f &color)
std::shared_ptr< Legend > add(const std::string &title, const std::shared_ptr< Image2D > &image)
void setLabelFontSize(int size)
static int LabelFontSize
Definition legend.h:37
float maximum
Definition legend.h:51
static std::string LabelFontFamily
Definition legend.h:38
std::shared_ptr< Image2D > image
Definition legend.h:48
static int Height
Definition legend.h:31
float levels
Definition legend.h:52
float minimum
Definition legend.h:50
std::string title
Definition legend.h:49
static std::shared_ptr< Color3f > TitleFontColor
Definition legend.h:36
static int Width
Definition legend.h:30
static int Spacing
Definition legend.h:32
static std::string TitleFontFamily
Definition legend.h:35
static int BarWidth
Definition legend.h:33
static std::shared_ptr< Color3f > LabelFontColor
Definition legend.h:39
static int TitleFontSize
Definition legend.h:34
The Node class represents a node in a scene graph. A scene graph is a hierarchicaldata stucture used ...
Definition node.h:31
The Pass class represents a rendering pass within a graphics pipeline.
Definition pass.h:32
The class Vector2i inherits from the templated class of Vector2, and the template parameters are spec...
Definition vector.h:255
std::shared_ptr< LegendPass > _legendPass(const std::shared_ptr< Vector2i > &backgroundSize)