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 unsigned int | bins () const |
virtual void | bins_Sw_range (float &a_mn, float &a_mx) const |
virtual float | axis_min () const |
virtual float | axis_max () const |
virtual float | bin_lower_edge (int aI) const |
virtual float | bin_upper_edge (int aI) const |
virtual unsigned int | bin_entries (int aI) const |
virtual float | bin_Sw (int aI) const |
virtual float | bin_error (int aI) const |
virtual bool | is_profile () const |
p1d2plot (const inlib::histo::p1d &a_data) | |
virtual | ~p1d2plot () |
Static Public Member Functions | |
static const std::string & | s_class () |
Protected Member Functions | |
p1d2plot (const p1d2plot &a_from) |
inlib::sg::p1d2plot::p1d2plot | ( | const inlib::histo::p1d & | a_data | ) | [inline] |
virtual inlib::sg::p1d2plot::~p1d2plot | ( | ) | [inline, virtual] |
inlib::sg::p1d2plot::p1d2plot | ( | const p1d2plot & | a_from | ) | [inline, protected] |
virtual float inlib::sg::p1d2plot::axis_max | ( | ) | const [inline, virtual] |
Implements inlib::sg::bins1D.
Definition at line 370 of file h2plot.
{ return (float)m_data.axis().upper_edge(); }
virtual float inlib::sg::p1d2plot::axis_min | ( | ) | const [inline, virtual] |
Implements inlib::sg::bins1D.
Definition at line 367 of file h2plot.
{ return (float)m_data.axis().lower_edge(); }
virtual unsigned int inlib::sg::p1d2plot::bin_entries | ( | int | aI | ) | const [inline, virtual] |
Implements inlib::sg::bins1D.
Definition at line 380 of file h2plot.
{ return m_data.bin_entries(aI); }
virtual float inlib::sg::p1d2plot::bin_error | ( | int | aI | ) | const [inline, virtual] |
Implements inlib::sg::bins1D.
Definition at line 388 of file h2plot.
{ return (float)m_data.bin_error(aI); }
virtual float inlib::sg::p1d2plot::bin_lower_edge | ( | int | aI | ) | const [inline, virtual] |
Implements inlib::sg::bins1D.
Definition at line 373 of file h2plot.
{ return (float)m_data.axis().bin_lower_edge(aI); }
virtual float inlib::sg::p1d2plot::bin_Sw | ( | int | aI | ) | const [inline, virtual] |
Implements inlib::sg::bins1D.
Definition at line 384 of file h2plot.
{ return (float)m_data.bin_height(aI); }
virtual float inlib::sg::p1d2plot::bin_upper_edge | ( | int | aI | ) | const [inline, virtual] |
Implements inlib::sg::bins1D.
Definition at line 376 of file h2plot.
{ return (float)m_data.axis().bin_upper_edge(aI); }
virtual unsigned int inlib::sg::p1d2plot::bins | ( | ) | const [inline, virtual] |
virtual void inlib::sg::p1d2plot::bins_Sw_range | ( | float & | a_mn, |
float & | a_mx | ||
) | const [inline, virtual] |
Implements inlib::sg::bins1D.
Definition at line 362 of file h2plot.
{ a_mn = (float)m_data.min_bin_height(); a_mx = (float)m_data.max_bin_height(); }
virtual void* inlib::sg::p1d2plot::cast | ( | const std::string & | a_class | ) | const [inline, virtual] |
Reimplemented from inlib::sg::bins1D.
Reimplemented in inlib::sg::p1d2plot_cp.
Definition at line 316 of file h2plot.
{ if(void* p = inlib::cmp_cast<p1d2plot>(this,a_class)) {return p;} return bins1D::cast(a_class); }
virtual plottable* inlib::sg::p1d2plot::copy | ( | ) | const [inline, virtual] |
Implements inlib::sg::plottable.
Definition at line 321 of file h2plot.
{return new p1d2plot(*this);}
virtual std::string inlib::sg::p1d2plot::infos | ( | const std::string & | a_opts | ) | [inline, virtual] |
Implements inlib::sg::plottable.
Definition at line 329 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 += "Mean\n"; sinfos += inlib::to<double>(m_data.mean()); } else if((*it)=="rms") { if(sinfos.size()) sinfos += f_lf; sinfos += "RMS\n"; sinfos += inlib::to<double>(m_data.rms()); } } return sinfos; }
virtual bool inlib::sg::p1d2plot::is_profile | ( | ) | const [inline, virtual] |
virtual bool inlib::sg::p1d2plot::is_valid | ( | ) | const [inline, virtual] |
virtual std::string inlib::sg::p1d2plot::legend | ( | ) | [inline, virtual] |
virtual std::string inlib::sg::p1d2plot::name | ( | ) | [inline, virtual] |
static const std::string& inlib::sg::p1d2plot::s_class | ( | ) | [inline, static] |
Reimplemented from inlib::sg::bins1D.
Reimplemented in inlib::sg::p1d2plot_cp.
Definition at line 311 of file h2plot.
{ static const std::string s_v("inlib::sg::p1d2plot"); return s_v; }
virtual void inlib::sg::p1d2plot::set_legend | ( | const std::string & | a_s | ) | [inline, virtual] |
virtual void inlib::sg::p1d2plot::set_name | ( | const std::string & | a_s | ) | [inline, virtual] |
virtual std::string inlib::sg::p1d2plot::title | ( | ) | [inline, virtual] |