26 #include <AminoAcidCode.h>
30 namespace Victor {
namespace Biopool {
48 int getStartOffset() {
52 virtual string getClassName()
const {
55 Ligand& getLigand(
unsigned int n);
56 const Ligand& getLigand(
unsigned int n)
const;
57 bool isGap(
int index);
58 const unsigned int sizeLigand()
const;
60 unsigned int maxPdbNumber() {
61 return startOffset + gaps.size() + sizeLigand();
67 void removeLigand(
Ligand* g);
68 void deleteLigand(
Ligand* g);
70 void setStartOffset(
int _offset) {
71 startOffset = _offset;
76 inline void setTrans(vgVector3<double> t);
77 inline void addTrans(vgVector3<double> t);
78 inline void setRot(vgMatrix3<double> r);
79 inline void addRot(vgMatrix3<double> r);
88 Ligand& operator[](
unsigned int n);
89 const Ligand& operator[](
unsigned int n)
const;
94 void resetBoundaries();
110 LigandSet::setTrans(vgVector3<double> t) {
112 getLigand(0).setTrans(t);
116 LigandSet::addTrans(vgVector3<double> t) {
118 getLigand(0).addTrans(t);
122 LigandSet::setRot(vgMatrix3<double> r) {
124 getLigand(0).setRot(r);
128 LigandSet::addRot(vgMatrix3<double> r) {
130 getLigand(0).addRot(r);
134 LigandSet::load(Loader& l) {
135 l.loadLigandSet(*
this);
140 LigandSet::save(Saver& s) {
141 s.saveLigandSet(*
this);
144 inline const unsigned int
145 LigandSet::sizeLigand()
const {
146 return components.size();
150 LigandSet::getLigand(
unsigned int n) {
152 if (n > components.size() - 1)
153 ERROR(
"Index out of range", exception);
154 return *(
dynamic_cast<Ligand*
> (components[n]));
158 LigandSet::getLigand(
unsigned int n)
const {
160 if (n > components.size() - 1)
161 ERROR(
"Index out of range", exception);
162 return *(
dynamic_cast<const Ligand*
> (components[n]));
166 LigandSet::removeLigand(Ligand* l) {
172 LigandSet::deleteLigand(Ligand* l) {
181 LigandSet::operator[](
unsigned int n) {
186 LigandSet::operator[](
unsigned int n)
const {
193 #endif //_LigandSet_H_
bool isGap(int index)
Definition: LigandSet.cc:64
Base class for saving components (Atoms, Groups, etc.).
Definition: Saver.h:39
void insertComponent(Component *g)
Definition: LigandSet.cc:118
Base class for composite structures.
Definition: Component.h:39
Base class for loading components (Atoms, Groups, etc.).
Definition: Loader.h:39
class implements methods to manage the ligandSet
Definition: LigandSet.h:37
Implements methods to manage a polymer created by components.
Definition: Polymer.h:33
void addGap(int index)
Definition: LigandSet.cc:88
virtual void deleteComponent(Component *c)
Definition: Polymer.cc:109
virtual void removeComponent(Component *c)
Definition: Polymer.cc:81
Implements methods to verify the ligand properties.
Definition: Ligand.h:38
virtual LigandSet * clone()
Definition: LigandSet.cc:51