#include <GraphicGroup.h>

Public Member Functions | |
| virtual GraphicObject * | addObject (GraphicObjectType type, LocationType point=LocationType())=0 |
| virtual const std::list < GraphicObject * > & | getObjects () const =0 |
| virtual void | insertObject (GraphicObject *pObject)=0 |
| virtual bool | removeObject (GraphicObject *pObject, bool bDelete)=0 |
| virtual void | removeAllObjects (bool bDelete)=0 |
| virtual bool | hasObject (GraphicObject *pObject)=0 |
Static Public Member Functions | |
| static const std::string & | signalObjectAdded () |
| static const std::string & | signalObjectRemoved () |
| static const std::string & | signalObjectChanged () |
Protected Member Functions | |
| virtual | ~GraphicGroup () |
This subclass of Subject will notify upon the following conditions:
Definition at line 24 of file GraphicGroup.h.
| virtual GraphicGroup::~GraphicGroup | ( | ) | [protected, virtual] |
This should be destroyed by calling GraphicLayer::removeObject.
Definition at line 124 of file GraphicGroup.h.
| static const std::string& GraphicGroup::signalObjectAdded | ( | ) | [static] |
Emitted with any<GraphicObject*> when an object is added to the group.
Definition at line 30 of file GraphicGroup.h.
| static const std::string& GraphicGroup::signalObjectRemoved | ( | ) | [static] |
Emitted with any<GraphicObject*> when an object is about to be removed from the group.
Definition at line 36 of file GraphicGroup.h.
| static const std::string& GraphicGroup::signalObjectChanged | ( | ) | [static] |
Emitted with any<GraphicProperty*> when a property of an object is changed.
Definition at line 41 of file GraphicGroup.h.
| virtual GraphicObject* GraphicGroup::addObject | ( | GraphicObjectType | type, | |
| LocationType | point = LocationType() | |||
| ) | [pure virtual] |
Creates and inserts an object of the specified type.
| type | The type of object to add. | |
| point | The starting point of the object. |
| virtual const std::list<GraphicObject*>& GraphicGroup::getObjects | ( | ) | const [pure virtual] |
Returns a list of all objects within the group.
| virtual void GraphicGroup::insertObject | ( | GraphicObject * | pObject | ) | [pure virtual] |
Inserts an already existing object into the group.
The group takes ownership over this object. It is the caller's responsibility to ensure that no other objects claim ownership of the object.
| pObject | The object to insert. |
| virtual bool GraphicGroup::removeObject | ( | GraphicObject * | pObject, | |
| bool | bDelete | |||
| ) | [pure virtual] |
Removes an object from the group.
| pObject | The object to remove. | |
| bDelete | Whether or not to delete the object. If true, the object will be deleted. If false, ownership of the object is transfered to the caller. |
| virtual void GraphicGroup::removeAllObjects | ( | bool | bDelete | ) | [pure virtual] |
Remove all objects from the group.
| bDelete | Whether or not to delete the objects. If true, the objects will be deleted. If false, ownership of the object is transfered to the caller. |
| virtual bool GraphicGroup::hasObject | ( | GraphicObject * | pObject | ) | [pure virtual] |
Queries whether the object is contained by this group.
| pObject | The object to find. |