00001 #pragma ident "$Id: GridLayout.hpp 3140 2012-06-18 15:03:02Z susancummins $"
00002
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef VDRAW_GRIDLAYOUT_H
00029 #define VDRAW_GRIDLAYOUT_H
00030
00031 #include <vector>
00032
00033 #include "GraphicsConstants.hpp"
00034 #include "Frame.hpp"
00035 #include "Layout.hpp"
00036
00037 namespace vdraw
00038 {
00041
00046 class GridLayout : public Layout
00047 {
00048
00049 public:
00050
00057 GridLayout(const Frame& frame, int rows, int columns);
00058
00059 virtual int getFrameCount(void)
00060 {return targetList.size();}
00061
00062 virtual Frame getFrame(int fnum)
00063 {return targetList[fnum];}
00064
00070 virtual Frame getFrame(int row, int col)
00071 {return targetList[col+row*ncols];}
00072
00073
00074
00075 protected:
00076
00078 std::vector<Frame> targetList;
00079
00081 int nrows;
00082
00084 int ncols;
00085 };
00086
00088
00089 }
00090
00091 #endif