Signals | Public Member Functions | Private Slots | Private Attributes
Arena Class Reference

#include <arena.h>

List of all members.

Signals

void elementAdded (ArenaElement *element)
void elementRemoved (ArenaElement *element)
void modified ()

Public Member Functions

ArenaElementaddElement (const QString &elementType)
 Creates and adds an element of type elementType.
void addElement (ArenaElement *element)
 Adds an existing element to this arena.
 Arena (ArenaElementTypeRegistry *typeRegistry)
void clear ()
 Removes all elements from this arena.
ArenaElementcontextElement (ArenaElement *element) const
QList< ArenaElement * > elements ()
QList< ArenaElement * > elementsAt (const QPoint &pos) const
void load (const QString &filename)
 Deserializes this arena from XML.
void removeElement (ArenaElement *element)
void save (const QString &filename)
 Serializes this arena in XML.
void saveWorld (const QString &filename)
 Writes .world format-compliant XML.
void saveWorldSdf (const QString &filename)
 ~Arena ()

Private Slots

void slotModified ()

Private Attributes

QList< ArenaElement * > m_elements
ArenaElementTypeRegistry *const m_typeRegistry

Detailed Description

Definition at line 10 of file arena.h.


Constructor & Destructor Documentation

Definition at line 15 of file arena.cpp.

Definition at line 20 of file arena.cpp.


Member Function Documentation

ArenaElement * Arena::addElement ( const QString &  elementType)

Creates and adds an element of type elementType.

Definition at line 481 of file arena.cpp.

void Arena::addElement ( ArenaElement element)

Adds an existing element to this arena.

Definition at line 444 of file arena.cpp.

void Arena::clear ( )

Removes all elements from this arena.

Definition at line 469 of file arena.cpp.

Returns either a wall at the same position with the same rotation as the given element or 0 if no such wall exists

Definition at line 498 of file arena.cpp.

void Arena::elementAdded ( ArenaElement element) [signal]
void Arena::elementRemoved ( ArenaElement element) [signal]
QList<ArenaElement*> Arena::elements ( ) [inline]

Definition at line 37 of file arena.h.

QList< ArenaElement * > Arena::elementsAt ( const QPoint &  pos) const

Definition at line 489 of file arena.cpp.

void Arena::load ( const QString &  filename)

Deserializes this arena from XML.

Definition at line 24 of file arena.cpp.

void Arena::modified ( ) [signal]
void Arena::removeElement ( ArenaElement element)

Removes an existing element from this arena. This does not delete it. The element can be re-added later.

Definition at line 461 of file arena.cpp.

void Arena::save ( const QString &  filename)

Serializes this arena in XML.

Definition at line 88 of file arena.cpp.

void Arena::saveWorld ( const QString &  filename)

Writes .world format-compliant XML.

Definition at line 112 of file arena.cpp.

void Arena::saveWorldSdf ( const QString &  filename)

Definition at line 263 of file arena.cpp.

void Arena::slotModified ( ) [private, slot]

Definition at line 439 of file arena.cpp.


Member Data Documentation

QList<ArenaElement*> Arena::m_elements [private]

Definition at line 55 of file arena.h.

Definition at line 54 of file arena.h.


The documentation for this class was generated from the following files:


hector_nist_arena_designer
Author(s): Stefan Kohlbrecher , Johannes Simon
autogenerated on Wed May 15 2019 05:00:31