12 r[0] = std::min(
r[0], v);
13 r[1] = std::max(
r[1], v);
22 const std::size_t evtNumber):
34 return mid + (
r ==
xLow ? -1. : 1.) * std::max(deltaX, deltaY * (1. -2.*
m_quadCan));
38 return mid + (
r ==
yLow ? -1. : 1.) * std::max(deltaY, deltaX * (1. -2.*
m_quadCan));
70 const std::string&
zTitle){
std::atomic< bool > m_isTrashed
std::array< double, 2 > Range_t
virtual double corner(const AxisRanges r) const override final
Retrieves a corner coordinate of the drawn canvas.
std::size_t event() const
Event number in which the canvas has been created.
IRootVisualizationService::PrimitivePtr_t PrimitivePtr_t
const std::string & zTitle() const
Returns the title of the z-axis.
DrawCanvasObject(const std::string &canvasName, const std::size_t evtNumber)
virtual void add(PrimitivePtr_t &&drawMe, const std::string &drawOpt="") override final
Add a TObject to the ICanvasObject for later drawing onto a TCanvas.
const std::string & name() const
Name of the canvas.
virtual void setRangeScale(const double s, bool quadCan) override final
To ensure that the drawn objects are not cut by the axis limits, a flat scale-factor on the drawn axi...
bool trashed() const
Returns whether the canvas has been trashed.
const std::string & yTitle() const
Returns the title of the y-axis.
std::vector< std::pair< PrimitivePtr_t, std::string > > PrimitiveVec_t
const PrimitiveVec_t & primitives() const
const std::string & xTitle() const
Returns the title of the x-axis.
PrimitiveVec_t m_primitives
virtual void setAxisTitles(const std::string &xTitle, const std::string &yTitle, const std::string &zTitle) override final
Define the titles of the Canvas axes.
static constexpr double s_dblMax
virtual void trash() override final
If no object has been drawn mark the plot as junk.
virtual void expandPad(const double x, const double y) override final
Expands the axes of the pad such that the coordinates are guaranteed to appear at least at the Canvas...
void assignIfNotEmpty(const std::string &inStr, std::string &outStr)
DrawCanvasObject::Range_t Range_t
DrawCanvasObject::PrimitiveVec_t PrimitiveVec_t
DrawCanvasObject::PrimitivePtr_t PrimitivePtr_t
constexpr void expand(const double v, Range_t &r)
AxisRanges
Enum to select the corner coordinates shown by the plot.