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

MolAtom Class Reference

class/struct which holds data for one atom. More...

#include <Atom.h>

List of all members.


Public Methods

void init (int n, int theresid, const 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...

short 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

class/struct which holds data for one atom.

Definition at line 61 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 113 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 126 of file Atom.h.

References bonds, and bondTo.

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

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

Definition at line 95 of file Atom.h.

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

Referenced by BaseMolecule::add_atoms.


Member Data Documentation

signed char MolAtom::altlocindex

signed char MolAtom::atomicnumber

signed char MolAtom::atomType

is this atom part of the backbone?

Definition at line 86 of file Atom.h.

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

signed char MolAtom::bonds

int MolAtom::bondTo[MAXATOMBONDS]

short MolAtom::chainindex

char MolAtom::insertionstr[2]

for insertion codes (padded to 2 chars).

Definition at line 75 of file Atom.h.

Referenced by init, VMDApp::molecule_from_selection_list, and MolFilePlugin::write_structure.

short MolAtom::nameindex

int MolAtom::resid

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 91 of file Atom.h.

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

short MolAtom::resnameindex

short MolAtom::segnameindex

short MolAtom::typeindex

int MolAtom::uniq_resid

The documentation for this class was generated from the following file:
Generated on Tue Nov 18 02:49:42 2025 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002

AltStyle によって変換されたページ (->オリジナル) /