GridLayout.hpp

Go to the documentation of this file.
00001 #pragma ident "$Id: GridLayout.hpp 3140 2012-06-18 15:03:02Z susancummins $"
00002 
00004 
00005 //============================================================================
00006 //
00007 //  This file is part of GPSTk, the GPS Toolkit.
00008 //
00009 //  The GPSTk is free software; you can redistribute it and/or modify
00010 //  it under the terms of the GNU Lesser General Public License as published
00011 //  by the Free Software Foundation; either version 2.1 of the License, or
00012 //  any later version.
00013 //
00014 //  The GPSTk is distributed in the hope that it will be useful,
00015 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 //  GNU Lesser General Public License for more details.
00018 //
00019 //  You should have received a copy of the GNU Lesser General Public
00020 //  License along with GPSTk; if not, write to the Free Software Foundation,
00021 //  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
00022 //  
00023 //  Copyright 2004, The University of Texas at Austin
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 } // namespace vdraw
00090 
00091 #endif

Generated on Fri May 24 03:31:07 2013 for GPS ToolKit Software Library by  doxygen 1.3.9.1