19 #ifndef OST_EDITOR_BASE_HS
20 #define OST_EDITOR_BASE_HS
33 namespace ost {
namespace mol {
162 Real occupancy=1.0,
Real b_factor=0.0,
163 bool is_hetatm=
false);
215 unsigned char bond_order);
220 unsigned char bond_order);
Three dimensional vector class, using Real precision.
base class for entity editors
void RenumberChain(const ChainHandle &chain, int start, bool keep_spacing)
renumber residues of one chain
ResidueHandle InsertResidueBefore(ChainHandle chain, int index, const ResNum &num, const ResidueKey &k)
void Prune()
Removes all residues and chains in the attached entity that don't contain any atoms.
void DeleteBonds(const BondHandleList &bonds)
AtomHandle InsertAltAtom(ResidueHandle residue, const String &name, const String &alt_group, const geom::Vec3 &pos, const String &ele="", Real occ=1.0, Real b_factor=0.0)
Insert new atom with alternative position indicator.
void RenumberChain(ChainHandle chain, const ResNumList &new_numbers)
void RenumberAllResidues(int start, bool keep_spacing)
renumber residues of all chains
ChainHandle InsertChain(const String &chain_name, ChainHandle chain, bool deep=false)
create new chain
TorsionHandle AddTorsion(const String &name, const AtomHandle &a1, const AtomHandle &a2, const AtomHandle &a3, const AtomHandle &a4)
Add named torsion to entity.
void RenameResidue(ResidueHandle res, const String &new_name)
ResidueHandle InsertResidueAfter(ChainHandle chain, int index, const ResNum &num, const ResidueKey &k)
insert residue into chain
void DeleteResidue(const ResidueHandle &residue_handle)
Delete residue.
BondHandle Connect(const AtomHandle &first, const AtomHandle &second, Real len, Real theta, Real phi)
void DeleteChain(const ChainHandle &chain)
delete chain
AtomHandle InsertAltAtom(ResidueHandle residue, AtomHandle atom, const String &alt_group)
Insert new atom with alternative position indicator.
EntityHandle GetEntity() const
\ brief return entity this editor works on
ResidueHandle AppendResidue(ChainHandle chain, ResidueHandle residue, bool deep=false)
void SetChainType(ChainHandle chain, const ChainType type)
Assign type of chain according to ChainType.
AtomHandle InsertAtom(ResidueHandle residue, AtomHandle atom)
Insert new atom.
void DeleteAllAtoms(ResidueHandle res)
Delete all atoms of residue.
void DeleteAtom(const AtomHandle &atom)
Delete specific atom from this residue.
BondHandle Connect(const AtomHandle &first, const AtomHandle &second)
connect two atoms with bond
BondHandle Connect(const AtomHandle &first, const AtomHandle &second, unsigned char bond_order)
void SetChainDescription(ChainHandle chain, const String desc)
Assign a description to a chain.
void ReorderAllResidues()
reorder residues of all chains based on their residue number
void SetResidueNumber(ResidueHandle res, const ResNum &num)
BondHandle Connect(const AtomHandle &first, const AtomHandle &second, Real len, Real theta, Real phi, unsigned char bond_order)
EditMode GetMode() const
Get edit mode of editor.
void ReorderResidues(const ChainHandle &chain)
reorder residues of given chain based on their residue number
void RenameAtom(AtomHandle atom, const String &new_name)
change the name of the atom to the new name
void AddAltAtomPos(const String &group, const AtomHandle &atom, const geom::Vec3 &position, Real occ=1.0, Real b_factor=0.0)
Add alternative atom position.
ChainHandle InsertChain(const String &chain_name)
create new chain
void DeleteBond(const BondHandle &bond)
void DeleteAtoms(const AtomHandleList &atoms)
ResidueHandle AppendResidue(ChainHandle chain, const ResidueKey &k, const ResNum &num)
ResidueHandle AppendResidue(ChainHandle chain, const ResidueKey &k)
void RenameChain(ChainHandle chain, const String &new_name)
EditorBase(const EntityHandle &ent, EditMode mode)
Named torsion (dihedral) angle.
#define DLLEXPORT_OST_MOL
std::vector< AtomHandle > AtomHandleList
std::vector< ResNum > ResNumList
std::vector< BondHandle > BondHandleList