#include <sparkmonitorclient.h>
Inheritance diagram for SparkMonitorClient:
Public Member Functions | |
SparkMonitorClient () | |
virtual | ~SparkMonitorClient () |
virtual void | InitSimulation () |
called once when the simulation is started | |
virtual void | DoneSimulation () |
called once before the simulation is shut down | |
virtual void | StartCycle () |
called when a new simulation cycle starts, before the simulation is stepped | |
Protected Member Functions | |
void | ParseMessage (const std::string &msg) |
parses a received message | |
void | ParseCustomPredicates (sexp_t *sexp, oxygen::PredicateList &pList) |
void | ParseCustomPredicates (sexp_t *sexp) |
parses the given s-expression into a ParameterList and transfers it to a registered user monitor | |
virtual void | OnLink () |
This method is called, when the hierarchy object has been linked to a parent. | |
virtual void | OnUnlink () |
This rountine is called, before the hierarchy object is removed from the parent. | |
Protected Attributes | |
boost::shared_ptr< oxygen::SceneServer > | mSceneServer |
cached reference to the SceneServer | |
boost::shared_ptr< oxygen::Scene > | mActiveScene |
cached reference to the current active scene | |
boost::shared_ptr< oxygen::SceneImporter > | mSceneImporter |
chached reference to the scene importer | |
boost::shared_ptr< oxygen::BaseNode > | mManagedScene |
the root node of the managed scene |
Definition at line 33 of file sparkmonitorclient.h.
|
Definition at line 36 of file sparkmonitorclient.cpp. |
|
Definition at line 40 of file sparkmonitorclient.cpp. |
|
called once before the simulation is shut down
Reimplemented from oxygen::SimControlNode. Definition at line 89 of file sparkmonitorclient.cpp. References oxygen::NetClient::CloseConnection(), mActiveScene, and mSceneImporter. Here is the call graph for this function: ![]() |
|
called once when the simulation is started
Reimplemented from oxygen::SimControlNode. Definition at line 67 of file sparkmonitorclient.cpp. References oxygen::NetClient::Connect(), zeitgeist::Object::GetCore(), zeitgeist::Object::GetLog(), mSceneImporter, and oxygen::NetClient::SendMessage(). Here is the call graph for this function: ![]() |
|
This method is called, when the hierarchy object has been linked to a parent. At that point, traversal can commence. It can be overridden to support custom 'link' behavior. Reimplemented from zeitgeist::Leaf. Definition at line 44 of file sparkmonitorclient.cpp. References zeitgeist::Object::GetCore(), zeitgeist::Object::GetLog(), and mSceneServer. Here is the call graph for this function: ![]() |
|
This rountine is called, before the hierarchy object is removed from the parent. It can be overridden to support custom 'unlink' behavior. Reimplemented from zeitgeist::Leaf. Definition at line 57 of file sparkmonitorclient.cpp. References mManagedScene, and mSceneServer. |
|
parses the given s-expression into a ParameterList and transfers it to a registered user monitor
Definition at line 132 of file sparkmonitorclient.cpp. References ParseCustomPredicates(). Here is the call graph for this function: ![]() |
|
Definition at line 107 of file sparkmonitorclient.cpp. References oxygen::PredicateList::AddPredicate(), zeitgeist::ParameterList::AddValue(), oxygen::Predicate::name, and oxygen::Predicate::parameter. Referenced by ParseCustomPredicates(). Here is the call graph for this function: ![]() |
|
parses a received message
Reimplemented from oxygen::NetClient. Referenced by StartCycle(). |
|
called when a new simulation cycle starts, before the simulation is stepped
Reimplemented from oxygen::SimControlNode. Definition at line 96 of file sparkmonitorclient.cpp. References oxygen::NetClient::mNetBuffer, oxygen::NetClient::mNetMessage, ParseMessage(), and oxygen::NetClient::ReadFragments(). Here is the call graph for this function: ![]() |
|
cached reference to the current active scene
Definition at line 68 of file sparkmonitorclient.h. Referenced by DoneSimulation(). |
|
the root node of the managed scene
Definition at line 74 of file sparkmonitorclient.h. Referenced by OnUnlink(). |
|
chached reference to the scene importer
Definition at line 71 of file sparkmonitorclient.h. Referenced by DoneSimulation(), and InitSimulation(). |
|
cached reference to the SceneServer
Definition at line 65 of file sparkmonitorclient.h. Referenced by OnLink(), and OnUnlink(). |