#include <sparkmonitor.h>
Inheritance diagram for SparkMonitor:
Public Member Functions | |
SparkMonitor () | |
virtual | ~SparkMonitor () |
void | ParseMonitorMessage (const std::string &data) |
If a monitor sends information to the world model, this function is called to process it. | |
virtual std::string | GetMonitorInfo (const oxygen::PredicateList &pList) |
This function will be called periodically to get information about the current state of the world. | |
virtual std::string | GetMonitorHeaderInfo (const oxygen::PredicateList &pList) |
This function is called once for every MonitorSystem each time a new client connects. | |
Protected Member Functions | |
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. | |
void | DescribeCustomPredicates (std::stringstream &ss, const oxygen::PredicateList &pList) |
void | DescribeActiveScene (std::stringstream &ss) |
void | DescribeScene (std::stringstream &ss, boost::shared_ptr< oxygen::BaseNode > node) |
void | DescribeNode (std::stringstream &ss, boost::shared_ptr< oxygen::BaseNode > node) |
void | DescribeTransform (std::stringstream &ss, boost::shared_ptr< oxygen::Transform > transform) |
void | DescribeMesh (std::stringstream &ss, boost::shared_ptr< kerosin::StaticMesh > mesh) |
void | DescribeLight (std::stringstream &ss, boost::shared_ptr< kerosin::Light > light) |
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 | |
bool | mFullState |
true, if the full state is generated |
Definition at line 33 of file sparkmonitor.h.
|
Definition at line 37 of file sparkmonitor.cpp. References mFullState. |
|
Definition at line 42 of file sparkmonitor.cpp. |
|
Referenced by GetMonitorHeaderInfo(), and GetMonitorInfo(). |
|
Referenced by GetMonitorHeaderInfo(), and GetMonitorInfo(). |
|
|
|
|
|
|
|
|
|
|
|
This function is called once for every MonitorSystem each time a new client connects. It should return any header/setup information that is needed.
Implements oxygen::MonitorSystem. Definition at line 91 of file sparkmonitor.cpp. References DescribeActiveScene(), DescribeCustomPredicates(), and mFullState. Here is the call graph for this function: ![]() |
|
This function will be called periodically to get information about the current state of the world.
Implements oxygen::MonitorSystem. Definition at line 82 of file sparkmonitor.cpp. References DescribeActiveScene(), DescribeCustomPredicates(), and mFullState. 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 46 of file sparkmonitor.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 59 of file sparkmonitor.cpp. References mActiveScene, and mSceneServer. |
|
If a monitor sends information to the world model, this function is called to process it.
Implements oxygen::MonitorSystem. Definition at line 65 of file sparkmonitor.cpp. |
|
cached reference to the current active scene
Definition at line 87 of file sparkmonitor.h. Referenced by OnUnlink(). |
|
true, if the full state is generated
Definition at line 90 of file sparkmonitor.h. Referenced by GetMonitorHeaderInfo(), GetMonitorInfo(), and SparkMonitor(). |
|
cached reference to the SceneServer
Definition at line 84 of file sparkmonitor.h. Referenced by OnLink(), and OnUnlink(). |