#include <arenascene.h>
Public Member Functions | |
ArenaScene (Arena *arena) | |
ArenaSceneElement * | sceneElementFor (ArenaElement *element) |
QList< ArenaSceneElement * > | selectedElements () |
Static Public Member Functions | |
static QPointF | gridToScene (QPointF gridPos) |
static QPointF | nearestGridPoint (QPointF scenePos) |
static QPoint | sceneToGrid (QPointF scenePos) |
static QPointF | sceneToGridF (QPointF scenePos) |
Private Slots | |
void | slotElementAdded (ArenaElement *element) |
void | slotElementRemoved (ArenaElement *element) |
void | updateViewMargin () |
Private Member Functions | |
void | createGround () |
Private Attributes | |
Arena *const | m_arena |
QMap< ArenaElement *, ArenaSceneElement * > | m_elements |
Definition at line 17 of file arenascene.h.
|
explicit |
Definition at line 17 of file arenascene.cpp.
|
private |
|
static |
Definition at line 50 of file arenascene.cpp.
|
static |
Definition at line 56 of file arenascene.cpp.
ArenaSceneElement * ArenaScene::sceneElementFor | ( | ArenaElement * | element | ) |
Definition at line 74 of file arenascene.cpp.
|
static |
Definition at line 33 of file arenascene.cpp.
|
static |
Definition at line 39 of file arenascene.cpp.
QList< ArenaSceneElement * > ArenaScene::selectedElements | ( | ) |
Definition at line 61 of file arenascene.cpp.
|
privateslot |
Definition at line 99 of file arenascene.cpp.
|
privateslot |
Definition at line 109 of file arenascene.cpp.
|
privateslot |
Definition at line 79 of file arenascene.cpp.
|
private |
Definition at line 42 of file arenascene.h.
|
private |
Definition at line 43 of file arenascene.h.