~ubuntu-branches/ubuntu/trusty/rasmol/trusty

« back to all changes in this revision

Viewing changes to src/multiple.c

  • Committer: Bazaar Package Importer
  • Author(s): Teemu Ikonen
  • Date: 2009-11-24 16:48:04 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091124164804-liuvywcs6l45ibl3
Tags: 2.7.5-1
* New upstream release
* Imakefile: Use Debian versions of library dependencies
* control:
  - Add build-deps to libcvector2-dev, libcqrlib2-dev, libneartree3-dev
  - Update to standards-version 3.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/***************************************************************************
2
 
 *                             RasMol 2.7.4.2                              *
 
2
 *                              RasMol 2.7.5                               *
3
3
 *                                                                         *
4
4
 *                                 RasMol                                  *
5
5
 *                 Molecular Graphics Visualisation Tool                   *
6
 
 *                            19 November 2007                             *
7
 
 *                          (rev. 21 March 2008)                           *
 
6
 *                              13 June 2009                               *
8
7
 *                                                                         *
9
8
 *                   Based on RasMol 2.6 by Roger Sayle                    *
10
9
 * Biomolecular Structures Group, Glaxo Wellcome Research & Development,   *
31
30
 *                   RasMol 2.7.4   Nov 07                                 *
32
31
 *                   RasMol 2.7.4.1 Jan 08                                 *
33
32
 *                   RasMol 2.7.4.2 Mar 08                                 *
34
 
 *                                                                         *
35
 
 * RasMol 2.7.3 incorporates changes by Clarice Chigbo, Ricky Chachra,     *
36
 
 * and Mamoru Yamanishi.  Work on RasMol 2.7.3 supported in part by        *
37
 
 * grants DBI-0203064, DBI-0315281 and EF-0312612 from the U.S. National   *
38
 
 * Science Foundation and grant DE-FG02-03ER63601 from the U.S. Department *
39
 
 * of Energy.  RasMol 2.7.4 incorporates changes by G. Todorov, Nan Jia,   *
40
 
 * N. Darakev, P. Kamburov, G. McQuillan, J. Jemilawon.  Work on RasMol    *
41
 
 * 2.7.4 supported in part by grant 1R15GM078077-01 from the National      *
42
 
 * Institute of General Medical Sciences (NIGMS). The content is solely    *
43
 
 * the responsibility of the authors and does not necessarily represent    * 
44
 
 * the official views of the funding organizations.                        *
45
 
 *                                                                         *
46
 
 * The code for use of RasMol under GTK in RasMol 2.7.4.2 was written by   *
47
 
 * Teemu  Ikonen.                                                          *
 
33
 *                   RasMol 2.7.5   May 09                                 *
 
34
 *                                                                         *
 
35
 * RasMol 2.7.5 incorporates changes by T. Ikonen, G. McQuillan, N. Darakev*
 
36
 * and L. Andrews (via the neartree package).  Work on RasMol 2.7.5        *
 
37
 * supported in part by grant 1R15GM078077-01 from the National Institute  *
 
38
 * of General Medical Sciences (NIGMS), U.S. National Institutes of Health *
 
39
 * and by grant ER63601-1021466-0009501 from the Office of Biological &    *
 
40
 * Environmental Research (BER), Office of Science, U. S. Department of    *
 
41
 * Energy.  RasMol 2.7.4 incorporated  changes by G. Todorov, Nan Jia,     *
 
42
 * N. Darakev, P. Kamburov, G. McQuillan, and J. Jemilawon. Work on RasMol *
 
43
 * 2.7.4 supported in part by grant 1R15GM078077-01 from the NIGMS/NIH and *
 
44
 * grant ER63601-1021466-0009501 from BER/DOE.  RasMol 2.7.3 incorporates  *
 
45
 * changes by Clarice Chigbo, Ricky Chachra, and Mamoru Yamanishi.  Work   *
 
46
 * on RasMol 2.7.3 supported in part by grants DBI-0203064, DBI-0315281    *
 
47
 * and EF-0312612 from the U.S. National Science Foundation and grant      *
 
48
 * DE-FG02-03ER63601 from BER/DOE. The content is solely the responsibility*
 
49
 * of the authors and does not necessarily represent the official views of *
 
50
 * the funding organizations.                                              *
 
51
 *                                                                         *
 
52
 * The code for use of RasMol under GTK in RasMol 2.7.4.2 and 2.7.5 was    *
 
53
 * written by Teemu Ikonen.                                                *
48
54
 *                                                                         *
49
55
 *                    and Incorporating Translations by                    *
50
56
 *  Author                               Item                     Language *
70
76
 *package and for license terms (GPL or RASLIC).                           *
71
77
 ***************************************************************************/
