#include <iso_flock_osc_control.h>
Public Member Functions | |
OSCControl () | |
OSCControl (com::Sender *pErrorSender) | |
~OSCControl () | |
void | setErrorSender (com::Sender *pErrorSender) |
virtual void | notify (const com::Message &pMessage) |
Protected Member Functions | |
void | createMaps () |
base::String | extractCommand (const com::Message &pMessage) throw (FlockException) |
void | trimToParameters (com::Message &pMessage) throw (FlockException) |
bool | matchParameters (const QVector< com::MessageValueGroup * > &pParameters, const base::String &pTypeArray) |
void | clearSimulation () throw (FlockException) |
void | restoreSimulation (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | saveSimulation (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | setSimulationRate (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | addSpace (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | removeSpace (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | addSender (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | removeSender (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | addReceiver (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | removeReceiver (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | addSwarm (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | removeSwarm (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | addAgents (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | removeAgents (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | addParameter (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | setParameter (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | randomizeParameter (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | removeParameter (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | assignNeighbors (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | removeNeigbors (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | registerParameter (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | deregisterParameter (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | addBehavior (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | moveBehavior (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | removeBehavior (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | showSwarm (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | hideSwarm (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | showSpace (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | hideSpace (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | setDisplayColor (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | setDisplayPosition (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | setDisplayOrientation (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | changeDisplayOrientation (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | setDisplayZoom (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | setWindowSettings (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
virtual void | toggleFullScreen () throw (FlockException) |
void | setAgentColor (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | setAgentScale (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | setAgentLineWidth (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | setTrailColor (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | setTrailLength (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | setTrailDecay (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | setTrailWidth (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | setSpaceColor (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | setSpaceValueScale (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | queryAgentParameterCount (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | queryAgentParameterName (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
void | queryAgentParameterValue (const QVector< com::MessageValueGroup * > &pParameters) throw (FlockException) |
base::String | stringPar (com::MessageValueGroup *pParameter) throw (FlockException) |
int | intPar (com::MessageValueGroup *pParameter) throw (FlockException) |
math::Vector< int > | intVecPar (com::MessageValueGroup *pParameter) throw (FlockException) |
float | floatPar (com::MessageValueGroup *pParameter) throw (FlockException) |
math::Vector< float > | floatVecPar (com::MessageValueGroup *pParameter) throw (FlockException) |
bool | boolPar (com::MessageValueGroup *pParameter) throw (FlockException) |
SpaceAlgType | spaceAlgPar (com::MessageValueGroup *pParameter) throw (FlockException) |
space::GridAlg::GridNeighborMode | gridNeighborPar (com::MessageValueGroup *pParameter) throw (FlockException) |
space::GridAlg::GridUpdateMode | gridUpdatePar (com::MessageValueGroup *pParameter) throw (FlockException) |
com::Protocol | comProtocolPar (com::MessageValueGroup *pParameter) throw (FlockException) |
com::Format | comFormatPar (com::MessageValueGroup *pParameter) throw (FlockException) |
base::String | behaviorParameterPar (com::MessageValueGroup *pParameter) throw (FlockException) |
Protected Attributes | |
com::Message | mMessage |
base::String | mOSCCommand |
com::Message | mOSCParameters |
com::Sender * | mErrorSender |
QHash< base::String, SpaceAlgType > | mSpaceAlgMap |
QHash< base::String, space::GridAlg::GridNeighborMode > | mGridNeighborModeMap |
QHash< base::String, space::GridAlg::GridUpdateMode > | mGridUpdateModeMap |
QHash< base::String, com::Protocol > | mComProtocolMap |
QHash< base::String, com::Format > | mComFormatMap |
QHash< base::String, Behavior * > | mBehaviorMap |
QMutex | mLock |
OSCControl::OSCControl | ( | ) |
OSCControl::OSCControl | ( | com::Sender * | pErrorSender | ) |
OSCControl::~OSCControl | ( | ) |
void OSCControl::setErrorSender | ( | com::Sender * | pErrorSender | ) |
void OSCControl::notify | ( | const com::Message & | pMessage | ) | [virtual] |
void OSCControl::createMaps | ( | ) | [protected] |
base::String OSCControl::extractCommand | ( | const com::Message & | pMessage | ) | throw (FlockException) [protected] |
void OSCControl::trimToParameters | ( | com::Message & | pMessage | ) | throw (FlockException) [protected] |
bool OSCControl::matchParameters | ( | const QVector< com::MessageValueGroup * > & | pParameters, | |
const base::String & | pTypeArray | |||
) | [protected] |
void OSCControl::clearSimulation | ( | ) | throw (FlockException) [protected] |
void OSCControl::restoreSimulation | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::saveSimulation | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::setSimulationRate | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::addSpace | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::removeSpace | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::addSender | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::removeSender | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::addReceiver | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::removeReceiver | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::addSwarm | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::removeSwarm | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::addAgents | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::removeAgents | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::addParameter | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::setParameter | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::randomizeParameter | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::removeParameter | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::assignNeighbors | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::removeNeigbors | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::registerParameter | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::deregisterParameter | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::addBehavior | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::moveBehavior | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::removeBehavior | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::showSwarm | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::hideSwarm | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::showSpace | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::hideSpace | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::setDisplayColor | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::setDisplayPosition | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::setDisplayOrientation | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::changeDisplayOrientation | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::setDisplayZoom | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::setWindowSettings | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::toggleFullScreen | ( | ) | throw (FlockException) [protected, virtual] |
void OSCControl::setAgentColor | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::setAgentScale | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::setAgentLineWidth | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::setTrailColor | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::setTrailLength | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::setTrailDecay | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::setTrailWidth | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::setSpaceColor | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::setSpaceValueScale | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::queryAgentParameterCount | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::queryAgentParameterName | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
void OSCControl::queryAgentParameterValue | ( | const QVector< com::MessageValueGroup * > & | pParameters | ) | throw (FlockException) [protected] |
base::String OSCControl::stringPar | ( | com::MessageValueGroup * | pParameter | ) | throw (FlockException) [protected] |
int OSCControl::intPar | ( | com::MessageValueGroup * | pParameter | ) | throw (FlockException) [protected] |
math::Vector< int > OSCControl::intVecPar | ( | com::MessageValueGroup * | pParameter | ) | throw (FlockException) [protected] |
float OSCControl::floatPar | ( | com::MessageValueGroup * | pParameter | ) | throw (FlockException) [protected] |
math::Vector< float > OSCControl::floatVecPar | ( | com::MessageValueGroup * | pParameter | ) | throw (FlockException) [protected] |
bool OSCControl::boolPar | ( | com::MessageValueGroup * | pParameter | ) | throw (FlockException) [protected] |
SpaceAlgType OSCControl::spaceAlgPar | ( | com::MessageValueGroup * | pParameter | ) | throw (FlockException) [protected] |
space::GridAlg::GridNeighborMode OSCControl::gridNeighborPar | ( | com::MessageValueGroup * | pParameter | ) | throw (FlockException) [protected] |
space::GridAlg::GridUpdateMode OSCControl::gridUpdatePar | ( | com::MessageValueGroup * | pParameter | ) | throw (FlockException) [protected] |
com::Protocol OSCControl::comProtocolPar | ( | com::MessageValueGroup * | pParameter | ) | throw (FlockException) [protected] |
com::Format OSCControl::comFormatPar | ( | com::MessageValueGroup * | pParameter | ) | throw (FlockException) [protected] |
base::String OSCControl::behaviorParameterPar | ( | com::MessageValueGroup * | pParameter | ) | throw (FlockException) [protected] |
com::Message iso::flock::OSCControl::mMessage [protected] |
base::String iso::flock::OSCControl::mOSCCommand [protected] |
com::Message iso::flock::OSCControl::mOSCParameters [protected] |
com::Sender* iso::flock::OSCControl::mErrorSender [protected] |
QHash< base::String, SpaceAlgType > iso::flock::OSCControl::mSpaceAlgMap [protected] |
QHash< base::String, space::GridAlg::GridNeighborMode > iso::flock::OSCControl::mGridNeighborModeMap [protected] |
QHash< base::String, space::GridAlg::GridUpdateMode > iso::flock::OSCControl::mGridUpdateModeMap [protected] |
QHash< base::String, com::Protocol > iso::flock::OSCControl::mComProtocolMap [protected] |
QHash< base::String, com::Format > iso::flock::OSCControl::mComFormatMap [protected] |
QHash< base::String, Behavior* > iso::flock::OSCControl::mBehaviorMap [protected] |
QMutex iso::flock::OSCControl::mLock [protected] |