![]() |
MAK Legion 1.1 API Documentation
|
Contains a simple example to add custom attributes to the LOM entity set. More...
Functions | |
| const std::string | theName ("customAttribute") |
| void | processArgumentsAndConfiguration (int argc, char *argv[], Legion::Configuration &configuration) |
| void | setMinMaxBoundary (Legion::BoundarySpatialPlanar &boundary, float minX, float minY, float maxX, float maxY) |
| bool | RegisterCustomEntityAttributes (Legion::SimulationDatabase &simDb) |
| 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 |
| Legion::UInt32 | theRpmAttributeIndex = Legion::BAD_INDEX |
| Legion::UInt32 | theTemperatureAttributeIndex = Legion::BAD_INDEX |
Contains a simple example to add custom attributes to the LOM entity set.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
References Legion::SimulationDatabase::beginFrame(), Legion::SimulationDatabase::createInstance(), Legion::ViewManager::createView(), Legion::ViewManager::destroyView(), Legion::SimulationDatabase::endFrame(), Legion::Connection::isConnected(), processArgumentsAndConfiguration(), RegisterCustomEntityAttributes(), Legion::Remote, Legion::Connection::setIntent(), Legion::Connection::setInterest(), setMinMaxBoundary(), Legion::Connection::startProcessingMessages(), theChangeDirectionInterval, theFrameRate, theName(), theReferenceLatitude, theReferenceLongitude, theRpmAttributeIndex, theTemperatureAttributeIndex, 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 | ||
| ) |
References Legion::Configuration::helpString(), Legion::Configuration::loadParameters(), Legion::Configuration::parameter(), Legion::Configuration::processArguments(), Legion::Configuration::setParameter(), theChangeDirectionInterval, theConfigFile, theFrameRate, theName(), theReferenceLatitude, and theReferenceLongitude.
Referenced by main().
| bool RegisterCustomEntityAttributes | ( | Legion::SimulationDatabase & | simDb | ) |
References Legion::BAD_INDEX, Legion::AttributeDescriptor::cardinality, Legion::SimulationDatabase::findAttributeSetId(), Legion::Float, Legion::AttributeDescriptor::name, Legion::NOT_REFLECTED, Legion::REFLECTED, Legion::AttributeDescriptor::reflectedOnNetwork, Legion::SimulationDatabase::registerAttribute(), theName(), theRpmAttributeIndex, theTemperatureAttributeIndex, and Legion::AttributeDescriptor::type.
Referenced by main().
| void setMinMaxBoundary | ( | Legion::BoundarySpatialPlanar & | boundary, |
| float | minX, | ||
| float | minY, | ||
| float | maxX, | ||
| float | maxY | ||
| ) |
References Legion::BoundarySpatialPlanar::setLowerBound(), Legion::BoundarySpatialPlanar::setUpperBound(), theReferenceLatitude, and theReferenceLongitude.
Referenced by main().
| const std::string theName | ( | "customAttribute" | ) |
| float theChangeDirectionInterval = 5.0 |
Referenced by main(), and processArgumentsAndConfiguration().
| std::string theConfigFile = "legionExamples.lua" |
Referenced by main(), parseArgs(), parseArgsForConfigFile(), printHelp(), and processArgumentsAndConfiguration().
| float theFrameRate = 10.0 |
Referenced by main(), and processArgumentsAndConfiguration().
| float theReferenceLatitude = 0.0 |
Referenced by main(), processArgumentsAndConfiguration(), and setMinMaxBoundary().
| float theReferenceLongitude = 0.0 |
Referenced by main(), processArgumentsAndConfiguration(), and setMinMaxBoundary().
| Legion::UInt32 theRpmAttributeIndex = Legion::BAD_INDEX |
| Legion::UInt32 theTemperatureAttributeIndex = Legion::BAD_INDEX |