home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / freedraft.tar.gz / freedraft.tar / FREEdraft-050298 / DRAWABLES / drawablegeom.h < prev    next >
C/C++ Source or Header  |  1998-04-23  |  2KB  |  45 lines

  1. // drawablegeom.h
  2.  
  3. // Copyright (C) 1997  Cliff Johnson                                       //
  4. //                                                                         //
  5. // This program is free software; you can redistribute it and/or           //
  6. // modify it under the terms of the GNU  General Public                    //
  7. // License as published by the Free Software Foundation; either            //
  8. // version 2 of the License, or (at your option) any later version.        //
  9. //                                                                         //
  10. // This software is distributed in the hope that it will be useful,        //
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of          //
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU       //
  13. // General Public License for more details.                                //
  14. //                                                                         //
  15. // You should have received a copy of the GNU General Public License       //
  16. // along with this software (see COPYING); if not, write to the        //
  17. // Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. //
  18.  
  19. #ifndef _DRAWABELGEOM_H_
  20. #define _DRAWABELGEOM_H_
  21.  
  22. //#include <bool.h> //ITO
  23. #include <geom.h>
  24. #include <handle.h>
  25.  
  26. class DrawableGeom 
  27. {
  28. private:
  29.   int type;
  30.  
  31. public:
  32.  
  33.   DrawableGeom(int t){ type = t; }
  34.  
  35.   int Type() const { return type; }
  36.  
  37.   virtual ~DrawableGeom() {}  // necessary because some containters hold derived classes using
  38.               // pointers to this base class
  39.  
  40.   virtual void Draw(const Geom*, const float& scale) const {}; // draw this geom using these attributes
  41.   virtual void Select(const Geom*, const Handle&, const float& scale) const {}; // just like drawing but for selections.
  42. };
  43.  
  44. #endif
  45.