NAMD
|
#include <PDB.h>
Public Member Functions | |
PDB (const char *pdbfilename) | |
PDB (molfile_plugin_t *pIOHdl, void *pIOFileHdl, int numAtoms, const float *occupancy, const float *bfactor) | |
PDB (const char *, Ambertoppar *) | |
PDB (const char *filename, AmberParm7Reader::Ambertoppar *amber_data) | |
PDB (const char *filename, const GromacsTopFile *topology) | |
~PDB (void) | |
void | write (const char *outfilename, const char *commentline=NULL) |
int | num_atoms (void) |
PDBAtom * | atom (int place) |
PDBAtomList * | atoms (void) |
void | find_extremes (const Lattice &, BigReal frac=1.0) |
void | get_extremes (ScaledPosition &xmin, ScaledPosition &xmax) const |
void | set_all_positions (Vector *) |
void | get_all_positions (Vector *) |
void | get_position_for_atom (Vector *, int) |
PDB::PDB | ( | const char * | pdbfilename | ) |
Definition at line 141 of file PDB.C.
References PDBAtom::alternatelocation(), PDBData::ATOM, PDBAtom::coordinates(), PAL::data, Fclose(), Fopen(), PDBData::HETATM, NAMD_die(), NAMD_err(), new_PDBData(), PAL::next, next(), PDBAtom::occupancy(), and PDBAtom::temperaturefactor().
PDB::PDB | ( | molfile_plugin_t * | pIOHdl, |
void * | pIOFileHdl, | ||
int | numAtoms, | ||
const float * | occupancy, | ||
const float * | bfactor | ||
) |
Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.
Definition at line 83 of file PDB.C.
References PDBAtom::coordinates(), NAMD_die(), PDBAtom::occupancy(), and PDBAtom::temperaturefactor().
PDB::PDB | ( | const char * | filename, |
Ambertoppar * | amber_data | ||
) |
Definition at line 553 of file PDB.C.
References Ambertoppar::AtomNames, Ambertoppar::AtomRes, PDBAtom::coordinates(), PDBAtom::default_occupancy, PDBAtom::default_temperaturefactor, Fopen(), NAMD_die(), NAMD_err(), PDBAtom::name(), Ambertoppar::Natom, readtoeoln(), PDBAtom::residuename(), PDBAtom::residueseq(), Ambertoppar::ResNames, and PDBAtom::serialnumber().
PDB::PDB | ( | const char * | filename, |
AmberParm7Reader::Ambertoppar * | amber_data | ||
) |
Definition at line 624 of file PDB.C.
References AmberParm7Reader::Ambertoppar::AtomNames, AmberParm7Reader::Ambertoppar::AtomRes, PDBAtom::default_occupancy, PDBAtom::default_temperaturefactor, Fopen(), NAMD_die(), NAMD_err(), AmberParm7Reader::Ambertoppar::Natom, readtoeoln(), and AmberParm7Reader::Ambertoppar::ResNames.
PDB::PDB | ( | const char * | filename, |
const GromacsTopFile * | topology | ||
) |
Definition at line 697 of file PDB.C.
References PDBAtom::coordinates(), PDBAtom::default_occupancy, PDBAtom::default_temperaturefactor, Fopen(), GromacsTopFile::getAtom(), GromacsTopFile::getNumAtoms(), LINESIZE, NAMD_die(), NAMD_err(), PDBAtom::name(), PDBAtom::residuename(), PDBAtom::residueseq(), and PDBAtom::serialnumber().
PDB::~PDB | ( | void | ) |
PDBAtom * PDB::atom | ( | int | place | ) |
Definition at line 393 of file PDB.C.
Referenced by Molecule::build_go_arrays(), Molecule::build_go_sigmas(), Molecule::build_go_sigmas2(), Molecule::build_gridforce_params(), find_extremes(), colvarproxy_namd::load_atoms_pdb(), colvarproxy_namd::load_coords_pdb(), and Molecule::prepare_qm().
|
inline |
Definition at line 437 of file PDB.C.
References Lattice::a_r(), atom(), Lattice::b_r(), Lattice::c_r(), Lattice::origin(), ResizeArray< Elem >::resize(), Vector::x, PDBAtom::xcoor(), Vector::y, PDBAtom::ycoor(), Vector::z, and PDBAtom::zcoor().
Referenced by WorkDistrib::patchMapInit().
void PDB::get_all_positions | ( | Vector * | pos | ) |
Definition at line 365 of file PDB.C.
References Vector::x, Vector::y, and Vector::z.
Referenced by WorkDistrib::createAtomLists().
|
inline |
Definition at line 104 of file PDB.h.
Referenced by WorkDistrib::patchMapInit(), and Node::startup().
void PDB::get_position_for_atom | ( | Vector * | pos, |
int | aid | ||
) |
int PDB::num_atoms | ( | void | ) |
Definition at line 323 of file PDB.C.
Referenced by Molecule::build_go_arrays(), Molecule::build_go_sigmas(), Molecule::build_go_sigmas2(), Molecule::build_gridforce_params(), WorkDistrib::createAtomLists(), colvarproxy_namd::load_atoms_pdb(), colvarproxy_namd::load_coords_pdb(), NamdState::loadStructure(), WorkDistrib::patchMapInit(), Molecule::prepare_qm(), and read_binary_coors().
void PDB::set_all_positions | ( | Vector * | pos | ) |
Definition at line 331 of file PDB.C.
References Vector::x, PDBAtom::xcoor(), Vector::y, and Vector::z.
Referenced by read_binary_coors().
void PDB::write | ( | const char * | outfilename, |
const char * | commentline = NULL |
||
) |
Definition at line 261 of file PDB.C.
References PDBData::COLUMNS, NAMD_err(), and PDBAtom::sprint().