19#ifndef OST_TORSION_HANDLE_HH
20#define OST_TORSION_HANDLE_HH
27namespace ost {
namespace mol {
59 operator bool()
const;
Three dimensional vector class, using Real precision.
Named torsion (dihedral) angle.
Real GetAngle() const
get dihedral angle based on whatever coordinate system is available
TorsionHandle(const impl::TorsionImplP &im)
ctor for internal use, in public interface for convenience purposes
const String & GetName() const
geom::Vec3 GetOriginalPos() const
get position, i.e midpoint between the second and third atom (original coordinates)
const impl::TorsionImplP & Impl() const
geom::Vec3 GetPos() const
get position, i.e midpoint between the second and third atom (transformed coordinates)
TorsionHandle()
necessary dummy ctor, creates invalid handle
void CheckValidity() const
impl::TorsionImplP & Impl()
AtomHandle GetSecond() const
return second atom
AtomHandle GetFourth() const
return fourth atom
void Apply(EntityVisitor &v)
entry point for entity visitor
bool IsValid() const
check validity of handle
AtomHandle GetThird() const
return third atom
AtomHandle GetFirst() const
return first atom
#define DLLEXPORT_OST_MOL
boost::shared_ptr< TorsionImpl > TorsionImplP
Real DLLEXPORT_OST_MOL DihedralAngle(const AtomHandle &a1, const AtomHandle &a2, const AtomHandle &a3, const AtomHandle &a4)
DLLEXPORT_OST_MOL std::ostream & operator<<(std::ostream &os, const AtomBase &atom)