Arena::Private Struct Reference

Collaboration diagram for Arena::Private:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 48 of file arena.cc.


Public Member Functions

void render (QPainter &, LockedCore &)
void renderBot (QPainter &, LockedCore &)
QPointF cToA (Point)
QPointF botPosF ()
QPoint botPosPx ()
void drawCircle (QPainter &, const IObject &)

Public Attributes

Arenaarena
CoreSynccs
QTimer timer
unsigned ticks
QSizeF envSize
qreal botSize
qreal zoomRatio
Position botPosition
QPointF botLastPosition
BotPath botPath
CoreInfo coreInfo
bool drawSurface

Member Function Documentation

void render ( QPainter &  painter,
LockedCore core 
)

Definition at line 191 of file arena.cc.

References Position::angle, botPath, botPosition, cToA(), drawCircle(), BotPath::drawPath(), envPenWidth, envSize, and renderBot().

Referenced by Arena::paintEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

void renderBot ( QPainter &  painter,
LockedCore core 
)

Definition at line 226 of file arena.cc.

References botPenWidth, IObject::Size(), and ticks.

Referenced by render().

Here is the call graph for this function:

Here is the caller graph for this function:

QPointF cToA ( Point  p  ) 

Definition at line 249 of file arena.cc.

References Point::x, and Point::y.

Referenced by botPosF(), drawCircle(), and render().

Here is the caller graph for this function:

QPointF botPosF (  ) 

Definition at line 286 of file arena.cc.

References botPosition, and cToA().

Referenced by Arena::Arena(), and Arena::paintEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

QPoint botPosPx (  ) 

Definition at line 289 of file arena.cc.

References arena, botLastPosition, envPenWidth, and zoomRatio.

Referenced by Arena::botPosChanged(), and Arena::zoom().

void drawCircle ( QPainter &  painter,
const IObject cObj 
)

Definition at line 252 of file arena.cc.

References cToA(), drawSurface, objPenWidth, IObject::Position(), and IObject::Size().

Referenced by render().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Arena* arena

Definition at line 49 of file arena.cc.

Referenced by Arena::Arena(), and botPosPx().

CoreSync* cs

Definition at line 50 of file arena.cc.

Referenced by Arena::Arena(), and Arena::paintEvent().

QTimer timer

Definition at line 51 of file arena.cc.

Referenced by Arena::Arena(), and Arena::~Arena().

unsigned ticks

Definition at line 52 of file arena.cc.

Referenced by Arena::animate(), Arena::Arena(), and renderBot().

QSizeF envSize

Definition at line 53 of file arena.cc.

Referenced by Arena::Arena(), Arena::envSize(), render(), and Arena::zoom().

qreal botSize

Definition at line 54 of file arena.cc.

Referenced by Arena::Arena(), and Arena::botSize().

qreal zoomRatio

Definition at line 55 of file arena.cc.

Referenced by botPosPx(), Arena::botSize(), Arena::paintEvent(), and Arena::zoom().

Position botPosition

Definition at line 56 of file arena.cc.

Referenced by Arena::Arena(), botPosF(), Arena::paintEvent(), and render().

QPointF botLastPosition

Definition at line 57 of file arena.cc.

Referenced by Arena::Arena(), Arena::botPosChanged(), botPosPx(), and Arena::paintEvent().

BotPath botPath

Definition at line 58 of file arena.cc.

Referenced by Arena::Arena(), Arena::botPosChanged(), render(), and Arena::setShrinkPathEnabled().

CoreInfo coreInfo

Definition at line 59 of file arena.cc.

Referenced by Arena::Arena(), Arena::coreInfo(), and Arena::paintEvent().

bool drawSurface

Definition at line 60 of file arena.cc.

Referenced by Arena::Arena(), drawCircle(), and Arena::setDrawSurfaceEnabled().


The documentation for this struct was generated from the following file:
Generated on Fri Jul 10 22:42:08 2009 for rob08 by  doxygen 1.5.4