Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

Legend.h

Go to the documentation of this file.
00001 
00002 //
00003 // This file is part of the MADELINE 2 program 
00004 // written by Edward H. Trager and Ritu Khanna
00005 // Copyright (c) 2005 by the
00006 // Regents of the University of Michigan.
00007 // All Rights Reserved.
00008 // 
00009 // The latest version of this program is available from:
00010 // 
00011 //   http://eyegene.ophthy.med.umich.edu/madeline/
00012 //   
00013 // Released under the GNU General Public License.
00014 // A copy of the GPL is included in the distribution
00015 // package of this software, or see:
00016 // 
00017 //   http://www.gnu.org/copyleft/
00018 //   
00019 // ... for licensing details.
00020 // 
00022 
00023 #ifndef LEGEND_INCLUDED
00024 #define LEGEND_INCLUDED
00025 
00026 #include "DrawingLabelManager.h"
00027 #include "SVG.h"
00028 
00029 class Legend{
00030         
00031 protected:
00032         double _width;
00033         double _height;
00034 public:
00035         
00036         Legend() {}
00037         virtual ~Legend(){};
00038         
00039         virtual void draw(std::ostringstream& os,SVG* psvg,DrawingLabelManager* plm,const double x,const double y)=0;
00040         
00041         
00042         double getWidth(void) const { return _width; }
00043         double getHeight(void) const { return _height; }
00044         
00045         
00046 };
00047 
00048 #endif

Generated on Fri Nov 18 16:24:39 2011 for MADELINE by  doxygen 1.4.4