|
CbmRoot
|
#include <CbmQaReportFigure.h>
Classes | |
| struct | Plot |
| A structure to handle the plot details. More... | |
Public Member Functions | |
| Figure (std::string_view label, std::string_view title="") | |
| Constructor. | |
| virtual | ~Figure ()=default |
| Destructor. | |
| void | AddPlot (std::string_view path, std::string_view caption="", std::string_view label="") |
| Add plot. | |
| std::string | GetBody (const Engine &engine) const override |
| Gets body of the element. | |
| const std::string & | GetCaption () const |
| Gets caption. | |
| const std::vector< size_t > & | GetPlotGrid () const |
| Gets plot grid. | |
| const std::vector< Plot > & | GetPlots () const |
| Gets plot vector. | |
| void | SetCaption (std::string_view caption) |
| Sets caption. | |
| void | SetPlotGrid (size_t nX, size_t nY) |
| Sets plot grid. | |
| void | SetPlotGrid (const std::vector< size_t > &grid) |
| Set plot grid. | |
| const std::string & | GetLabel () const |
| Gets label. | |
| const std::string & | GetTitle () const |
| Gets name. | |
| void | SetLabel (std::string_view label) |
| Sets label. | |
| void | SetTitle (std::string_view title) |
| Sets name. | |
| const Element * | GetMother () const |
| Gets mother element. | |
Private Member Functions | |
| void | AssignMother (const Element *pMother) |
Private Attributes | |
| std::vector< Plot > | fvsPlots {} |
| Vector of plots (subfigures) | |
| std::vector< size_t > | fvGrid {} |
| Plot grid. | |
| std::string | fsCaption {} |
| Figure caption. | |
| const Element * | fpMother = nullptr |
| Mother element. | |
| std::string | fsLabel = "" |
| Label for referencing. | |
| std::string | fsTitle = "" |
| Title of the element. | |
Figure in the report.
Definition at line 19 of file CbmQaReportFigure.h.
|
inline |
Constructor.
| label | Label of the element |
| title | Title |
Definition at line 42 of file CbmQaReportFigure.h.
References cbm::qa::report::Element::Element().
|
virtualdefault |
Destructor.
|
inline |
Add plot.
| path | to the plot |
| caption | caption of the plot |
| label | label of the plot |
Definition at line 54 of file CbmQaReportFigure.h.
References fvsPlots.
|
inlineprivateinherited |
Definition at line 60 of file CbmQaReportElement.h.
|
inlineoverridevirtual |
Gets body of the element.
Implements cbm::qa::report::Element.
Definition at line 61 of file CbmQaReportFigure.h.
References cbm::qa::report::Engine::FigureBody().
|
inline |
Gets caption.
Definition at line 64 of file CbmQaReportFigure.h.
References fsCaption.
Referenced by cbm::qa::report::BeamerEngine::FigureBody(), cbm::qa::report::HtmlEngine::FigureBody(), and cbm::qa::report::LatexEngine::FigureBody().
|
inlineinherited |
Gets label.
Definition at line 45 of file CbmQaReportElement.h.
References fsLabel.
Referenced by cbm::qa::report::BeamerEngine::FigureBody(), cbm::qa::report::HtmlEngine::FigureBody(), cbm::qa::report::LatexEngine::FigureBody(), cbm::qa::report::Table::Set(), cbm::qa::report::BeamerEngine::TableBody(), and cbm::qa::report::LatexEngine::TableBody().
|
inlineinherited |
Gets mother element.
Definition at line 57 of file CbmQaReportElement.h.
References Element(), and fpMother.
Referenced by cbm::qa::report::BeamerEngine::FigureBody(), and cbm::qa::report::BeamerEngine::TableBody().
|
inline |
Gets plot grid.
Definition at line 67 of file CbmQaReportFigure.h.
References fvGrid.
Referenced by cbm::qa::report::BeamerEngine::FigureBody(), and cbm::qa::report::LatexEngine::FigureBody().
|
inline |
Gets plot vector.
Definition at line 70 of file CbmQaReportFigure.h.
References fvsPlots.
Referenced by cbm::qa::report::BeamerEngine::FigureBody(), cbm::qa::report::HtmlEngine::FigureBody(), and cbm::qa::report::LatexEngine::FigureBody().
|
inlineinherited |
Gets name.
Definition at line 48 of file CbmQaReportElement.h.
References fsTitle.
Referenced by cbm::qa::report::BeamerEngine::FigureBody(), cbm::qa::report::BeamerEngine::SectionBody(), cbm::qa::report::HtmlEngine::SectionBody(), cbm::qa::report::LatexEngine::SectionBody(), and cbm::qa::report::BeamerEngine::TableBody().
|
inline |
|
inlineinherited |
|
inline |
Set plot grid.
| grid | Grid {X1, X2, ..., Xn}, where Xi – number of plots in the ith line |
Definition at line 86 of file CbmQaReportFigure.h.
References fvGrid.
|
inline |
Sets plot grid.
| nX | Number of plots along the horizontal direction |
| nY | Number of plots along the vertical direction |
Definition at line 78 of file CbmQaReportFigure.h.
References fvGrid.
|
inlineinherited |
|
privateinherited |
Mother element.
Definition at line 63 of file CbmQaReportElement.h.
Referenced by AssignMother(), and GetMother().
|
private |
Figure caption.
Definition at line 91 of file CbmQaReportFigure.h.
Referenced by GetCaption(), and SetCaption().
|
privateinherited |
Label for referencing.
Definition at line 64 of file CbmQaReportElement.h.
Referenced by Element(), GetLabel(), and SetLabel().
|
privateinherited |
Title of the element.
Definition at line 65 of file CbmQaReportElement.h.
Referenced by Element(), GetTitle(), and SetTitle().
|
private |
Plot grid.
Definition at line 90 of file CbmQaReportFigure.h.
Referenced by GetPlotGrid(), SetPlotGrid(), and SetPlotGrid().
|
private |
Vector of plots (subfigures)
Definition at line 89 of file CbmQaReportFigure.h.
Referenced by AddPlot(), and GetPlots().