1 /*
2 * ===========================================================================
3 *
4 *                            PUBLIC DOMAIN NOTICE
5 *               National Center for Biotechnology Information
6 *
7 *  This software/database is a "United States Government Work" under the
8 *  terms of the United States Copyright Act.  It was written as part of
9 *  the author's official duties as a United States Government employee and
10 *  thus cannot be copyrighted.  This software/database is freely available
11 *  to the public for use. The National Library of Medicine and the U.S.
12 *  Government have not placed any restriction on its use or reproduction.
13 *
14 *  Although all reasonable efforts have been taken to ensure the accuracy
15 *  and reliability of the software and data, the NLM and the U.S.
16 *  Government do not and cannot warrant the performance or results that
17 *  may be obtained by using this software or data. The NLM and the U.S.
18 *  Government disclaim all warranties, express or implied, including
19 *  warranties of performance, merchantability or fitness for any particular
20 *  purpose.
21 *
22 *  Please cite the author in any work or product based on this material.
23 *
24 * ===========================================================================
25 *
26 * File Name: gphdraw.h
27 *
28 * Author(s): Jonathan Kans, John Kuzio
29 *
30 * Version Creation Date: 98-01-01
31 *
32 * $Revision: 6.5 $
33 *
34 * File Description: sentinel graph header
35 *
36 * Modifications:
37 * --------------------------------------------------------------------------
38 * Date       Name        Description of modification
39 * --------------------------------------------------------------------------
40 * $Log: gphdraw.h,v $
41 * Revision 6.5  1998/10/13 17:13:55  kuzio
42 * colored superimposable graphs
43 *
44 * Revision 6.4  1998/09/16 19:00:36  kuzio
45 * cvs logs
46 *
47 * ==========================================================================
48 */
49 
50 #ifndef _GPHDRAW_
51 #define _GPHDRAW_
52 
53 #include <picture.h>
54 #include <objres.h>
55 #include <objseq.h>
56 
57 #ifdef __cplusplus
58 extern "C" {
59 #endif
60 
61 typedef struct graphsentdata {
62   Boolean        flagIsGUI;
63   SegmenT        seg;
64   PrimitivE      snt;
65   BoxInfo        box;
66   Int4           min;
67   Int4           max;
68   Int4           axis;
69   Int4           bottom;
70   FloatHi        a;
71   FloatHi        b;
72   SeqGraphPtr    sgp;
73   Uint1          red, green, blue;
74 } GraphSentData, PNTR GraphSentPtr;
75 
76 extern GraphSentPtr AddGraphSentinelToPicture (SeqGraphPtr sgp, BioseqPtr bsp,
77                                                SegmenT pict, Int4 scaleX,
78                                                Int4 top, Int2 start,
79                                                Uint1Ptr uRGB);
80 
81 extern SegmenT DrawSeqGraphSegment (SeqGraphPtr sgp, BioseqPtr bsp,
82                                     Int4 xlen, Int4 top, Int2 start,
83                                     Int4 leftend, Int4 rightend,
84                                     SegmenT pict);
85 
86 extern void DrawGraphToPanel (SeqGraphPtr sgp, Int4 Xscale,
87                               Int4 Yscale, Int4 Ylength, RecT PNTR rp,
88                               Int4 leftend, Int4 rightend);
89 
90 #ifdef __cplusplus
91 }
92 #endif
93 
94 #endif
95