~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina6/tina-libs/tina/geometry/geomGen_copy.c

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /**********
  2  * 
  3  * This file is part of the TINA Open Source Image Analysis Environment
  4  * henceforth known as TINA
  5  *
  6  * TINA is free software; you can redistribute it and/or modify
  7  * it under the terms of the GNU General Public License as 
  8  * published by the Free Software Foundation.
  9  *
 10  * TINA 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
 13  * GNU General Public License for more details.
 14  *
 15  * You should have received a copy of the GNU General Public License
 16  * along with TINA; if not, write to the Free Software Foundation, Inc., 
 17  * 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 18  *
 19  * ANY users of TINA who require exemption from the existing licence must
 20  * negotiate a new licence with Dr. Neil.A.Thacker, the sole agent for
 21  * the University of Manchester.
 22  *
 23  **********
 24  * 
 25  * Program :    TINA
 26  * File    :  $Source: /home/tina/cvs/tina-libs/tina/geometry/geomGen_copy.c,v $
 27  * Date    :  $Date: 2004/12/06 22:05:08 $
 28  * Version :  $Revision: 1.2 $
 29  * CVS Id  :  $Id: geomGen_copy.c,v 1.2 2004/12/06 22:05:08 paul Exp $
 30  *
 31  * Notes :
 32  *
 33  *********
 34 */
 35 
 36 #include "geomGen_copy.h"
 37 
 38 #if HAVE_CONFIG_H
 39   #include <config.h>
 40 #endif
 41 
 42 
 43 #include <tina/sys/sysDef.h>
 44 #include <tina/sys/sysPro.h>
 45 #include <tina/geometry/geomDef.h>
 46 #include <tina/geometry/geom_ScalarDef.h>
 47 #include <tina/geometry/geom_ScalarPro.h>
 48 #include <tina/geometry/geom_PointDef.h>
 49 #include <tina/geometry/geom_PointPro.h>
 50 #include <tina/geometry/geom_LineDef.h>
 51 #include <tina/geometry/geom_LinePro.h>
 52 #include <tina/geometry/geom_CurveDef.h>
 53 #include <tina/geometry/geom_CurvePro.h>
 54 #include <tina/geometry/geom_PlaneDef.h>
 55 #include <tina/geometry/geom_PlanePro.h>
 56 #include <tina/geometry/geom_TransDef.h>
 57 #include <tina/geometry/geom_TransPro.h>
 58 
 59 void   *geom_copy(void *geom, int type)
 60 {
 61     switch (type)
 62     {
 63         case SCALAR:
 64         return ((void *) scalar_copy((Scalar *) geom));
 65     case POINT2:
 66         return ((void *) point2_copy((Point2 *) geom));
 67     case LINE2:
 68         return ((void *) line2_copy((Line2 *) geom));
 69     case CONIC2:
 70         return ((void *) conic_copy((Conic *) geom));
 71     case POINT3:
 72         return ((void *) point3_copy((Point3 *) geom));
 73     case LINE3:
 74         return ((void *) line3_copy((Line3 *) geom));
 75     case CONIC3:
 76         return ((void *) conic3_copy((Conic3 *) geom));
 77     case PLANE:
 78         return ((void *) plane_copy((Plane *) geom));
 79     case TRANSF3:
 80         return ((void *) transf3_copy((Transf3 *) geom));
 81     }
 82     return (NULL);
 83 }
 84 
 85 void   *geom_update_copy(void *geom, int *type)
 86 {
 87     switch (*type)
 88     {
 89         case SCALAR:
 90         return ((void *) scalar_copy((Scalar *) geom));
 91     case POINT2:
 92         return ((void *) point2_copy((Point2 *) geom));
 93     case LINE2:
 94         return ((void *) line2_copy((Line2 *) geom));
 95     case CONIC2:
 96         return ((void *) conic_copy((Conic *) geom));
 97     case POINT3:
 98         return ((void *) point3_copy((Point3 *) geom));
 99     case LINE3:
100         return ((void *) line3_copy((Line3 *) geom));
101     case CONIC3:
102         return ((void *) conic3_copy((Conic3 *) geom));
103     case PLANE:
104         return ((void *) plane_copy((Plane *) geom));
105     case TRANSF3:
106         return ((void *) transf3_copy((Transf3 *) geom));
107     }
108     return (NULL);
109 }
110 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.