19 #ifndef OST_ENTITY_HANDLE_HH
20 #define OST_ENTITY_HANDLE_HH
36 namespace ost {
namespace mol {
153 const ResNum& number)
const;
164 const String& atom_name)
const;
Three dimensional vector class, using Real precision.
XCSEditor EditXCS(EditMode mode=UNBUFFERED_EDIT) const
Get editor for external coordinate system to manipulate atom positions.
EntityView Select(const Query &q, QueryFlags flags) const
return view based on a query object, specifying behavior flags
EntityHandle(const impl::EntityImplPtr &)
internally used ctor
bool HasTransform() const
checks whether a transform has been set
EntityView CreateFullView() const
return a (new) full view of this entity
EntityHandle()
default ctor. creates invalid handle.
TorsionHandle FindTorsion(const AtomHandle &a1, const AtomHandle &a2, const AtomHandle &a3, const AtomHandle &a4) const
Search a specific torsion.
EntityView Select(const String &query_string) const
return view based on query String.
void SetDefaultQueryFlags(QueryFlags flags)
set default query flags these will be used if flags are not explicitely specified as a second argumen...
void ClearTransform()
remove transform
bool operator==(const EntityHandle &ref) const
geom::Vec3List GetAtomPosList(bool ordered_by_index=false) const
get complete list of atom positions
void FixTransform()
write transformed pos to orig, and the clear tf
ResidueHandle FindResidue(const String &chain_name, const ResNum &number) const
Real GetMass() const
Get entity's mass.
DLLEXPORT_OST_MOL EntityHandle CreateEntity()
create entity
geom::Transform GetTransform() const
retrieve transformation of this entity
void SetTransform(const geom::Transform &t)
set transformation that will affect this entity
ICSEditor EditICS(EditMode mode=UNBUFFERED_EDIT) const
Get editor for the internal coordinate system to manipulate torsions bond lengths and angles between ...
void Swap(EntityHandle &eh)
swaps implementations on the entity handle level
EntityView CreateEmptyView() const
return a (new) empty view of this entity
AtomHandle FindAtom(const String &chain_name, const ResNum &number, const String &atom_name) const
geom::AlignedCuboid GetBounds() const
void DeepSwap(EntityHandle &eh)
ChainHandleList GetChainList() const
Get list of chains.
bool operator!=(const EntityHandle &ref) const
int GetAtomCount() const
Get number of atoms of this entity.
geom::Vec3 GetCenterOfMass() const
Get entity's center of mass (mass weighted)
unsigned long GetHashCode() const
EntityView Select(const String &query_string, QueryFlags flags) const
return view based on query String, specifying behavior flags
Real GetAngle(const AtomHandle &a1, const AtomHandle &a2, const AtomHandle &a3) const
Get angle in radians between bonds a1-a2 and a2-a3.
ResidueHandleList GetResidueList() const
get complete list of residues
Real GetAngle(const AtomView &a1, const AtomView &a2, const AtomView &a3) const
Get angle in radians between bonds a1-a2 and a2-a3.
EntityHandle GetHandle() const
get this handle
geom::Mat4 GetTransformationMatrix() const
DEPRECATED.
void Apply(EntityVisitor &v)
visitor interface
mol::BondHandleList GetBondList() const
Get list of bonds.
EntityView Select(const Query &q) const
return view based on a query object
void DetachObserver(const EntityObserverPtr &)
remove observer
AtomHandleList FindWithin(const geom::Vec3 &pos, Real radius) const
use atom hash to perform fast within lookup
geom::Mat4 GetInvTransformationMatrix() const
DEPRECATED.
int GetBondCount() const
Get number of bonds.
int GetResidueCount() const
Get number of residues of this entity.
AtomHandleList GetAtomList() const
get complete list of atoms
int GetChainCount() const
Get number of chains of this entity.
bool IsTransformationIdentity() const
DEPRECATED.
QueryFlags GetDefaultQueryFlags() const
return default query flags
editor for internal molecule coordinates
Named torsion (dihedral) angle.
external coordinate system editor
#define DLLEXPORT_OST_MOL
boost::shared_ptr< EntityImpl > EntityImplPtr
std::vector< AtomHandle > AtomHandleList
boost::shared_ptr< EntityObserver > EntityObserverPtr
std::vector< BondHandle > BondHandleList
std::vector< ChainHandle > ChainHandleList
std::vector< ResidueHandle > ResidueHandleList