OpenSim::ObjectGroup Class Reference
A class implementing an object group.
More...
#include <ObjectGroup.h>
List of all members.
Detailed Description
A class implementing an object group.
For most uses, object groups are owned and managed by the Set that contains the object.
- Author:
- Peter Loan
- Version:
- 1.0
Constructor & Destructor Documentation
ObjectGroup::ObjectGroup |
( |
|
) |
|
OpenSim::ObjectGroup::ObjectGroup |
( |
const std::string & |
aName |
) |
|
ObjectGroup::ObjectGroup |
( |
const ObjectGroup & |
aGroup |
) |
|
Copy constructor.
- Parameters:
-
| aGroup | Group to be copied. |
ObjectGroup::~ObjectGroup |
( |
|
) |
[virtual] |
Member Function Documentation
void ObjectGroup::add |
( |
Object * |
aObject |
) |
|
Add an object to the group.
- Parameters:
-
| aObject | pointer to the object. |
bool OpenSim::ObjectGroup::contains |
( |
const std::string & |
aName |
) |
const |
Object * ObjectGroup::copy |
( |
|
) |
const [virtual] |
Copy this muscle group and return a pointer to the copy.
The copy constructor for this class is used.
- Returns:
- Pointer to a copy of this group.
Reimplemented from OpenSim::Object.
void ObjectGroup::copyData |
( |
const ObjectGroup & |
aGroup |
) |
|
Copy data members from one ObjectGroup to another.
- Parameters:
-
const Array<Object*>& OpenSim::ObjectGroup::getMembers |
( |
|
) |
const [inline] |
Assignment operator.
- Returns:
- Reference to this object.
Reimplemented from OpenSim::Object.
void ObjectGroup::remove |
( |
const Object * |
aObject |
) |
|
Remove an object from the group.
- Parameters:
-
| aObject | pointer to the object. |
void ObjectGroup::replace |
( |
const Object * |
aOldObject, |
|
|
Object * |
aNewObject | |
|
) |
| | |
Replace an object in the group with another object.
- Parameters:
-
| aOldObject | pointer to the old object. |
| aNewObject | pointer to the new object. |
void ObjectGroup::setup |
( |
ArrayPtrs< Object > & |
aObjects |
) |
|
Set up the group, after the member names have been deserialized.
For each member name, if the name is the name of an object in aObject (the objects in the set that this group belongs to), then store a pointer to the object in the same index in _memberObjects as the name is in _memberNames. If the member name does not correspond to an object in aObjects, remove the name from _memberNames.
- Parameters:
-
| aObjects | list of objects that are in the set that this group belongs to. |
Member Data Documentation
The documentation for this class was generated from the following files:
- OpenSim/Common/ObjectGroup.h
- OpenSim/Common/ObjectGroup.cpp