19 #ifndef OST_ATOM_BASE_HH
20 #define OST_ATOM_BASE_HH
30 namespace ost {
namespace mol {
51 operator bool()
const {
return this->IsValid(); }
Three dimensional vector class, using Real precision.
base class for the handler classes
base class for the implementation
base class for AtomHandle and AtomView
const impl::AtomImplPtr & Impl() const
get atom implementation.
String GetStringProperty(Prop::ID prop_id) const
Get String property by id
std::vector< String > GetAltGroupNames() const
void SetName(const String &atom_name)
Set atom name.
int GetIntProperty(Prop::ID prop_id) const
Get int property by id.
impl::AtomImplPtr & Impl()
get atom implementation
Real GetAltOcc(const String &alt_group) const
void SetHetAtom(bool het)
const geom::Vec3 & GetOriginalPos() const
Get original global position in cartesian coordinates (no entity transformation is applied)
const geom::Mat3 & GetAnisou() const
geom::Vec3 GetAltPos(const String &alt_group) const
get alternative atom position
void SetCharge(Real charge)
const geom::Vec3 & GetPos() const
Get global position in cartesian coordinates with entity transformations applied.
Real GetMass() const
get mass of atom
void CheckValidity() const
unsigned long GetIndex() const
Get the internal index.
Real GetRadius() const
returns the van-der-Waals radius of the atom
void SetIndex(const unsigned long index)
void SetBFactor(Real factor)
void SetElement(const String &element)
String GetQualifiedName() const
Get qualified name for atom.
GenericPropContainerImpl * GpImpl()
bool IsHetAtom() const
whether the atom is a hetatm
Real GetAltBFactor(const String &alt_group) const
const GenericPropContainerImpl * GpImpl() const
void SetOccupancy(Real occ)
Real GetBFactor() const
Get isotropic temperature factor of atom.
void SetRadius(Real radius)
const String & GetElement() const
returns the element name of the atom
Real GetCharge() const
get charge
Real GetOccupancy() const
get atom occupancy
const String & GetName() const
Get atom name.
void SetAnisou(const geom::Mat3 &anisou)
AtomBase(const impl::AtomImplPtr &impl)
Real GetFloatProperty(Prop::ID prop_id) const
Get float property by id
#define DLLEXPORT_OST_MOL
boost::shared_ptr< AtomImpl > AtomImplPtr
DLLEXPORT_OST_MOL std::ostream & operator<<(std::ostream &os, const AtomBase &atom)