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

Linux Cross Reference
Tina5/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 Lesser 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 Lesser General Public License for more details.
 14  *
 15  * You should have received a copy of the GNU Lesser 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  **********
 20  * 
 21  * Program :    TINA
 22  * File    :  $Source: /home/tina/cvs/tina-libs/tina/geometry/geomGen_copy.c,v $
 23  * Date    :  $Date: 2004/12/06 22:05:08 $
 24  * Version :  $Revision: 1.2 $
 25  * CVS Id  :  $Id: geomGen_copy.c,v 1.2 2004/12/06 22:05:08 paul Exp $
 26  *
 27  * Notes :
 28  *
 29  *********
 30 */
 31 
 32 #include "geomGen_copy.h"
 33 
 34 #if HAVE_CONFIG_H
 35   #include <config.h>
 36 #endif
 37 
 38 
 39 #include <tina/sys/sysDef.h>
 40 #include <tina/sys/sysPro.h>
 41 #include <tina/geometry/geomDef.h>
 42 #include <tina/geometry/geom_ScalarDef.h>
 43 #include <tina/geometry/geom_ScalarPro.h>
 44 #include <tina/geometry/geom_PointDef.h>
 45 #include <tina/geometry/geom_PointPro.h>
 46 #include <tina/geometry/geom_LineDef.h>
 47 #include <tina/geometry/geom_LinePro.h>
 48 #include <tina/geometry/geom_CurveDef.h>
 49 #include <tina/geometry/geom_CurvePro.h>
 50 #include <tina/geometry/geom_PlaneDef.h>
 51 #include <tina/geometry/geom_PlanePro.h>
 52 #include <tina/geometry/geom_TransDef.h>
 53 #include <tina/geometry/geom_TransPro.h>
 54 
 55 void   *geom_copy(void *geom, int type)
 56 {
 57     switch (type)
 58     {
 59         case SCALAR:
 60         return ((void *) scalar_copy((Scalar *) geom));
 61     case POINT2:
 62         return ((void *) point2_copy((Point2 *) geom));
 63     case LINE2:
 64         return ((void *) line2_copy((Line2 *) geom));
 65     case CONIC2:
 66         return ((void *) conic_copy((Conic *) geom));
 67     case POINT3:
 68         return ((void *) point3_copy((Point3 *) geom));
 69     case LINE3:
 70         return ((void *) line3_copy((Line3 *) geom));
 71     case CONIC3:
 72         return ((void *) conic3_copy((Conic3 *) geom));
 73     case PLANE:
 74         return ((void *) plane_copy((Plane *) geom));
 75     case TRANSF3:
 76         return ((void *) transf3_copy((Transf3 *) geom));
 77     }
 78     return (NULL);
 79 }
 80 
 81 void   *geom_update_copy(void *geom, int *type)
 82 {
 83     switch (*type)
 84     {
 85         case SCALAR:
 86         return ((void *) scalar_copy((Scalar *) geom));
 87     case POINT2:
 88         return ((void *) point2_copy((Point2 *) geom));
 89     case LINE2:
 90         return ((void *) line2_copy((Line2 *) geom));
 91     case CONIC2:
 92         return ((void *) conic_copy((Conic *) geom));
 93     case POINT3:
 94         return ((void *) point3_copy((Point3 *) geom));
 95     case LINE3:
 96         return ((void *) line3_copy((Line3 *) geom));
 97     case CONIC3:
 98         return ((void *) conic3_copy((Conic3 *) geom));
 99     case PLANE:
100         return ((void *) plane_copy((Plane *) geom));
101     case TRANSF3:
102         return ((void *) transf3_copy((Transf3 *) geom));
103     }
104     return (NULL);
105 }
106 

~ [ 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.