Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

BTK::Atom Class Reference

A minimal Atom class. More...

#include <atom.h>

Collaboration diagram for BTK::Atom:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Atom (ATOM::index_t index=ATOM::UNKNOWN, ELEMENT::index_t element=ELEMENT::UNKNOWN, group_type *group=0)
 Default constructor.

 Atom (BTKVector const &pos, ATOM::index_t index=ATOM::UNKNOWN, ELEMENT::index_t element=ELEMENT::UNKNOWN, group_type *group=0)
 BTKVector coordinate constructor.

 Atom (double X, double Y, double Z, ATOM::index_t index=ATOM::UNKNOWN, ELEMENT::index_t element=ELEMENT::UNKNOWN, group_type *group=0)
 cartesian coordinate constructor.

virtual ~Atom ()
ATOM::index_t atom_index () const
 report the topological type of the atom

void set_atom_index (ATOM::index_t x)
 set the topological type of the atom

virtual const std::string & atom_name () const
 report the name of the atom's topological type

ELEMENT::index_t element () const
 report the chemical element type

void set_element (ELEMENT::index_t element)
 set the chemical element type

std::string element_name () const
virtual int group_num () const
 report the order number of the group containing the atom

virtual const std::string & group_name3 () const
 report the name of the group containing the atom

GROUP::index_t group_index () const
 report the group index type of the group containing the atom

void set_group (group_type &a)
 declare what group has primary ownership of the atom

const BTKVectorposition () const
void set_position (const BTKVector &position)
void print_pdb_line (int atom_num, char chain_id, std::ostream &os) const
bool is_selected () const
void set_is_selected (const bool is_selected)

Detailed Description

A minimal Atom class.

This is the root Atom class from which more complex atomtypes can be derived. This class carries an index of its topological type and a pointer to the group which contains it (which can be none).


Constructor & Destructor Documentation

BTK::Atom::Atom ATOM::index_t  index = ATOM::UNKNOWN,
ELEMENT::index_t  element = ELEMENT::UNKNOWN,
group_type group = 0
[inline]
 

Default constructor.

Here is the call graph for this function:

BTK::Atom::Atom BTKVector const &  pos,
ATOM::index_t  index = ATOM::UNKNOWN,
ELEMENT::index_t  element = ELEMENT::UNKNOWN,
group_type group = 0
[inline]
 

BTKVector coordinate constructor.

Here is the call graph for this function:

BTK::Atom::Atom double  X,
double  Y,
double  Z,
ATOM::index_t  index = ATOM::UNKNOWN,
ELEMENT::index_t  element = ELEMENT::UNKNOWN,
group_type group = 0
[inline]
 

cartesian coordinate constructor.

Here is the call graph for this function:

virtual BTK::Atom::~Atom  )  [inline, virtual]
 


Member Function Documentation

ATOM::index_t BTK::Atom::atom_index  )  const [inline]
 

report the topological type of the atom

virtual const std::string& BTK::Atom::atom_name  )  const [inline, virtual]
 

report the name of the atom's topological type

Here is the call graph for this function:

ELEMENT::index_t BTK::Atom::element  )  const [inline]
 

report the chemical element type

std::string BTK::Atom::element_name  )  const [inline]
 

Here is the call graph for this function:

GROUP::index_t BTK::Atom::group_index  )  const [inline]
 

report the group index type of the group containing the atom

Here is the call graph for this function:

virtual const std::string& BTK::Atom::group_name3  )  const [inline, virtual]
 

report the name of the group containing the atom

Here is the call graph for this function:

virtual int BTK::Atom::group_num  )  const [inline, virtual]
 

report the order number of the group containing the atom

Here is the call graph for this function:

bool BTK::Atom::is_selected  )  const [inline]
 

const BTKVector& BTK::Atom::position  )  const [inline]
 

void BTK::Atom::print_pdb_line int  atom_num,
char  chain_id,
std::ostream &  os
const [inline]
 

Here is the call graph for this function:

void BTK::Atom::set_atom_index ATOM::index_t  x  )  [inline]
 

set the topological type of the atom

Here is the call graph for this function:

void BTK::Atom::set_element ELEMENT::index_t  element  )  [inline]
 

set the chemical element type

void BTK::Atom::set_group group_type a  )  [inline]
 

declare what group has primary ownership of the atom

void BTK::Atom::set_is_selected const bool  is_selected  )  [inline]
 

void BTK::Atom::set_position const BTKVector position  )  [inline]
 


The documentation for this class was generated from the following file:
Generated on Wed Apr 14 00:43:19 2004 for BTK by doxygen 1.3.6