![]() |
ATLAS Offline Software
|
Helper struct to administer the markers & colors that are added to the legend. More...
Public Types | |
| using | LegendEntry_t = std::unordered_map< int, PrimitivePtr_t > |
Public Member Functions | |
| PlotLegend (const double xLow, const double yLow, const double xHigh, const double yHigh) | |
| Constructor defining the Legned placement. More... | |
| void | addColor (const int color, const std::string &label) |
| Add new color legend entry. More... | |
| void | addMarker (const int marker, const std::string &label) |
| Add new Marker style to the legend entry. More... | |
| void | fillPrimitives (Canvas_t &canvas) |
| Add the primitives of the legend to the Canvas. More... | |
Public Attributes | |
| std::unique_ptr< TLegend > | legend {} |
| LegendEntry_t | markers {} |
| LegendEntry_t | colors {} |
Helper struct to administer the markers & colors that are added to the legend.
Definition at line 67 of file TrackVisualizationTool.h.
| using MuonValR4::TrackVisualizationTool::PlotLegend::LegendEntry_t = std::unordered_map<int, PrimitivePtr_t> |
Definition at line 87 of file TrackVisualizationTool.h.
|
inline |
Constructor defining the Legned placement.
| xLow | Low x-end of the Legend (relative coords.) |
| yLow | Low y-end of the Legend (relative coords.) |
| xHigh | High x-end of the Legend (relative coords.) |
| yHigh | High y-end of the Legend (relative coords.) |
Definition at line 73 of file TrackVisualizationTool.h.
| void MuonValR4::TrackVisualizationTool::PlotLegend::addColor | ( | const int | color, |
| const std::string & | label | ||
| ) |
Add new color legend entry.
| color | TColor code of the color to add |
| label | Text to be dispayed |
Definition at line 69 of file TrackVisualizationTool.cxx.
| void MuonValR4::TrackVisualizationTool::PlotLegend::addMarker | ( | const int | marker, |
| const std::string & | label | ||
| ) |
Add new Marker style to the legend entry.
| marker | TMarkerStyle code to add |
| label | Text to be dispayed |
Definition at line 77 of file TrackVisualizationTool.cxx.
| void MuonValR4::TrackVisualizationTool::PlotLegend::fillPrimitives | ( | Canvas_t & | canvas | ) |
Add the primitives of the legend to the Canvas.
Definition at line 85 of file TrackVisualizationTool.cxx.
| LegendEntry_t MuonValR4::TrackVisualizationTool::PlotLegend::colors {} |
Definition at line 89 of file TrackVisualizationTool.h.
| std::unique_ptr<TLegend> MuonValR4::TrackVisualizationTool::PlotLegend::legend {} |
Definition at line 86 of file TrackVisualizationTool.h.
| LegendEntry_t MuonValR4::TrackVisualizationTool::PlotLegend::markers {} |
Definition at line 88 of file TrackVisualizationTool.h.
1.8.18