home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / src / lib / gprim / lincoln / lincolnclass.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-08  |  1.2 KB  |  49 lines

  1. /* Copyright (c) 1992 The Geometry Center; University of Minnesota
  2.    1300 South Second Street;  Minneapolis, MN  55454, USA;
  3.    
  4. This file is part of geomview/OOGL. geomview/OOGL is free software;
  5. you can redistribute it and/or modify it only under the terms given in
  6. the file COPYING, which you should have received along with this file.
  7. This and other related software may be obtained via anonymous ftp from
  8. geom.umn.edu; email: software@geom.umn.edu. */
  9. static char *copyright = "Copyright (C) 1992 The Geometry Center";
  10.  
  11. /* Authors: Charlie Gunn, Stuart Levy, Tamara Munzner, Mark Phillips */
  12.  
  13. /*
  14.  * Geometry Routines
  15.  *
  16.  * Geometry Supercomputer Project
  17.  *
  18.  * ROUTINE DESCRIPTION:
  19.  * Return the geometry class structure for Lincoln
  20.  *
  21.  */
  22.  
  23. #include    "polylistP.h"
  24. #include    "lincolndefs.h"
  25.  
  26. static GeomClass *aLincolnMethods = NULL;
  27.  
  28. int LincolnPresent = 1;
  29.  
  30. static char lincolnName[] = "lincoln";
  31.  
  32. char *
  33. LincolnName()
  34. {
  35.     return lincolnName;
  36. }
  37.  
  38. GeomClass *
  39. LincolnMethods()
  40. {
  41.     if (!aLincolnMethods) {
  42.         PolyListMethods(); /* Create the polylist class first, */
  43.         aLincolnMethods = GeomSubClassCreate("polylist", lincolnName);
  44.         aLincolnMethods->fload = (GeomFLoadFunc *) LincolnFLoad;
  45.         aLincolnMethods->name = (GeomNameFunc *) LincolnName;
  46.     }
  47.     return aLincolnMethods;
  48. }
  49.