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

Linux Cross Reference
Tina5/tina-libs/tina/geometry/geomGen_negate.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_negate.c,v $
 23  * Date    :  $Date: 2002/12/09 11:51:23 $
 24  * Version :  $Revision: 1.1.1.1 $
 25  * CVS Id  :  $Id: geomGen_negate.c,v 1.1.1.1 2002/12/09 11:51:23 cvstina Exp $
 26  *
 27  * Notes : inplace negation of geometrical primitive
 28  *         maintains same physical location only directional properties are
 29  *         updated 
 30  *
 31  *********
 32 */
 33 
 34 
 35 #include "geomGen_negate.h"
 36 
 37 #if HAVE_CONFIG_H
 38   #include <config.h>
 39 #endif
 40 
 41 #include <tina/sys/sysDef.h>
 42 #include <tina/sys/sysPro.h>
 43 #include <tina/math/mathDef.h>
 44 #include <tina/math/mathPro.h>
 45 #include <tina/geometry/geomDef.h>
 46 #include <tina/geometry/geom_PointDef.h>
 47 #include <tina/geometry/geom_PointPro.h>
 48 #include <tina/geometry/geom_LineDef.h>
 49 #include <tina/geometry/geom_LinePro.h>
 50 #include <tina/geometry/geom_CurveDef.h>
 51 #include <tina/geometry/geom_CurvePro.h>
 52 
 53 
 54 void    geom_negate(void *geom, int type)
 55 {
 56     switch (type)
 57     {
 58         case SCALAR:
 59         break;
 60     case POINT2:
 61         break;
 62     case LINE2:
 63         line2_negate((Line2 *) geom);
 64         break;
 65     case CONIC2:
 66         break;
 67     case POINT3:
 68         break;
 69     case LINE3:
 70         line3_negate((Line3 *) geom);
 71         break;
 72     case CONIC3:
 73         conic3_negate((Conic3 *) geom);
 74         break;
 75     case PLANE:
 76         break;
 77     case TRANSF3:
 78         break;
 79     }
 80 }
 81 
 82 void   *geom_negative(void *geom, int type)
 83 {
 84     switch (type)
 85     {
 86         case LINE2:
 87         return (line2_negative((Line2 *) geom));
 88     case CONIC2:
 89         return (NULL);
 90     case LINE3:
 91         return (line3_negative((Line3 *) geom));
 92     case CONIC3:
 93         return (conic3_negative((Conic3 *) geom));
 94     case PLANE:
 95         return (NULL);
 96     case TRANSF3:
 97         return (NULL);
 98     }
 99     return (NULL);
100 }
101 

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