Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

MolAtom Struct Reference

Structure which holds data for one atom. More...

#include <Atom.h>

List of all members.

Public Methods

void init (int n, int theresid, char *insertion)
int add_bond (int a, int type)
 add a bond into the atom. Note that each bond will be stored twice, so make sure when using bonds to define whether the 'official' bond is from low # atom -> high #, or vice versa. More...

int bonded (int a)
 return TRUE if this atom is bonded to the specified atom. Returns FALSE otherwise. More...


Public Attributes

short nameindex
 atom name string index. More...

short typeindex
 atom type string index. More...

int uniq_resid
 unique resid, since there can be dups. More...

int bondTo [MAXATOMBONDS]
 list of atoms to which this atom is bonded. More...

signed char bonds
 how many bonds this atom has. More...

signed char atomicnumber
 element atomic number. More...

signed char altlocindex
 alternate location identifier index. More...

char insertionstr [2]
 for insertion codes (padded to 2 chars). More...

signed char chainindex
 chain identifier. More...

short segnameindex
 atom segment name string index. More...

int resid
 resid from original file. More...

short resnameindex
 atom residue name string index. More...

signed char atomType
 is this atom part of the backbone? More...

signed char residueType
 is this part of a larger component? for instance, is this CG atom in an amino acid of some sort? More...


Detailed Description

Structure which holds data for one atom.

Definition at line 45 of file Atom.h.


Member Function Documentation

int MolAtom::add_bond int    a,
int    type
[inline]
 

add a bond into the atom. Note that each bond will be stored twice, so make sure when using bonds to define whether the 'official' bond is from low # atom -> high #, or vice versa.

Definition at line 98 of file Atom.h.

References ATOMNUCLEICBACK, ATOMPROTEINBACK, atomType, bonds, bondTo, and MAXATOMBONDS.

Referenced by BaseMolecule::add_bond.

int MolAtom::bonded int    a [inline]
 

return TRUE if this atom is bonded to the specified atom. Returns FALSE otherwise.

Definition at line 111 of file Atom.h.

References bonds, and bondTo.

Referenced by contacts, PickModeAddBond::pick_molecule_end, vmd_measure_contacts, and vmd_measure_hbonds.

void MolAtom::init int    n,
int    theresid,
char *    insertion
[inline]
 

Definition at line 78 of file Atom.h.

References altlocindex, atomicnumber, ATOMNORMAL, atomType, bonds, bondTo, insertionstr, MAXATOMBONDS, nameindex, resid, residueType, resnameindex, RESNOTHING, segnameindex, typeindex, and uniq_resid.

Referenced by BaseMolecule::add_atom.


Member Data Documentation

signed char MolAtom::altlocindex
 

alternate location identifier index.

Definition at line 57 of file Atom.h.

Referenced by BaseMolecule::add_atom, GeometryMol::atom_formatted_name, init, vmd_bond_search, and MolFilePlugin::write_structure.

signed char MolAtom::atomicnumber
 

element atomic number.

Definition at line 56 of file Atom.h.

Referenced by BaseMolecule::add_atom, assign_atoms, GeometryMol::atom_formatted_name, QMData::create_unique_basis, AtomColor::find, init, QMData::init_electrons, MolFilePlugin::read_optional_structure, and MolFilePlugin::write_structure.

signed char MolAtom::atomType
 

is this atom part of the backbone?

Definition at line 69 of file Atom.h.

Referenced by add_bond, BaseMolecule::analyze, atomsel_backbonetype, AtomColor::find, init, vmd_bond_search, and vmd_measure_hbonds.

signed char MolAtom::bonds
 

how many bonds this atom has.

Definition at line 55 of file Atom.h.

Referenced by access_tcl_atomsel, BaseMolecule::add_bond, add_bond, BaseMolecule::add_bond_dupcheck, assign_atoms, bonded, BaseMolecule::clear_bonds, BaseMolecule::count_bonds, AtomColor::find, getbonds, init, PickModeAddBond::pick_molecule_end, MolFilePlugin::read_optional_structure, setbonds, vmd_measure_hbonds, and MolFilePlugin::write_structure.

int MolAtom::bondTo[MAXATOMBONDS]
 

list of atoms to which this atom is bonded.

Definition at line 54 of file Atom.h.

Referenced by access_tcl_atomsel, add_bond, BaseMolecule::add_bond_dupcheck, assign_atoms, bonded, BaseMolecule::count_bonds, AtomColor::find, getbonds, init, PickModeAddBond::pick_molecule_end, setbonds, vmd_measure_hbonds, and MolFilePlugin::write_structure.

signed char MolAtom::chainindex
 

chain identifier.

Definition at line 62 of file Atom.h.

Referenced by BaseMolecule::add_atom, GeometryMol::atom_formatted_name, print_atom_info, and MolFilePlugin::write_structure.

char MolAtom::insertionstr[2]
 

for insertion codes (padded to 2 chars).

Definition at line 58 of file Atom.h.

Referenced by init, and MolFilePlugin::write_structure.

short MolAtom::nameindex
 

atom name string index.

Definition at line 51 of file Atom.h.

Referenced by BaseMolecule::add_atom, BaseMolecule::analyze, GeometryMol::atom_formatted_name, GeometryMol::atom_short_name, atomsel_name, BaseMolecule::find_atom_in_residue, init, print_atom_info, vmd_bond_search, write_stride_record, and MolFilePlugin::write_structure.

int MolAtom::resid
 

resid from original file.

Definition at line 64 of file Atom.h.

Referenced by GeometryMol::atom_formatted_name, GeometryMol::atom_short_name, init, print_atom_info, and MolFilePlugin::write_structure.

signed char MolAtom::residueType
 

is this part of a larger component? for instance, is this CG atom in an amino acid of some sort?

Definition at line 74 of file Atom.h.

Referenced by BaseMolecule::analyze, atomsel_residuetype, init, and write_stride_record.

short MolAtom::resnameindex
 

atom residue name string index.

Definition at line 65 of file Atom.h.

Referenced by BaseMolecule::add_atom, GeometryMol::atom_formatted_name, GeometryMol::atom_short_name, AtomColor::find, init, print_atom_info, write_stride_record, and MolFilePlugin::write_structure.

short MolAtom::segnameindex
 

atom segment name string index.

Definition at line 63 of file Atom.h.

Referenced by BaseMolecule::add_atom, GeometryMol::atom_formatted_name, init, print_atom_info, and MolFilePlugin::write_structure.

short MolAtom::typeindex
 

atom type string index.

Definition at line 52 of file Atom.h.

Referenced by BaseMolecule::add_atom, GeometryMol::atom_formatted_name, atomsel_type, init, print_atom_info, and MolFilePlugin::write_structure.

int MolAtom::uniq_resid
 

unique resid, since there can be dups.

Definition at line 53 of file Atom.h.

Referenced by BaseMolecule::atom_fragment, BaseMolecule::atom_residue, AtomColor::find, init, print_atom_info, and write_stride_record.


The documentation for this struct was generated from the following file:
Generated on Sun May 27 01:59:58 2012 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002