#include <atom_base.hh>
Inherits GenericPropContainer< AtomBase >.
Inherited by AtomHandle, and AtomView.
Public Member Functions | |
| AtomBase () | |
| AtomBase (const impl::AtomImplPtr &impl) | |
| const String & | GetName () const |
| void | SetName (const String &atom_name) |
| const geom::Vec3 & | GetPos () const |
| const geom::Vec3 & | GetOriginalPos () const |
| geom::Vec3 | GetAltPos (const String &alt_group) const |
| std::vector< String > | GetAltGroupNames () const |
| String | GetQualifiedName () const |
| String | GetStringProperty (Prop::ID prop_id) const |
| Real | GetFloatProperty (Prop::ID prop_id) const |
| int | GetIntProperty (Prop::ID prop_id) const |
| unsigned long | GetIndex () const |
| Real | GetRadius () const |
| const String & | GetElement () const |
| bool | IsHetAtom () const |
| Real | GetBFactor () const |
| Real | GetMass () const |
| Real | GetCharge () const |
| Real | GetOccupancy () const |
| const impl::AtomImplPtr & | Impl () const |
| impl::AtomImplPtr & | Impl () |
Atom properties | |
| const AtomProp & | GetAtomProps () const |
| void | SetAtomProps (const AtomProp &prop) |
Handle validity | |
| operator bool () const | |
| bool | IsValid () const |
Protected Member Functions | |
| GenericPropContainerImpl * | GpImpl () |
| const GenericPropContainerImpl * | GpImpl () const |
| void | CheckValidity () const |
Protected Attributes | |
| impl::AtomImplPtr | impl_ |
Friends | |
| class | ConstGenericPropContainer< AtomBase > |
Groups common functionality for AtomView and AtomHandle.
Most of the atom properties such as temperature factor, element, radius and charge can be accessed with GetAtomProps() that returns an object of type AtomProp.
Like ResidueBase residues, chains and entities atoms are generic property containers and may as such store custom properties.
The position of the atoms can be accessed via GetPos(). Note, however that the position of an atom is undefined when there are pending changes of an ICSEditor in buffered edit mode. Before calling GetPos(), ICSEditor::UpdateXCS() should be called explicitly.
Definition at line 47 of file atom_base.hh.
| AtomBase | ( | ) |
| AtomBase | ( | const impl::AtomImplPtr & | impl | ) |
| void CheckValidity | ( | ) | const [protected] |
| std::vector<String> GetAltGroupNames | ( | ) | const |
| geom::Vec3 GetAltPos | ( | const String & | alt_group | ) | const |
get alternative atom position
| const AtomProp& GetAtomProps | ( | ) | const |
Get atom properties such as element name, radius crystallographic occupancy and temperature factors.
| Real GetBFactor | ( | ) | const |
Get isotropic temperature factor of atom.
The returned value may be zero for some structures
| Real GetCharge | ( | ) | const |
get charge
| const String& GetElement | ( | ) | const |
returns the element name of the atom
| unsigned long GetIndex | ( | ) | const |
Get the internal index.
| int GetIntProperty | ( | Prop::ID | prop_id | ) | const |
Get int property by id.
| Real GetMass | ( | ) | const |
get mass of atom
The returned value may be zero
| const String& GetName | ( | ) | const |
Get atom name.
In Python the atom name may also be accesssed over the property Name
| Real GetOccupancy | ( | ) | const |
get atom occupancy
| const geom::Vec3& GetOriginalPos | ( | ) | const |
Get original global position in cartesian coordinates (no entity transformation is applied).
| const geom::Vec3& GetPos | ( | ) | const |
Get global position in cartesian coordinates with entity transformations applied.
| String GetQualifiedName | ( | ) | const |
Get qualified name for atom.
The qualified name consists of the atom name as well as a unique residue identifier and chain name. For CA of a glycine with residue number 2 of chain A, the qualified name is "A.GLY2.CA".
| Real GetRadius | ( | ) | const |
returns the van-der-Waals radius of the atom
| const GenericPropContainerImpl* GpImpl | ( | ) | const [protected] |
| GenericPropContainerImpl* GpImpl | ( | ) | [protected] |
| impl::AtomImplPtr& Impl | ( | ) |
get atom implementation
| const impl::AtomImplPtr& Impl | ( | ) | const |
get atom implementation.
Intended for internal use.
| bool IsHetAtom | ( | ) | const |
whether the atom is a hetatm
| bool IsValid | ( | ) | const |
| operator bool | ( | ) | const |
check validity of handle
check, whether the bond handle points to a valid atom.
| void SetAtomProps | ( | const AtomProp & | prop | ) |
Set atom properties.
| void SetName | ( | const String & | atom_name | ) |
Set atom name.
You are free to set the atom name to whatever you want. You must be aware that certain algorithms and routines rely on proper naming of the atoms. It is thus advised to use IUPAC naming rules.
| atom_name | is the new atom name. |
friend class ConstGenericPropContainer< AtomBase > [friend] |
Definition at line 52 of file atom_base.hh.
impl::AtomImplPtr impl_ [protected] |
Definition at line 163 of file atom_base.hh.
1.5.8