19 #ifndef OST_TORSION_HANDLE_HH
20 #define OST_TORSION_HANDLE_HH
27 namespace ost {
namespace mol {
53 operator bool()
const;
Three dimensional vector class, using Real precision.
Named torsion (dihedral) angle.
impl::TorsionImplP & Impl()
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
geom::Vec3 GetOriginalPos() const
get position, i.e midpoint between the second and third atom (original coordinates)
geom::Vec3 GetPos() const
get position, i.e midpoint between the second and third atom (transformed coordinates)
TorsionHandle()
necessary dummy ctor, creates invalid handle
const impl::TorsionImplP & Impl() const
void CheckValidity() const
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
const String & GetName() const
AtomHandle GetThird() const
return third atom
#define DLLEXPORT_OST_MOL
boost::shared_ptr< TorsionImpl > TorsionImplP
DLLEXPORT_OST_MOL std::ostream & operator<<(std::ostream &os, const AtomBase &atom)
Real DLLEXPORT_OST_MOL DihedralAngle(const AtomHandle &a1, const AtomHandle &a2, const AtomHandle &a3, const AtomHandle &a4)