g4tools  5.4.0
Public Member Functions | Protected Attributes | List of all members
tools::sg::c2d2plot_cp Class Reference
Inheritance diagram for tools::sg::c2d2plot_cp:
Inheritance graph
[legend]
Collaboration diagram for tools::sg::c2d2plot_cp:
Collaboration graph
[legend]

Public Member Functions

virtual void * cast (const std::string &a_class) const
 
virtual plottablecopy () const
 
 c2d2plot_cp (const histo::c2d &a_data)
 
virtual ~c2d2plot_cp ()
 
 c2d2plot_cp (const c2d2plot_cp &a_from)
 
c2d2plot_cpoperator= (const c2d2plot_cp &a_from)
 
- Public Member Functions inherited from tools::sg::c2d2plot
virtual bool is_valid () const
 
virtual const std::string & name () const
 
virtual void set_name (const std::string &a_s)
 
virtual const std::string & title () const
 
virtual const std::string & legend () const
 
virtual void set_legend (const std::string &a_s)
 
virtual void infos (const std::string &a_opts, std::string &a_sinfos) 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 unsigned int points () const
 
virtual bool ith_point (unsigned int a_index, float &a_x, float &a_y) const
 
 c2d2plot (const histo::c2d &a_data)
 
virtual ~c2d2plot ()
 
 c2d2plot (const c2d2plot &a_from)
 
c2d2plotoperator= (const c2d2plot &a_from)
 
- Public Member Functions inherited from tools::sg::points2D
virtual ~points2D ()
 
- Public Member Functions inherited from tools::sg::plottable
virtual ~plottable ()
 

Protected Attributes

histo::c2d m_cp
 
- Protected Attributes inherited from tools::sg::c2d2plot
const histo::c2dm_data
 
std::string m_name
 
std::string m_legend
 

Detailed Description

Definition at line 12 of file cloud2plot_cp.

Constructor & Destructor Documentation

◆ c2d2plot_cp() [1/2]

tools::sg::c2d2plot_cp::c2d2plot_cp ( const histo::c2d a_data)
inline

Definition at line 23 of file cloud2plot_cp.

24  :c2d2plot(m_cp)
25  ,m_cp(a_data)
26  {
27 #ifdef TOOLS_MEM
28  mem::increment(s_class().c_str());
29 #endif
30  }

◆ ~c2d2plot_cp()

virtual tools::sg::c2d2plot_cp::~c2d2plot_cp ( )
inlinevirtual

Definition at line 31 of file cloud2plot_cp.

31  {
32 #ifdef TOOLS_MEM
33  mem::decrement(s_class().c_str());
34 #endif
35  }

◆ c2d2plot_cp() [2/2]

tools::sg::c2d2plot_cp::c2d2plot_cp ( const c2d2plot_cp a_from)
inline

Definition at line 37 of file cloud2plot_cp.

38  :plottable(a_from),points2D(a_from),c2d2plot(m_cp)
39  ,m_cp(a_from.m_cp)
40  {
41 #ifdef TOOLS_MEM
42  mem::increment(s_class().c_str());
43 #endif
44  }

Member Function Documentation

◆ cast()

virtual void* tools::sg::c2d2plot_cp::cast ( const std::string &  a_class) const
inlinevirtual

Reimplemented from tools::sg::points2D.

Definition at line 16 of file cloud2plot_cp.

16  {
17  if(void* p = cmp_cast<c2d2plot_cp>(this,a_class)) {return p;}
18  return c2d2plot::cast(a_class);
19  }

◆ copy()

virtual plottable* tools::sg::c2d2plot_cp::copy ( ) const
inlinevirtual

Reimplemented from tools::sg::c2d2plot.

Definition at line 21 of file cloud2plot_cp.

21 {return new c2d2plot_cp(*this);}

◆ operator=()

c2d2plot_cp& tools::sg::c2d2plot_cp::operator= ( const c2d2plot_cp a_from)
inline

Definition at line 45 of file cloud2plot_cp.

45  {
46  c2d2plot::operator=(a_from);
47  m_cp = a_from.m_cp;
48  return *this;
49  }

Member Data Documentation

◆ m_cp

histo::c2d tools::sg::c2d2plot_cp::m_cp
protected

Definition at line 51 of file cloud2plot_cp.


The documentation for this class was generated from the following file:
tools::sg::c2d2plot::c2d2plot
c2d2plot(const histo::c2d &a_data)
Definition: cloud2plot:84
tools::sg::c2d2plot_cp::m_cp
histo::c2d m_cp
Definition: cloud2plot_cp:51
tools::sg::c2d2plot::operator=
c2d2plot & operator=(const c2d2plot &a_from)
Definition: cloud2plot:108
tools::sg::points2D::cast
virtual void * cast(const std::string &a_class) const
Definition: plottables:124
tools::sg::c2d2plot_cp::c2d2plot_cp
c2d2plot_cp(const histo::c2d &a_data)
Definition: cloud2plot_cp:23