clipper::MAtom Class Reference

MiniMol atom object. More...

#include <minimol.h>

Inheritance diagram for clipper::MAtom:
clipper::Atom clipper::PropertyManager

List of all members.

Public Member Functions

 MAtom ()
 null constructor
 MAtom (const clipper::Atom &atom)
 constructor: from clipper::Atom
const Stringid () const
 get atom ID, e.g. " N ", " CA ", " CG1", " CA :A"
void set_id (const String &s)
 set atom ID
String name () const
 get atom name, i.e. the ID, omitting any alternate conformation code
void set_name (const String s, const String altconf="")
 set full id
const Stringelement () const
 get element e.g. H, C, Zn2+
const Coord_orthcoord_orth () const
 get orth coordinate
const ftypeoccupancy () const
 get occupancy
const ftypeu_iso () const
 get isotropic U
const U_aniso_orthu_aniso_orth () const
 get anisotropic U
void set_element (const String &s)
 set element
void set_coord_orth (const Coord_orth &s)
 set coord_orth
void set_occupancy (const ftype &s)
 set occupancy
void set_u_iso (const ftype &s)
 set u_iso
void set_u_aniso_orth (const U_aniso_orth &s)
 set u_aniso
void transform (const RTop_orth rt)
 apply transform to object
const Atomatom () const
 explicitly get atom
Atomatom ()
 explicitly set atom
MAtomcopy (const MAtom &other, const MM::COPY &mode)
 configureable copy function

Static Public Member Functions

static String id_tidy (const String &id)
 convert ID to std format
static bool id_match (const String &id1, const String &id2, const MM::MODE &mode)
 convert ID to std format

Detailed Description

MiniMol atom object.

The MiniMol atom is derived from the basic clipper::Atom, with the addition of an 'id', which is a unique identifier within a monomer in accordance with the mmCIF definition.

In addition, it is a clipper::PropertyManager, which means you can add labelled properties of any type to the object. These may be simple strings, or complex objects such as maps, function objects, or whatever.

The most commonly used properties are:

The id() is the unique key which identifies an atom.


Member Function Documentation

MAtom & clipper::MAtom::copy ( const MAtom other,
const MM::COPY &  mode 
)

configureable copy function

copy from other atom. mode can be MM::COPY_M, COPY_P, COPY_MP, COPY_C, COPY_MC, COPY_PC, COPY_MPC, where M means copy members, P means copy PropertyMananger properties, and C means copy children. Children are copied with the same option. The values 'MEMBERS', 'PROPERTIES', 'CHILDREN' can also be used.

References atom().


The documentation for this class was generated from the following files:

Generated on 4 Jan 2010 for Clipper_minimol by  doxygen 1.6.1