• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

step/stepcore

StepCore::ItemGroup

StepCore::ItemGroup Class Reference
[World]

#include <world.h>

Inheritance diagram for StepCore::ItemGroup:

Inheritance graph
[legend]

List of all members.


Detailed Description

Groups several items together.

Definition at line 316 of file world.h.


Public Member Functions

virtual void addItem (Item *item)
void allItems (ItemList *items) const
ItemList allItems () const
Item * childItem (const QString &name) const
Item * childItem (int index) const
int childItemCount () const
int childItemIndex (const Item *item) const
void clear ()
virtual void deleteItem (Item *item)
Item * item (const QString &name) const
 ItemGroup (const ItemGroup &group)
 ItemGroup (const QString &name=QString())
const ItemList & items () const
ItemGroup & operator= (const ItemGroup &group)
virtual void removeItem (Item *item)
void setWorld (World *world)
void worldItemRemoved (Item *item)
 ~ItemGroup ()

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

Finds direct child item in items().

Definition at line 176 of file world.cc.

void StepCore::ItemGroup::clear (  ) 

Deletes all items.

Reimplemented in StepCore::World.

Definition at line 116 of file world.cc.

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]

Get list of all direct child items in the ItemGroup.

Definition at line 333 of file world.h.

ItemGroup & StepCore::ItemGroup::operator= ( const ItemGroup &  group  ) 

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]

Recursively call setWorld for all children objects.

Reimplemented from StepCore::Item.

Reimplemented in StepCore::SoftBody.

Definition at line 79 of file world.cc.

void StepCore::ItemGroup::worldItemRemoved ( Item *  item  ) 

Recursively call worldItemRemoved for all children objects.

Reimplemented in StepCore::SoftBody.

Definition at line 87 of file world.cc.


The documentation for this class was generated from the following files:
  • world.h
  • world.cc

step/stepcore

Skip menu "step/stepcore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal