/*! SLGroup::shapeCopy loops over all child nodes and calls their copy method. A new group with all copied child node is returned. */ SLShape* SLGroup::shapeCopy() { SLGroup* copy = new SLGroup(name()); SLNode* current = _first; while (current) { copy->addNode(current->copy()); current = current->next(); } return copy; }