libpgplotxx.a (C++ interface to PGPLOT)

◆ Ttiledpanels() [3/3]

pgplot::Ttiledpanels::Ttiledpanels ( const Ttiledpanels panels)

copy constructor

Since we use a heap allocation for Mpanels we must provide a copy constructor allocating heap for the copy - or - we must forbid copy operations.

Definition at line 155 of file xpgplotxx.cc.

References Mnx, Mny, and Mpanels.

155  :
156  Mvp(panels.Mvp), Mnx(panels.Mnx), Mny(panels.Mny)
157  {
158  Mpanels=new Tpanel[Mny*Mnx];
159  for (int i=0; i<Mnx; i++)
160  {
161  for (int j=0; j<Mny; j++)
162  { Mpanels[i+j*Mnx]=panels.Mpanels[i+j*Mnx]; }
163  }
164  }
int Mnx
number of subpanels
Definition: xpgplotxx.h:293
Tpanel * Mpanels
array of subpanels
Definition: xpgplotxx.h:295
Trect Mvp
the total view surface area
Definition: xpgplotxx.h:291