Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
Arena Class Reference

#include <arena.h>

Inheritance diagram for Arena:
Inheritance graph
[legend]

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. More...
 
void addElement (ArenaElement *element)
 Adds an existing element to this arena. More...
 
 Arena (ArenaElementTypeRegistry *typeRegistry)
 
void clear ()
 Removes all elements from this arena. More...
 
ArenaElementcontextElement (ArenaElement *element) const
 
QList< ArenaElement * > elements ()
 
QList< ArenaElement * > elementsAt (const QPoint &pos) const
 
void load (const QString &filename)
 Deserializes this arena from XML. More...
 
void removeElement (ArenaElement *element)
 
void save (const QString &filename)
 Serializes this arena in XML. More...
 
void saveWorld (const QString &filename)
 Writes .world format-compliant XML. More...
 
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

Arena::Arena ( ArenaElementTypeRegistry typeRegistry)

Definition at line 15 of file arena.cpp.

Arena::~Arena ( )

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.

ArenaElement * Arena::contextElement ( ArenaElement element) const

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 ( )
privateslot

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.

ArenaElementTypeRegistry* const Arena::m_typeRegistry
private

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 Fri Aug 21 2020 10:45:27