1
/* Copyright (C) 2000 Damir Zucic */
3
/*=============================================================================
8
Show selected atoms but do not refresh graphics.
11
(1) Pointer to MolComplexS structure, with macromol. complexes.
12
(2) The number of macromolecular complexes.
15
(1) The hiddenF set for each atom in each caught complex.
19
(1) Always positive (trivial).
21
========includes:============================================================*/
26
#include <X11/Xutil.h>
28
#include <X11/Xatom.h>
33
/*======show selected atoms:=================================================*/
35
int ShowNoRefresh_ (MolComplexS *mol_complexSP, int mol_complexesN)
38
MolComplexS *curr_mol_complexSP;
42
/* Check every macromolecular complex: */
43
for (mol_complexI = 0; mol_complexI < mol_complexesN; mol_complexI++)
45
/** Pointer to the current macromolecular complex: **/
46
curr_mol_complexSP = mol_complexSP + mol_complexI;
48
/** Check is the current macromolecular complex caught: **/
49
if (curr_mol_complexSP->catchF == 0) continue;
51
/** Number of atoms in a macromolecular complex: **/
52
atomsN = curr_mol_complexSP->atomsN;
54
/** Scan all atoms in the current complex: **/
55
for (atomI = 0; atomI < atomsN; atomI++)
57
/** Pointer to the current atom: **/
58
curr_atomSP = curr_mol_complexSP->atomSP + atomI;
60
/** Check the selection flag; show selected atoms: **/
61
if (curr_atomSP->selectedF) curr_atomSP->hiddenF = 0;
65
/* Return positive value (trivial): */
69
/*===========================================================================*/