![]() |
MAK Legion 1.1 API Documentation
|
Contains a simple example to register and create a custom event. More...
Classes | |
| class | SosSignalEvent |
Typedefs | |
| typedef Legion::Callback< void(Legion::Span < SosSignalEvent > &)> | SosSignalEventCallback |
Functions | |
| const std::string | theName ("customEvent") |
| void | processArgumentsAndConfiguration (int argc, char *argv[], Legion::Configuration &configuration) |
| void | setMinMaxBoundary (Legion::BoundarySpatialPlanar &boundary, float minX, float minY, float maxX, float maxY) |
| void | sosSignalCb (Legion::Span< SosSignalEvent > &events) |
| int | main (int argc, char *argv[]) |
Variables | |
| std::string | theConfigFile = "legionExamples.lua" |
| float | theFrameRate = 10.0 |
| float | theReferenceLatitude = 0.0 |
| float | theReferenceLongitude = 0.0 |
| float | theChangeDirectionInterval = 5.0 |
| UInt32 | theSosCbHandle = 0 |
| float | theSignalInterval = 5.0 |
Contains a simple example to register and create a custom event.
| typedef Legion::Callback<void(Legion::Span<SosSignalEvent>&)> SosSignalEventCallback |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
References Legion::EventManager::addEvent(), Legion::EventManager::addEventCallback(), Legion::SimulationDatabase::beginFrame(), Legion::EventManager::createEvent(), Legion::SimulationDatabase::createInstance(), Legion::ViewManager::createView(), Legion::ViewManager::destroyView(), Legion::SimulationDatabase::endFrame(), Legion::SimulationDatabase::eventManager(), Legion::Connection::isConnected(), SosSignalEvent::location(), SosSignalEvent::message(), processArgumentsAndConfiguration(), SosSignalEvent::registerEvent(), Legion::Remote, Legion::EventManager::removeEventCallback(), Legion::Connection::setIntent(), Legion::Connection::setInterest(), SosSignalEvent::setLocation(), SosSignalEvent::setMessage(), setMinMaxBoundary(), SosSignalEvent::setSourceId(), sosSignalCb(), SosSignalEvent::sourceId(), Legion::Connection::startProcessingMessages(), theChangeDirectionInterval, theFrameRate, theName(), theReferenceLatitude, theReferenceLongitude, theSignalInterval, theSosCbHandle, Legion::SimulationDatabase::viewManager(), Legion::Connection::waitUntilDoneProcessingMessages(), Legion::Vector3d::x, Legion::Vector3d::y, and Legion::Vector3d::z.
| void processArgumentsAndConfiguration | ( | int | argc, |
| char * | argv[], | ||
| Legion::Configuration & | configuration | ||
| ) |
| void setMinMaxBoundary | ( | Legion::BoundarySpatialPlanar & | boundary, |
| float | minX, | ||
| float | minY, | ||
| float | maxX, | ||
| float | maxY | ||
| ) |
| void sosSignalCb | ( | Legion::Span< SosSignalEvent > & | events | ) |
References SosSignalEvent::location(), SosSignalEvent::message(), Legion::Span< DATA_TYPE >::size(), SosSignalEvent::sourceId(), Legion::Vector3d::x, Legion::Vector3d::y, and Legion::Vector3d::z.
Referenced by main().
| const std::string theName | ( | "customEvent" | ) |
| float theChangeDirectionInterval = 5.0 |
| std::string theConfigFile = "legionExamples.lua" |
| float theFrameRate = 10.0 |
| float theReferenceLatitude = 0.0 |
| float theReferenceLongitude = 0.0 |
| float theSignalInterval = 5.0 |
Referenced by main().