Go to the documentation of this file.
42 return std::find(objects.begin(), objects.end(),
object) != objects.end();
48 if (
object == NULL || this->
contains(
object))
54 objects.push_back(
object);
60 if (
object != NULL && this->
contains(
object))
63 objects.erase(std::remove(objects.begin(), objects.end(),
object), objects.end());
69 this->objects.clear();
77 void scene3D::SceneGroup::setGroupId(std::string groupId)
79 this->groupID = groupId;
std::string getGroupId()
Returns the ID of the SceneGroup.
void addObject(scene3D::SceneObjectPtr object)
Adds an Object to the SceneGroup.
void clearGroup()
Removes all Objects from the SceneGroup.
bool contains(const MemoryID &general, const MemoryID &specific)
Indicates whether general is "less specific" than, or equal to, specific, i.e.
bool contains(scene3D::SceneObjectPtr object)
Checks, if SceneGroup contains Object.
boost::intrusive_ptr< SceneObject > SceneObjectPtr
std::vector< scene3D::SceneObjectPtr > getAllObjects()
Returns all Objects in SceneGroup.
SceneGroup(const std::string &groupID)
Constructor Creates an instance of the class.
void removeObject(scene3D::SceneObjectPtr object)
Removes an Object from the SceneGroup.