inlib
1.2.0
|
Public Member Functions | |
virtual void * | cast (const std::string &a_class) const |
virtual plottable * | copy () const |
virtual bool | is_valid () const |
virtual std::string | name () |
virtual void | set_name (const std::string &a_s) |
virtual std::string | title () |
virtual std::string | legend () |
virtual void | set_legend (const std::string &a_s) |
virtual std::string | infos (const std::string &a_opts) |
virtual void | bins_Sw_range (float &a_mn, float &a_mx) const |
virtual unsigned int | x_bins () const |
virtual unsigned int | y_bins () const |
virtual float | x_axis_min () const |
virtual float | x_axis_max () const |
virtual float | y_axis_min () const |
virtual float | y_axis_max () const |
virtual float | bin_lower_edge_x (int aI) const |
virtual float | bin_upper_edge_x (int aI) const |
virtual float | bin_lower_edge_y (int aI) const |
virtual float | bin_upper_edge_y (int aI) const |
virtual unsigned int | bin_entries (int aI, int aJ) const |
virtual float | bin_Sw (int aI, int aJ) const |
virtual float | bin_error (int aI, int aJ) const |
h2d2plot (const inlib::histo::h2d &a_data) | |
virtual | ~h2d2plot () |
Static Public Member Functions | |
static const std::string & | s_class () |
Protected Member Functions | |
h2d2plot (const h2d2plot &a_from) |
inlib::sg::h2d2plot::h2d2plot | ( | const inlib::histo::h2d & | a_data | ) | [inline] |
virtual inlib::sg::h2d2plot::~h2d2plot | ( | ) | [inline, virtual] |
inlib::sg::h2d2plot::h2d2plot | ( | const h2d2plot & | a_from | ) | [inline, protected] |
virtual unsigned int inlib::sg::h2d2plot::bin_entries | ( | int | aI, |
int | aJ | ||
) | const [inline, virtual] |
Implements inlib::sg::bins2D.
Definition at line 277 of file h2plot.
{ return m_data.bin_entries(aI,aJ); }
virtual float inlib::sg::h2d2plot::bin_error | ( | int | aI, |
int | aJ | ||
) | const [inline, virtual] |
Implements inlib::sg::bins2D.
Definition at line 285 of file h2plot.
{ return (float)m_data.bin_error(aI,aJ); }
virtual float inlib::sg::h2d2plot::bin_lower_edge_x | ( | int | aI | ) | const [inline, virtual] |
Implements inlib::sg::bins2D.
Definition at line 264 of file h2plot.
{ return (float)m_data.axis_x().bin_lower_edge(aI); }
virtual float inlib::sg::h2d2plot::bin_lower_edge_y | ( | int | aI | ) | const [inline, virtual] |
Implements inlib::sg::bins2D.
Definition at line 270 of file h2plot.
{ return (float)m_data.axis_y().bin_lower_edge(aI); }
virtual float inlib::sg::h2d2plot::bin_Sw | ( | int | aI, |
int | aJ | ||
) | const [inline, virtual] |
Implements inlib::sg::bins2D.
Definition at line 281 of file h2plot.
{ return (float)m_data.bin_height(aI,aJ); }
virtual float inlib::sg::h2d2plot::bin_upper_edge_x | ( | int | aI | ) | const [inline, virtual] |
Implements inlib::sg::bins2D.
Definition at line 267 of file h2plot.
{ return (float)m_data.axis_x().bin_upper_edge(aI); }
virtual float inlib::sg::h2d2plot::bin_upper_edge_y | ( | int | aI | ) | const [inline, virtual] |
Implements inlib::sg::bins2D.
Definition at line 273 of file h2plot.
{ return (float)m_data.axis_y().bin_upper_edge(aI); }
virtual void inlib::sg::h2d2plot::bins_Sw_range | ( | float & | a_mn, |
float & | a_mx | ||
) | const [inline, virtual] |
Implements inlib::sg::bins2D.
Definition at line 253 of file h2plot.
{ a_mn = (float)m_data.min_bin_height(); a_mx = (float)m_data.max_bin_height(); }
virtual void* inlib::sg::h2d2plot::cast | ( | const std::string & | a_class | ) | const [inline, virtual] |
Reimplemented from inlib::sg::bins2D.
Reimplemented in inlib::sg::h2d2plot_cp.
Definition at line 201 of file h2plot.
{ if(void* p = inlib::cmp_cast<h2d2plot>(this,a_class)) {return p;} return bins2D::cast(a_class); }
virtual plottable* inlib::sg::h2d2plot::copy | ( | ) | const [inline, virtual] |
Implements inlib::sg::plottable.
Definition at line 206 of file h2plot.
{return new h2d2plot(*this);}
virtual std::string inlib::sg::h2d2plot::infos | ( | const std::string & | a_opts | ) | [inline, virtual] |
Implements inlib::sg::plottable.
Definition at line 214 of file h2plot.
{ std::string f_lf("\n"); std::string sinfos; std::vector<std::string> words; inlib::words(a_opts," ",false,words); std::vector<std::string>::const_iterator it; for(it=words.begin();it!=words.end();++it) { if(((*it)=="name") && m_name.size()) { if(sinfos.size()) sinfos += f_lf; sinfos += "Name\n"; sinfos += m_name; } else if((*it)=="entries") { if(sinfos.size()) sinfos += f_lf; sinfos += "Entries\n"; sinfos += inlib::to<int>(m_data.all_entries()); } else if((*it)=="mean") { if(sinfos.size()) sinfos += f_lf; sinfos += "MeanX\n"; sinfos += inlib::to<double>(m_data.mean_x()); sinfos += f_lf; sinfos += "MeanY\n"; sinfos += inlib::to<double>(m_data.mean_y()); } else if((*it)=="rms") { if(sinfos.size()) sinfos += f_lf; sinfos += "RMS X\n"; sinfos += inlib::to<double>(m_data.rms_x()); sinfos += f_lf; sinfos += "RMS Y\n"; sinfos += inlib::to<double>(m_data.rms_y()); } } return sinfos; }
virtual bool inlib::sg::h2d2plot::is_valid | ( | ) | const [inline, virtual] |
virtual std::string inlib::sg::h2d2plot::legend | ( | ) | [inline, virtual] |
virtual std::string inlib::sg::h2d2plot::name | ( | ) | [inline, virtual] |
static const std::string& inlib::sg::h2d2plot::s_class | ( | ) | [inline, static] |
Reimplemented from inlib::sg::bins2D.
Reimplemented in inlib::sg::h2d2plot_cp.
Definition at line 196 of file h2plot.
{ static const std::string s_v("inlib::sg::h2d2plot"); return s_v; }
virtual void inlib::sg::h2d2plot::set_legend | ( | const std::string & | a_s | ) | [inline, virtual] |
virtual void inlib::sg::h2d2plot::set_name | ( | const std::string & | a_s | ) | [inline, virtual] |
virtual std::string inlib::sg::h2d2plot::title | ( | ) | [inline, virtual] |
virtual float inlib::sg::h2d2plot::x_axis_max | ( | ) | const [inline, virtual] |
Implements inlib::sg::bins2D.
Definition at line 260 of file h2plot.
{return (float)m_data.axis_x().upper_edge();}
virtual float inlib::sg::h2d2plot::x_axis_min | ( | ) | const [inline, virtual] |
Implements inlib::sg::bins2D.
Definition at line 259 of file h2plot.
{return (float)m_data.axis_x().lower_edge();}
virtual unsigned int inlib::sg::h2d2plot::x_bins | ( | ) | const [inline, virtual] |
Implements inlib::sg::bins2D.
Definition at line 257 of file h2plot.
{return m_data.axis_x().bins();}
virtual float inlib::sg::h2d2plot::y_axis_max | ( | ) | const [inline, virtual] |
Implements inlib::sg::bins2D.
Definition at line 262 of file h2plot.
{return (float)m_data.axis_y().upper_edge();}
virtual float inlib::sg::h2d2plot::y_axis_min | ( | ) | const [inline, virtual] |
Implements inlib::sg::bins2D.
Definition at line 261 of file h2plot.
{return (float)m_data.axis_y().lower_edge();}
virtual unsigned int inlib::sg::h2d2plot::y_bins | ( | ) | const [inline, virtual] |
Implements inlib::sg::bins2D.
Definition at line 258 of file h2plot.
{return m_data.axis_y().bins();}