28 std::vector<scene3D::SceneGroupPtr>
39 if (group->getGroupId().compare(groupId) == 0)
52 if (this->getGroupById(group->getGroupId()) != NULL)
54 throw std::logic_error(
"Group already exists!");
58 sceneGroups.push_back(group);
66 if (
std::find(sceneGroups.begin(), sceneGroups.end(), group) != sceneGroups.end())
69 sceneGroups.erase(std::remove(sceneGroups.begin(), sceneGroups.end(), group),
74 throw std::runtime_error(
"This group is not registered in the sceneGroupManager!");
79 throw std::runtime_error(
"Group is null!");
86 if (this->getGroupById(newGroupId) != NULL)
88 throw std::invalid_argument(
"New ID of Group already exists!");
92 group->setGroupId(newGroupId);