72
78
/* multiple.c
73
 
 $Log: multiple.c,v $
74
 
 Revision 1.7  2008/03/22 17:06:48  yaya
75
 
 Post release cleanup with credits to Ikonen in file headers. -- HJB
76
 
 
77
 
 Revision 1.6  2008/03/21 19:13:47  yaya
78
 
 Update documentation and comments -- HJB
 
79
 $Log$
 
80
 Revision 1.16  2008/03/22 18:42:53  yaya
 
81
 Post release cleanup and credit to Ikonen in file headers. -- HJB
79
82
 
80
83
 Revision 1.15  2008/03/17 03:01:31  yaya
81
84
 Update to agree with 2.7.4.2 release and T. Ikonen GTK mods -- HJB
310
313
 **********************************************************************/
311
314
  
312
315
/* transfor.c */
313
 
extern Real LastRX, LastRY, LastRZ;
314
316
extern Real Zoom;
315
317
 
316
318
struct {
322
324
   /* graphics.h */
323
325
    
324
326
    { DialValue,          sizeof (DialValue),      0 },
 
327
        
 
328
    { &DialQRot,          sizeof (DialQRot),       0 },
 
329
 
325
330
 
326
331
    /* molecule.h */
327
332
    { &Info,              sizeof (Info),           0 },
367
372
    { &NullBonds,         sizeof (NullBonds),      0 },
368
373
    { &MarkAtoms,         sizeof (MarkAtoms),      0 },
369
374
    { &HBondChainsFlag,   sizeof (HBondChainsFlag), 0 },
 
375
    { &AtomTree,          sizeof (AtomTree),       0 },
370
376
 
371
377
    /* render.h */
372
378
    { &VoxelsClean,       sizeof (VoxelsClean),    0 },
396
402
    { &SelectCount,       sizeof (SelectCount),    0 },
397
403
     
398
404
    /* transfor.h */
399
 
    { &LastRX,            sizeof (LastRX),         0 },
400
 
    { &LastRY,            sizeof (LastRY),         0 },
401
 
    { &LastRZ,            sizeof (LastRZ),         0 },
402
 
    { &LastTX,            sizeof (LastTX),         0 },
403
 
    { &LastTY,            sizeof (LastTY),         0 },
404
 
    { &LastTZ,            sizeof (LastTZ),         0 },
 
405
    { &LastDialValue[DialRX],            sizeof (LastDialValue[DialRX]),         0 },
 
406
    { &LastDialValue[DialRY],            sizeof (LastDialValue[DialRY]),         0 },
 
407
    { &LastDialValue[DialRZ],            sizeof (LastDialValue[DialRZ]),         0 },
 
408
    { &LastDialValue[DialTX],            sizeof (LastDialValue[DialTX]),         0 },
 
409
    { &LastDialValue[DialTY],            sizeof (LastDialValue[DialTY]),         0 },
 
410
    { &LastDialValue[DialTZ],            sizeof (LastDialValue[DialTZ]),         0 },
405
411
    { &CenX,              sizeof (CenX),           0 },
406
412
    { &CenY,              sizeof (CenY),           0 },
407
413
    { &CenZ,              sizeof (CenZ),           0 },
449
455
    { &BSrcAtom, sizeof (BSrcAtom), 0 },
450
456
    { &BDstAtom, sizeof (BDstAtom), 0 },
451
457
    { &BondSelected, sizeof (BondSelected), 0 },
452
 
    { &BondsSelected, sizeof (BondsSelected), 0 },
453
 
     
454
 
#ifdef MOVIE_DONE
455
 
    /* script.c movie stuff */
456
 
    { NewDialValue   ,    sizeof (NewDialValue), 0 },
457
 
    { &firstCmd, sizeof (firstCmd), 0 },
458
 
    { LastDialValue  ,    sizeof (LastDialValue), 0 },
459
 
#endif
460
 
     
 
458
    { &BondsSelected, sizeof (BondsSelected), 0 },     
461
459
    { NULL, 0, 0}
462
460
    };
463
461