1 /* Copyright (C) 1992-1998 The Geometry Center
2 * Copyright (C) 1998-2000 Stuart Levy, Tamara Munzner, Mark Phillips
3 *
4 * This file is part of Geomview.
5 *
6 * Geomview is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU Lesser General Public License as published
8 * by the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * Geomview is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with Geomview; see the file COPYING. If not, write
18 * to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139,
19 * USA, or visit http://www.gnu.org.
20 */
21
22 #if HAVE_CONFIG_H
23 # include "config.h"
24 #endif
25
26 #if 0
27 static char copyright[] = "Copyright (C) 1992-1998 The Geometry Center\n\
28 Copyright (C) 1998-2000 Stuart Levy, Tamara Munzner, Mark Phillips";
29 #endif
30
31
32 /* Authors: Charlie Gunn, Stuart Levy, Tamara Munzner, Mark Phillips */
33
34 #include "listP.h"
35
36 GeomClass *ListClass = NULL;
37
38 int ListPresent = 1;
39
40 static char listName[] = "list";
41
ListName(void)42 char *ListName(void)
43 {
44 return listName;
45 }
46
47 extern void ListHandleScan( List *, int (*func)(), void *arg );
48
ListMethods(void)49 GeomClass *ListMethods(void)
50 {
51 if( !ListClass ) {
52 ListClass = GeomClassCreate(listName);
53
54 ListClass->name = ListName;
55 ListClass->methods = (GeomMethodsFunc *)ListMethods;
56 ListClass->create = (GeomCreateFunc *)ListCreate;
57 ListClass->get = (GeomGetFunc *)ListGet;
58 ListClass->Delete = (GeomDeleteFunc *)ListDelete;
59 ListClass->bound = (GeomBoundFunc *)ListBound;
60 ListClass->boundsphere =
61 (GeomBoundSphereFunc *)ListBoundSphere;
62 ListClass->evert = (GeomEvertFunc *)ListEvert;
63 ListClass->dice = (GeomDiceFunc *)ListDice;
64 ListClass->transform = (GeomTransformFunc *)ListTransform;
65 ListClass->transformto = (GeomTransformToFunc *)ListTransform;
66 ListClass->pick = (GeomPickFunc *)ListPick;
67 ListClass->copy = (GeomCopyFunc *)ListCopy;
68 ListClass->draw = (GeomDrawFunc *)ListDraw;
69 ListClass->bsptree = (GeomBSPTreeFunc *)ListBSPTree;
70 ListClass->replace = (GeomReplaceFunc *)ListReplace;
71 ListClass->scan = (GeomScanFunc *)ListHandleScan;
72
73 ListClass->import = (GeomImportFunc *)ListImport;
74 ListClass->export = (GeomExportFunc *)ListExport;
75 }
76
77 return ListClass;
78 }
79
80 /*
81 * Local Variables: ***
82 * mode: c ***
83 * c-basic-offset: 4 ***
84 * End: ***
85 */
86