step/stepcore
StepCore::ItemGroup Class Reference
[World]
#include <world.h>
List of all members.
Detailed Description
Groups several items together.
Definition at line 316 of file world.h.
Constructor & Destructor Documentation
| StepCore::ItemGroup::ItemGroup |
( |
const QString & |
name = QString() |
) |
[inline] |
Constructs empty group.
Definition at line 322 of file world.h.
| StepCore::ItemGroup::ItemGroup |
( |
const ItemGroup & |
group |
) |
|
Constructs a copy of the group (deep copy).
Definition at line 73 of file world.cc.
| StepCore::ItemGroup::~ItemGroup |
( |
|
) |
|
Destroys the group and all its subitems.
Definition at line 132 of file world.cc.
Member Function Documentation
| void StepCore::ItemGroup::addItem |
( |
Item * |
item |
) |
[virtual] |
Add new item to the group.
Definition at line 94 of file world.cc.
| void StepCore::ItemGroup::allItems |
( |
ItemList * |
items |
) |
const |
Get list of all items in the ItemGroup.
- Parameters:
-
| items | Array to store items |
- Note:
- This operation takes long time since it recursively traverses all child groups
Definition at line 205 of file world.cc.
| ItemList StepCore::ItemGroup::allItems |
( |
|
) |
const [inline] |
Get list of all items in the ItemGroup.
- Note:
- This operation takes long time since it recursively traverses all child groups
Definition at line 338 of file world.h.
| Item * StepCore::ItemGroup::childItem |
( |
const QString & |
name |
) |
const |
Get direct child item by its name.
Definition at line 183 of file world.cc.
| Item* StepCore::ItemGroup::childItem |
( |
int |
index |
) |
const [inline] |
Get direct child item by its index.
Definition at line 360 of file world.h.
| int StepCore::ItemGroup::childItemCount |
( |
|
) |
const [inline] |
Get direct child count.
Definition at line 358 of file world.h.
| int StepCore::ItemGroup::childItemIndex |
( |
const Item * |
item |
) |
const |
| void StepCore::ItemGroup::clear |
( |
|
) |
|
| virtual void StepCore::ItemGroup::deleteItem |
( |
Item * |
item |
) |
[inline, virtual] |
Delete item from the group (it actually deletes item).
Definition at line 350 of file world.h.
| Item * StepCore::ItemGroup::item |
( |
const QString & |
name |
) |
const |
Get any descendant item by its name.
Definition at line 191 of file world.cc.
| const ItemList& StepCore::ItemGroup::items |
( |
|
) |
const [inline] |
Assignment operator (deep copy).
- Warning:
- Do not call this on groups already attached to the world
Definition at line 137 of file world.cc.
| void StepCore::ItemGroup::removeItem |
( |
Item * |
item |
) |
[virtual] |
Remove item from the group (you should delete item youself).
Definition at line 104 of file world.cc.
| void StepCore::ItemGroup::setWorld |
( |
World * |
world |
) |
[virtual] |
| void StepCore::ItemGroup::worldItemRemoved |
( |
Item * |
item |
) |
|
The documentation for this class was generated from the following files: