OpenStructure
Public Member Functions | Protected Member Functions | Friends
XCSEditor Class Reference

#include <xcs_editor.hh>

Inherits EditorBase.

Public Member Functions

 XCSEditor ()
 ~XCSEditor ()
 XCSEditor (const XCSEditor &rhs)
XCSEditoroperator= (const XCSEditor &rhs)
void SetAtomOriginalPos (const AtomHandle &atom, const geom::Vec3 &position)
void SetAtomPos (const AtomHandle &atom, const geom::Vec3 &position)
void ApplyTransform (const geom::Mat4 &transform)
void SetTransform (const geom::Mat4 &transform)
void UpdateICS ()
- Public Member Functions inherited from EditorBase
ChainHandle InsertChain (const String &chain_name)
BondHandle Connect (const AtomHandle &first, const AtomHandle &second)
BondHandle Connect (const AtomHandle &first, const AtomHandle &second, unsigned char bond_order)
BondHandle Connect (const AtomHandle &first, const AtomHandle &second, Real len, Real theta, Real phi)
BondHandle Connect (const AtomHandle &first, const AtomHandle &second, Real len, Real theta, Real phi, unsigned char bond_order)
void RenameChain (ChainHandle chain, const String &new_name)
void DeleteAllAtoms (ResidueHandle res)
void DeleteAtom (const AtomHandle &atom)
TorsionHandle AddTorsion (const String &name, const AtomHandle &a1, const AtomHandle &a2, const AtomHandle &a3, const AtomHandle &a4)
void DeleteChain (const ChainHandle &chain)
void DeleteResidue (const ResidueHandle &residue_handle)
void ReorderResidues (const ChainHandle &chain)
void ReorderAllResidues ()
EditMode GetMode () const
void RenameAtom (AtomHandle atom, const String &new_name)
ResidueHandle AppendResidue (ChainHandle chain, const ResidueKey &k)
ResidueHandle AppendResidue (ChainHandle chain, const ResidueKey &k, const ResNum &num)
ResidueHandle InsertResidueBefore (ChainHandle chain, int index, const ResNum &num, const ResidueKey &k)
ResidueHandle InsertResidueAfter (ChainHandle chain, int index, const ResNum &num, const ResidueKey &k)
AtomHandle InsertAtom (ResidueHandle residue, const String &name, const geom::Vec3 &pos, const String &ele="", Real occupancy=1.0, Real b_factor=0.0, bool is_hetatm=false)
AtomHandle InsertAltAtom (ResidueHandle residue, const String &name, const String &alt_group, const geom::Vec3 &pos, const String &ele="")
void AddAltAtomPos (const String &group, const AtomHandle &atom, const geom::Vec3 &position)

Protected Member Functions

 XCSEditor (const EntityHandle &ent, EditMode mode)
void Update ()
- Protected Member Functions inherited from EditorBase
 EditorBase (const EntityHandle &ent, EditMode mode)
void UpdateTrace ()

Friends

class EntityHandle

Additional Inherited Members

- Protected Attributes inherited from EditorBase
EntityHandle ent_
EditMode mode_

Detailed Description

external coordinate system editor

For an introduction to editors go here.

Definition at line 36 of file xcs_editor.hh.


Constructor & Destructor Documentation

XCSEditor ( )

create invalid xcs editor

~XCSEditor ( )
XCSEditor ( const XCSEditor rhs)
XCSEditor ( const EntityHandle ent,
EditMode  mode 
)
protected

Member Function Documentation

void ApplyTransform ( const geom::Mat4 transform)

apply additional transformation to all atoms

This transformation is applied after the transformation already stored in the entity

XCSEditor& operator= ( const XCSEditor rhs)
void SetAtomOriginalPos ( const AtomHandle atom,
const geom::Vec3 position 
)

set original position of atom This function also updates the stores transformed coordinates

void SetAtomPos ( const AtomHandle atom,
const geom::Vec3 position 
)

set transformed position of atom

This function also updates the original coordinates

void SetTransform ( const geom::Mat4 transform)

apply a new transformation to all atoms

void Update ( )
protected
void UpdateICS ( )

immediately update internal coordinate system


Friends And Related Function Documentation

friend class EntityHandle
friend

Definition at line 38 of file xcs_editor.hh.


The documentation for this class was generated from the following file: