Public Member Functions | Static Public Member Functions | Private Slots | Private Member Functions | Private Attributes
ArenaScene Class Reference

#include <arenascene.h>

List of all members.

Public Member Functions

 ArenaScene (Arena *arena)
ArenaSceneElementsceneElementFor (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

Detailed Description

Definition at line 17 of file arenascene.h.


Constructor & Destructor Documentation

ArenaScene::ArenaScene ( Arena arena) [explicit]

Definition at line 17 of file arenascene.cpp.


Member Function Documentation

void ArenaScene::createGround ( ) [private]
QPointF ArenaScene::gridToScene ( QPointF  gridPos) [static]

Definition at line 50 of file arenascene.cpp.

QPointF ArenaScene::nearestGridPoint ( QPointF  scenePos) [static]

Definition at line 56 of file arenascene.cpp.

Definition at line 74 of file arenascene.cpp.

QPoint ArenaScene::sceneToGrid ( QPointF  scenePos) [static]

Definition at line 33 of file arenascene.cpp.

QPointF ArenaScene::sceneToGridF ( QPointF  scenePos) [static]

Definition at line 39 of file arenascene.cpp.

Definition at line 61 of file arenascene.cpp.

void ArenaScene::slotElementAdded ( ArenaElement element) [private, slot]

Definition at line 99 of file arenascene.cpp.

void ArenaScene::slotElementRemoved ( ArenaElement element) [private, slot]

Definition at line 109 of file arenascene.cpp.

void ArenaScene::updateViewMargin ( ) [private, slot]

Definition at line 79 of file arenascene.cpp.


Member Data Documentation

Arena* const ArenaScene::m_arena [private]

Definition at line 42 of file arenascene.h.

Definition at line 43 of file arenascene.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 Oct 4 2017 03:29:29