|
NCBI Home IEB Home C Toolkit docs C++ Toolkit source browser C Toolkit source browser (2) |
NCBI C Toolkit Cross ReferenceC/cn3d/cn3dmsg.h |
source navigation diff markup identifier search freetext search file search |
1 /* cn3dmsg.h
2 * ===========================================================================
3 *
4 * PUBLIC DOMAIN NOTICE
5 * National Center for Biotechnology Information (NCBI)
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 do not place any restriction on its use or reproduction.
13 * We would, however, appreciate having the NCBI and the author cited in
14 * any work or product based on this material
15 *
16 * Although all reasonable efforts have been taken to ensure the accuracy
17 * and reliability of the software and data, the NLM and the U.S.
18 * Government do not and cannot warrant the performance or results that
19 * may be obtained by using this software or data. The NLM and the U.S.
20 * Government disclaim all warranties, express or implied, including
21 * warranties of performance, merchantability or fitness for any particular
22 * purpose.
23 *
24 * ===========================================================================
25 *
26 * File Name: cn3dmsg.h
27 *
28 * Author: Yanli Wang
29 *
30 * Version Creation Date: 3/26/98
31 *
32 * File Description: Main functions for building up cn3d/salsa communication
33 *
34 * Modifications:
35 * $Log: cn3dmsg.h,v $
36 * Revision 6.55 2000/03/18 00:06:00 lewisg
37 * add blast, new help, new menus
38 *
39 * Revision 6.54 2000/02/07 20:17:37 lewisg
40 * minor bug fixes, use gui font for win32
41 *
42 * Revision 6.53 2000/01/06 00:04:42 lewisg
43 * selection bug fixes, update message outbound, animation APIs moved to vibrant
44 *
45 * Revision 6.52 1999/12/28 15:08:44 lewisg
46 * remove remaining mediainfo code
47 *
48 * Revision 6.51 1999/12/01 16:15:54 lewisg
49 * interim checkin to fix blocking memory leak
50 *
51 * Revision 6.50 1999/11/22 14:46:44 thiessen
52 * moved _OPENGL code blocks to only vibrant and ncbicn3d libraries
53 *
54 * Revision 6.49 1999/11/10 23:19:41 lewisg
55 * rewrite of selection code for ddv
56 *
57 * Revision 6.48 1999/11/03 18:15:10 kans
58 * added prototypes needed by other files
59 *
60 * Revision 6.47 1999/10/29 14:15:29 thiessen
61 * ran all Cn3D source through GNU Indent to prettify
62 *
63 * Revision 6.46 1999/10/05 23:18:24 lewisg
64 * add ddv and udv to cn3d with memory management
65 *
66 * Revision 6.45 1999/09/21 18:09:15 lewisg
67 * binary search added to color manager, various bug fixes, etc.
68 *
69 * Revision 6.44 1999/08/04 21:19:46 lewisg
70 * modularized open operations to allow sequin to launch cn3d
71 *
72 * Revision 6.43 1999/07/09 20:50:55 ywang
73 * set highlight color for salsa in Cn3dObjRegiste
74 *
75 * Revision 6.42 1999/07/07 20:45:37 ywang
76 * clear domaindata, mediadata, special feature before reading in new data in cn3d
77 *
78 * Revision 6.41 1999/04/06 20:12:57 lewisg
79 * more opengl
80 *
81 * Revision 6.40 1999/03/30 22:36:19 ywang
82 * add functions to color salsa for NcbiMimeAsn1_strucseqs & code reorganization
83 *
84 * Revision 6.39 1999/03/22 22:41:14 ywang
85 * remove argument in MediaObjSelect
86 *
87 * Revision 6.38 1999/02/12 15:34:01 ywang
88 * include Cn3DSendColorMsg
89 *
90 * Revision 6.37 1999/02/11 22:40:15 ywang
91 * rename functions
92 *
93 * Revision 6.36 1999/02/11 18:48:15 lewisg
94 * delete color index functions
95 *
96 * Revision 6.35 1999/02/10 23:49:43 lewisg
97 * use RGB values instead of indexed palette
98 *
99 * Revision 6.34 1999/01/20 22:57:25 ywang
100 * customize color for secondary structure & rearrange Option menu
101 *
102 * Revision 6.33 1999/01/20 16:06:48 durand
103 * move mediainfo to salmedia.h
104 *
105 * Revision 6.32 1998/12/16 22:49:39 ywang
106 * fix compiling warnings on Win32
107 *
108 * Revision 6.31 1998/12/16 19:32:56 ywang
109 * improve highlight residues function when rerendering
110 *
111 * Revision 6.30 1998/10/27 15:55:52 ywang
112 * add functions for testing color by sequence conservation
113 *
114 * Revision 6.29 1998/10/19 20:16:06 ywang
115 * add function FillSeqinfoForSeqEditViewProcs so that salsa can get color array
116 *
117 * Revision 6.28 1998/10/19 17:43:03 kans
118 * prototype needed for RealColorSalsa
119 *
120 * Revision 6.27 1998/10/16 22:06:08 ywang
121 * make global color array for sequence display
122 *
123 * Revision 6.26 1998/09/23 22:09:42 ywang
124 * to record checkin log
125 *
126 * =========================================================================== */
127
128 #ifndef _CN3DMSG_
129 #define _CN3DMSG_ 1
130
131 #include <ncbi.h>
132 #include <objseq.h>
133 #include <objmgr.h>
134 #include <objfdef.h>
135 #include <gather.h>
136 #include <vibrant.h>
137 #include <salsa.h>
138 #include <salmedia.h>
139 #include <ddvcolor.h>
140
141 #include <mmdbapi1.h>
142
143 #ifdef __cplusplus
144 extern "C" {
145 #endif
146
147
148 #define REGISTER_BIOSEQ_BIOSTRUC_MEDIA ObjMgrProcLoad(OMPROC_VIEW, "Seq-Struc Communication", "Media", OBJ_BIOSEQ, 0, OBJ_BIOSEQ, 0, NULL, SeqStrucMediaFunc, 0)
149 #define REGISTER_SEQANNOT_BIOSTRUC_MEDIA ObjMgrProcLoad(OMPROC_VIEW, "Cn3D SeqAnnot", "Media", OBJ_SEQANNOT, 0, OBJ_SEQANNOT, 0, NULL, Cn3D_AnnotEditFunc, 0)
150
151 /*****************************************************************************
152
153 Function: Cn3D_LaunchSeqEntry()
154
155 Purpose: Launch the Bioseq viewer on all bioseqs contained in a SeqEntry.
156
157 Parameters: pvnsep, the valnode list of SeqEntries
158
159 *****************************************************************************/
160
161 void Cn3D_LaunchSeqEntry(ValNode * pvnsep);
162
163
164 /*****************************************************************************
165
166 Function: Cn3D_RegisterSeqEntry()
167
168 Purpose: Adds a message func to the SeqEntry and makes it
169 OM_OPT_FREE_IF_NO_VIEW
170
171 Parameters: pvnsep, a valnode list of SeqEntries
172
173 *****************************************************************************/
174
175 void Cn3D_RegisterSeqEntry(ValNode * pvnsep);
176
177
178 /*****************************************************************************
179
180 Function: Cn3D_LaunchSeqAnnot()
181
182 Purpose: Launch the SeqAlign viewer on all SeqAligns contained in a SeqAnnot.
183
184 Parameters: sap, the SeqAnnot
185
186 *****************************************************************************/
187
188 void Cn3D_LaunchSeqAnnot(SeqAnnot * sap);
189
190
191 /*****************************************************************************
192
193 Function: Cn3D_RegisterSeqAnnot()
194
195 Purpose: Adds a message func to the SeqAnnot and makes it
196 OM_OPT_FREE_IF_NO_VIEW
197
198 Parameters: sap, the SeqAnnot pointer
199
200 *****************************************************************************/
201
202 void Cn3D_RegisterSeqAnnot(SeqAnnot *sap, Boolean Neat, Boolean IBM);
203
204
205 extern Int2 LIBCALLBACK SeqStrucMediaFunc PROTO((Pointer data));
206 extern void MediaObjSelect(PDNMG pdnmgThis, Boolean highlight);
207 extern void MediaHL(SelStructPtr sel, Boolean highlight);
208 extern void fnPreCHLresidue(PDNMG pdnmgThis, Boolean highlight);
209 extern PDNMM FindMM(void);
210 extern void DoCHighlightSeg(PFB pfbThis, Int4 iModel, Int4 iIndex,
211 Pointer ptr, Boolean highlight);
212 extern void LaunchMediaViewer(BioseqPtr bsp);
213 extern void SalsaRegister(void);
214 extern void Cn3dObjMgrGetSelected(void);
215 extern void DoMediaHL(PMMD pmmdThis, Int4 from, Int4 to,
216 Boolean highlight);
217 extern void LaunchSequenceWindow(void);
218 extern void LIBCALLBACK Cn3DCheckAndDoHighlight
219 PROTO((PFB pfbThis, Int4 iModel, Int4 iIndex, Pointer ptr));
220
221 extern void Cn3D_RegisterColor(void);
222
223
224 /*****************************************************************************
225
226 Function: Cn3D_AnnotEditFunc()
227
228 Purpose: The object manager callback to register a SeqAnnot.
229
230 Parameters: data, the OMProcControlPtr.
231
232 Returns: OM_MSG_RET_*
233
234 *****************************************************************************/
235
236 extern Int2 LIBCALLBACK Cn3D_AnnotEditFunc(Pointer data);
237
238
239 /*****************************************************************************
240
241 Function: Cn3D_SendUpdate()
242
243 Purpose: Sends an update message to everyone about everything.
244
245 *****************************************************************************/
246
247 NLM_EXTERN void Cn3D_SendUpdate();
248
249
250
251
252 #ifdef __cplusplus
253 }
254 #endif
255 #endif /* _CN3DMSG_ */
256 |
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more information. |