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

Linux Cross Reference
cvs/emstar/link/conntest/connview_i.h


  1 /*
  2  *
  3  * Copyright (c) 2003 The Regents of the University of California.  All 
  4  * rights reserved.
  5  *
  6  * Redistribution and use in source and binary forms, with or without
  7  * modification, are permitted provided that the following conditions
  8  * are met:
  9  *
 10  * - Redistributions of source code must retain the above copyright
 11  *   notice, this list of conditions and the following disclaimer.
 12  *
 13  * - Neither the name of the University nor the names of its
 14  *   contributors may be used to endorse or promote products derived
 15  *   from this software without specific prior written permission.
 16  *
 17  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS''
 18  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 19  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
 20  * PARTICULAR  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
 21  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 22  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 23  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 24  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 25  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 26  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 27  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 28  *
 29  */
 30  
 31 
 32 /*
 33  * internal interfaces for connview
 34  *
 35  * $Id: connview_i.h,v 1.5 2003-07-11 22:29:50 cerpa Exp $
 36  */
 37 
 38 #ifndef __CONNVIEW_I_H__
 39 #define __CONNVIEW_I_H__
 40 
 41 // length of each line of the nodes file
 42 #define MAX_LINE 1024
 43 
 44 #define REFRESH_RATE_FPS  1  /* updates in frames per sec */
 45 
 46 #define ARROWDIST_1                  70
 47 #define ARROWDIST_2                 100
 48 #define ARROWSIZE                    10
 49 
 50 #define LINKOFFSET                    4
 51 
 52 #define SCREEN_ASPECT_RATIO         1.0
 53 
 54 /* size of the field in meters */
 55 #define EXTENT_X (extent_x_max - extent_x_min)
 56 #define EXTENT_Y (extent_y_max - extent_y_min)
 57 
 58 /* size of the window, in number of pixels */
 59 #define DEFAULT_WIDTH               400
 60 #define DEFAULT_HEIGHT              400
 61 
 62 /* width and height of each radio */
 63 #define RADIO_WIDTH                  20
 64 #define RADIO_HEIGHT                 20
 65 
 66 #define REM_LINE_WIDTH                4
 67 
 68 /* number of colors available for drawing radios */
 69 #define NUM_RADIO_COLORS              9
 70 #define MAX_NETS                    100
 71 
 72 /* link type limits */
 73 #define DEFAULT_THRESH_GOOD          80
 74 #define DEFAULT_THRESH_BAD           50
 75 
 76 /* assymetric threshold */
 77 #define DEFAULT_ASSYM_DIFF           30
 78 
 79 /* nodes default location file name */
 80 #define DEFAULT_LOC_FILENAME \
 81 "/home/cerpa/zzdata/connectivity-portable-array/locations-wr.txt"
 82 
 83 /* nodes default connectivity file name */
 84 #define DEFAULT_CONN_FILENAME \
 85 "/home/cerpa/zzdata/connectivity-portable-array/link-mica2-wr-005.txt"
 86 
 87 /* link types */
 88 enum link_t { BOGUS=0, GOOD, MEDIUM, BAD, END_LINK };
 89 
 90 /* Radio color structure */
 91 typedef struct radio_color {
 92   GdkColor color;
 93   int used;
 94   int ref;
 95 } radio_color_t;
 96 
 97 
 98 /*
 99  * Call this when you want to redraw based on current data in the
100  * node[] array.
101  */
102 void viz_redraw();
103 
104 #endif // __CONNVIEW_I_H__
105 

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