VTKFIG  0.20.20181114
Easy VTK based in situ visualization
void vtkfig::Frame::RTSetSingleViewport ( int  nx,
int  ny 
)
private

Calculate viewports for single subframe view.

Definition at line 300 of file vtkfigFrame.cxx.

301  {
302  for (int ivpy=0;ivpy<xnvpy;ivpy++)
303  for (int ivpx=0 ;ivpx<xnvpx;ivpx++)
304  {
305  int ipos=pos(ivpx,ivpy);
306  auto & subframe=subframes[ipos];
307  subframe.viewport[0]=0;
308  subframe.viewport[1]=0;
309  subframe.viewport[2]=1;
310  subframe.viewport[3]=0.925;
311  if (ipos==this->active_subframe)
312  subframe.hidden=false;
313  else
314  subframe.hidden=true;
315 
316  }
317 
318  }
int pos(const int ivpx, const int ivpy)
Subframe position algebra.
Definition: vtkfigFrame.h:365
int ivpx(const int pos)
Definition: vtkfigFrame.h:366
std::vector< SubFrame > subframes
List of subframes.
Definition: vtkfigFrame.h:361
int ivpy(const int pos)
Definition: vtkfigFrame.h:367

+ Here is the call graph for this function: