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

Linux Cross Reference
Tina6/tina-tools/tinatool/tlbase/tlbaseInfr_left.c

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

  1 /**********
  2  * 
  3  * Copyright (c) 2003, Division of Imaging Science and Biomedical Engineering,
  4  * University of Manchester, UK.  All rights reserved.
  5  * 
  6  * Redistribution and use in source and binary forms, with or without modification, 
  7  * are permitted provided that the following conditions are met:
  8  * 
  9  *   . Redistributions of source code must retain the above copyright notice, 
 10  *     this list of conditions and the following disclaimer.
 11  *    
 12  *   . Redistributions in binary form must reproduce the above copyright notice,
 13  *     this list of conditions and the following disclaimer in the documentation 
 14  *     and/or other materials provided with the distribution.
 15  * 
 16  *   . Neither the name of the University of Manchester nor the names of its
 17  *     contributors may be used to endorse or promote products derived from this 
 18  *     software without specific prior written permission.
 19  * 
 20  * 
 21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
 22  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
 23  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
 24  * ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
 25  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
 26  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
 27  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 28  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
 29  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
 30  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
 31  * POSSIBILITY OF SUCH DAMAGE.
 32  *
 33  **********
 34  * 
 35  * Program :    TINA
 36  * File    :  $Source: /home/tina/cvs/tina-tools/tinatool/tlbase/tlbaseInfr_left.c,v $
 37  * Date    :  $Date: 2008/12/02 22:04:19 $
 38  * Version :  $Revision: 1.3 $
 39  * CVS Id  :  $Id: tlbaseInfr_left.c,v 1.3 2008/12/02 22:04:19 paul Exp $
 40  *
 41  * Author  :  Legacy TINA
 42  *
 43  * Notes :
 44  *
 45  *********
 46 */
 47 
 48 #include "tlbaseInfr_left.h"
 49 
 50 #if HAVE_CONFIG_H
 51 #include <config.h>
 52 #endif
 53 
 54 
 55 #include <stdio.h>
 56 #include <math.h>
 57 #include <tina/sys/sysDef.h>
 58 #include <tina/sys/sysPro.h>
 59 #include <tinatool/draw/drawDef.h>
 60 #include <tina/geometry/geomDef.h>
 61 #include <tina/geometry/geomPro.h>
 62 #include <tina/image/imgDef.h>
 63 #include <tina/image/imgPro.h>
 64 
 65 
 66 static Imrect *im_left = NULL;
 67 static Imrect *er_left = NULL;
 68 static Imrect *cnr_left = NULL;
 69 static Camera *cam_left = NULL;
 70 static List *geom_left = NULL;
 71 static Tv *tv_left = NULL;
 72 
 73 Tv     *left_tv(void)
 74 {
 75     return (tv_left);
 76 }
 77 
 78 Tv     *left_tv_get(void)
 79 {
 80     return (tv_left);
 81 }
 82 
 83 void    left_tv_set(Tv * tv)
 84 {
 85     tv_left = tv;
 86 }
 87 
 88 List   *left_geom(void)
 89 {
 90     return (geom_left);
 91 }
 92 
 93 List   *left_geom_get(void)
 94 {
 95     return (geom_left);
 96 }
 97 
 98 void    left_geom_set(List * geom)
 99 {
100     (void) reclist_list_free(geom_left, geom_free, 0, NULL);
101     geom_left = geom;
102 }
103 
104 void    left_geom_null(void)
105 {
106     geom_left = NULL;
107 }
108 
109 Camera *left_camera(void)
110 {
111     return (cam_left);
112 }
113 
114 void    left_camera_set(Camera * cam)
115 {
116     cam_free(cam_left);
117     cam_left = cam;
118 
119     if (im_left != NULL)
120         (void) cam_scale_to_image(cam_left, im_left);
121 }
122 
123 Imrect *left_image(void)
124 {
125     return (im_left);
126 }
127 
128 Imrect *left_image_get(void)
129 {
130     return (im_left);
131 }
132 
133 void    left_image_set(Imrect * im)
134 {
135     im_free(im_left);
136     im_left = im;
137 
138     if (cam_left != NULL)
139         (void) cam_scale_to_image(cam_left, im_left);
140 }
141 
142 Imrect *left_edges_get(void)
143 {
144     return (er_left);
145 }
146 
147 Imrect *left_edges(void)
148 {
149     return (er_left);
150 }
151 
152 void    left_edges_set(Imrect * er)
153 {
154     er_free(er_left);
155     er_left = er;
156 }
157 
158 void    left_edges_null(void)
159 {
160     er_left = NULL;
161 }
162 
163 Imrect *left_corners_get(void)
164 {
165     return (cnr_left);
166 }
167 
168 void    left_corners_set(Imrect * cnr)
169 {
170     er_free(cnr_left);
171     cnr_left = cnr;
172 }
173 
174 void    left_corners_null(void)
175 {
176     cnr_left = NULL;
177 }
178 

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