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

Linux Cross Reference
Tina4/src/vision/geom/geom_copy.c

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

  1 /**@(#)
  2 **/
  3 #include <tina/sys.h>
  4 #include <tina/math.h>
  5 #include <tina/mathfuncs.h>
  6 #include <tina/vision.h>
  7 #include <tina/visionfuncs.h>
  8 
  9 void   *geom_copy(void *geom, int type)
 10 {
 11     switch (type)
 12     {
 13         case SCALAR:
 14         return ((void *) scalar_copy((Scalar *) geom));
 15     case POINT2:
 16         return ((void *) point2_copy((Point2 *) geom));
 17     case LINE2:
 18         return ((void *) line2_copy((Line2 *) geom));
 19     case CONIC2:
 20         return ((void *) conic_copy((Conic *) geom));
 21     case POINT3:
 22         return ((void *) point3_copy((Point3 *) geom));
 23     case LINE3:
 24         return ((void *) line3_copy((Line3 *) geom));
 25     case CONIC3:
 26         return ((void *) conic3_copy((Conic3 *) geom));
 27     case PLANE:
 28         return ((void *) plane_copy((Plane *) geom));
 29     case TRANSF3:
 30         return ((void *) transf3_copy((Transf3 *) geom));
 31     }
 32     return (NULL);
 33 }
 34 
 35 void   *geom_update_copy(void *geom, int *type)
 36 {
 37     switch (*type)
 38     {
 39         case SCALAR:
 40         return ((void *) scalar_copy((Scalar *) geom));
 41     case POINT2:
 42         return ((void *) point2_copy((Point2 *) geom));
 43     case LINE2:
 44         return ((void *) line2_copy((Line2 *) geom));
 45     case CONIC2:
 46         return ((void *) conic_copy((Conic *) geom));
 47     case POINT3:
 48         return ((void *) point3_copy((Point3 *) geom));
 49     case LINE3:
 50         return ((void *) line3_copy((Line3 *) geom));
 51     case CONIC3:
 52         return ((void *) conic3_copy((Conic3 *) geom));
 53     case PLANE:
 54         return ((void *) plane_copy((Plane *) geom));
 55     case TRANSF3:
 56         return ((void *) transf3_copy((Transf3 *) geom));
 57     }
 58     return (NULL);
 59 }
 60 

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