20 #ifndef OST_MOL_BASE_BUILDER_HH
21 #define OST_MOL_BASE_BUILDER_HH
33 namespace ost {
namespace mol {
45 chain_ = edi_.InsertChain(name);
52 res_ = edi_.AppendResidue(chain_, name);
58 res_.SetOneLetterCode(olc);
63 edi_.InsertAtom(res_, name, pos);
73 edi_.Connect(res_.FindAtom(
"N"), res_.FindAtom(
"CA"));
74 edi_.Connect(res_.FindAtom(
"CA"), res_.FindAtom(
"C"));
75 edi_.Connect(res_.FindAtom(
"C"), res_.FindAtom(
"O"));
Three dimensional vector class, using Real precision.
Builder & Residue(const String &name)
Builder & Gly(bool connect=true)
Builder & OneLetterCode(char olc)
Builder & Atom(const String &name, const geom::Vec3 &pos=geom::Vec3())
Builder & ConnectToPrev()
Builder & Chain(const String &name)
external coordinate system editor