Go to the documentation of this file.
36 std::vector<scene3D::SceneObjectPtr>
45 return std::find(objects.begin(), objects.end(),
object) != objects.end();
52 if (
object == NULL || this->
contains(
object))
58 objects.push_back(
object);
65 if (
object != NULL && this->
contains(
object))
68 objects.erase(std::remove(objects.begin(), objects.end(),
object), objects.end());
75 this->objects.clear();
83 scene3D::SceneGroup::setGroupId(std::string groupId)
85 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.