GridLayout Class Reference

#include <GridLayout.hpp>

Inheritance diagram for GridLayout:

Inheritance graph
[legend]
Collaboration diagram for GridLayout:

Collaboration graph
[legend]
List of all members.

Detailed Description

Assists in arranging frames in a grid with some number of rows and columns.

Definition at line 46 of file GridLayout.hpp.

Public Member Functions

 GridLayout (const Frame &frame, int rows, int columns)
 Constructor.
virtual int getFrameCount (void)
virtual Frame getFrame (int fnum)
virtual Frame getFrame (int row, int col)

Protected Attributes

std::vector< FrametargetList
 List containing the frames created in this layout.
int nrows
 Number of rows.
int ncols
 Number of columns.


Constructor & Destructor Documentation

GridLayout const Frame frame,
int  rows,
int  columns
 

Constructor.

Parameters:
frame Frame to create layout within
rows Number of rows of frames to make
columns Nums of columns of frames to make


Member Function Documentation

virtual Frame getFrame int  row,
int  col
[inline, virtual]
 

Parameters:
row 
col 
Returns:
Frame at (row,col)

Definition at line 70 of file GridLayout.hpp.

References targetList.

virtual Frame getFrame int  fnum  )  [inline, virtual]
 

Parameters:
fnum Frame index number
Returns:
The fnum-th frame

Reimplemented from Layout.

Definition at line 62 of file GridLayout.hpp.

References targetList.

Referenced by SeriesList::drawLegend().

virtual int getFrameCount void   )  [inline, virtual]
 

Returns:
Number of frames contained in this layout.

Reimplemented from Layout.

Definition at line 59 of file GridLayout.hpp.

References targetList.


Member Data Documentation

int ncols [protected]
 

Number of columns.

Definition at line 84 of file GridLayout.hpp.

int nrows [protected]
 

Number of rows.

Definition at line 81 of file GridLayout.hpp.

std::vector<Frame> targetList [protected]
 

List containing the frames created in this layout.

Definition at line 78 of file GridLayout.hpp.

Referenced by getFrame(), and getFrameCount().


The documentation for this class was generated from the following file:
Generated on Mon May 20 03:31:35 2013 for GPS ToolKit Software Library by  doxygen 1.3.9.1