Enki::PlaygroundViewer Class Reference

#include <playground.h>

Inheritance diagram for Enki::PlaygroundViewer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

World * getWorld ()
 PlaygroundViewer (World *world)
virtual ~PlaygroundViewer ()

Public Attributes

unsigned energyPool
QFont font
std::valarray< uint8lastMessageData
uint16 lastMessageSource
Dashel::Streamstream

Protected Member Functions

virtual void connectionClosed (Dashel::Stream *stream, bool abnormal)
virtual void connectionCreated (Dashel::Stream *stream)
virtual void incomingData (Dashel::Stream *stream)
virtual void renderObjectsTypesHook ()
virtual void sceneCompletedHook ()
virtual void timerEvent (QTimerEvent *event)

Detailed Description

Definition at line 47 of file playground.h.


Constructor & Destructor Documentation

Enki::PlaygroundViewer::PlaygroundViewer ( World *  world  ) 

Definition at line 528 of file playground.cpp.

Enki::PlaygroundViewer::~PlaygroundViewer (  )  [virtual]

Definition at line 574 of file playground.cpp.


Member Function Documentation

void Enki::PlaygroundViewer::connectionClosed ( Dashel::Stream ,
bool   
) [protected, virtual]

Called when target closes connection. The only valid method to call on the stream is getTargetName(), input/output operations are forbidden. You must not call closeStream(stream) from within this method for the same stream as the one passed as parameter. Subclass can implement this method. Called with the stream lock held.

Parameters:
stream stream to the target.
abnormal whether the connection was closed during step (abnormal == false) or when an operation was performed (abnormal == true)

Reimplemented from Dashel::Hub.

Definition at line 656 of file playground.cpp.

void Enki::PlaygroundViewer::connectionCreated ( Dashel::Stream  )  [protected, virtual]

Called when any data connection is created. It is not called when a listening connection (eg tcpin:) is created. If the stream is closed during this method, an exception occurs: the caller is responsible to handle it. The stream is already inserted in the stream list when this function is called. Subclass can implement this method. Called with the stream lock held.

Parameters:
stream stream to the target

Reimplemented from Dashel::Hub.

Definition at line 617 of file playground.cpp.

World* Enki::PlaygroundViewer::getWorld (  )  [inline]

Definition at line 63 of file playground.h.

void Enki::PlaygroundViewer::incomingData ( Dashel::Stream  )  [protected, virtual]

Called when data is available for reading on the stream. If the stream is closed during this method, an exception occurs: Hub stops the execution of this method and calls connectionClosed(); objects dynamically allocated must thus be handled with auto_ptr. If step() is used, subclass must implement this method and call read at least once. Called with the stream lock held.

Parameters:
stream stream to the target

Reimplemented from Dashel::Hub.

Definition at line 632 of file playground.cpp.

void Enki::PlaygroundViewer::renderObjectsTypesHook (  )  [protected, virtual]

Definition at line 583 of file playground.cpp.

void Enki::PlaygroundViewer::sceneCompletedHook (  )  [protected, virtual]

Definition at line 588 of file playground.cpp.

void Enki::PlaygroundViewer::timerEvent ( QTimerEvent *  event  )  [protected, virtual]

Definition at line 675 of file playground.cpp.


Member Data Documentation

Definition at line 55 of file playground.h.

Definition at line 54 of file playground.h.

Definition at line 53 of file playground.h.

Definition at line 52 of file playground.h.

Definition at line 51 of file playground.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


asebaros
Author(s): $author
autogenerated on Mon Sep 5 08:42:17 2011