BasicShape.hpp

Go to the documentation of this file.
00001 #pragma ident "$Id: BasicShape.hpp 1644 2009-01-27 19:26:14Z ckiesch $"
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022 //  
00023 //  Copyright 2004, The University of Texas at Austin
00024 //
00025 //============================================================================
00026 
00027 
00028 #ifndef VDRAW_BASICSHAPE_H
00029 #define VDRAW_BASICSHAPE_H
00030 
00031 #include "StrokeStyle.hpp"
00032 
00033 namespace vdraw
00034 {
00037 
00044    class BasicShape {
00045  
00046    public:
00047 
00055       BasicShape(void)
00056          : hasLineStyle(false)
00057       {}
00058 
00063       BasicShape(const StrokeStyle& istyle)
00064          : lineStyle(istyle), hasLineStyle(true)
00065       {}
00066 
00068       inline bool hasOwnStrokeStyle(void) const { return hasLineStyle; }
00069 
00071       inline StrokeStyle getStrokeStyle(void) const { return lineStyle; }
00072       
00074       inline void setStrokeStyle(const StrokeStyle& istyle) { lineStyle=istyle;hasLineStyle=true; }  
00075 
00077       inline void removeStrokeStyle(void) { hasLineStyle=false; }
00078 
00079    protected:
00080 
00082       StrokeStyle lineStyle;
00083 
00085       bool hasLineStyle;
00086 
00087    private:
00088 
00089 
00090    }; // class BasicShape
00091 
00093 
00094 } // namespace vdraw
00095 
00096 #endif //VDRAW_BASICSHAPE_H
00097 
00098 

Generated on Wed Feb 8 03:30:57 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1