![]() |
MAK Legion 1.1 API Documentation
|
Contains a simple example to add custom attribute set to the database. More...
Classes | |
| class | WriteEngineRepository |
| class | ReadEngineRepository |
Functions | |
| const std::string | theName ("customAttributeSet") |
| void | processArgumentsAndConfiguration (int argc, char *argv[], Legion::Configuration &configuration) |
| void | setMinMaxBoundary (Legion::BoundarySpatialPlanar &boundary, float minX, float minY, float maxX, float maxY) |
| bool | registerCustomAttributeSet (Legion::SimulationDatabase &simDb) |
| int | main (int argc, char *argv[]) |
Variables | |
| AttributeIndex | theRpmAttributeIndex = Legion::BAD_INDEX |
| AttributeIndex | theTemperatureAttributeIndex = Legion::BAD_INDEX |
| AttributeSetId | theEngineAttributeSetId = 0 |
| std::string | theConfigFile = "legionExamples.lua" |
| float | theFrameRate = 10.0 |
| float | theReferenceLatitude = 0.0 |
| float | theReferenceLongitude = 0.0 |
| float | theChangeDirectionInterval = 5.0 |
Contains a simple example to add custom attribute set to the database.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
References Legion::WriteStateInstance::addExtension(), Legion::SimulationDatabase::beginFrame(), Legion::SimulationDatabase::createInstance(), Legion::ViewManager::createView(), Legion::ViewManager::destroyView(), Legion::SimulationDatabase::endFrame(), Legion::ReadStateInstance::findTypeExtension(), Legion::Connection::isConnected(), Legion::ReadStateInstance::isValid(), processArgumentsAndConfiguration(), registerCustomAttributeSet(), Legion::Remote, WriteEngineRepository::rpm(), Legion::Connection::setIntent(), Legion::Connection::setInterest(), setMinMaxBoundary(), WriteEngineRepository::setRpm(), WriteEngineRepository::setTemperature(), Legion::Connection::startProcessingMessages(), WriteEngineRepository::temperature(), ReadEngineRepository::temperature(), theChangeDirectionInterval, theFrameRate, theName(), theReferenceLatitude, theReferenceLongitude, 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 | ||
| ) |
| bool registerCustomAttributeSet | ( | Legion::SimulationDatabase & | simDb | ) |
References Legion::AttributeSetDescriptor::attributeDescriptors, Legion::AttributeSetDescriptor::attributeSetName, Legion::BAD_INDEX, Legion::AttributeSetDescriptor::exptectedInstances, Legion::SimulationDatabase::findAttributeIndex(), Legion::Float, Legion::NOT_REFLECTED, Legion::REFLECTED, Legion::SimulationDatabase::registerAttributeSet(), theEngineAttributeSetId, theName(), theRpmAttributeIndex, theTemperatureAttributeIndex, and WriteEngineRepository::type().
Referenced by main().
| void setMinMaxBoundary | ( | Legion::BoundarySpatialPlanar & | boundary, |
| float | minX, | ||
| float | minY, | ||
| float | maxX, | ||
| float | maxY | ||
| ) |
| const std::string theName | ( | "customAttributeSet" | ) |
| float theChangeDirectionInterval = 5.0 |
| std::string theConfigFile = "legionExamples.lua" |
| AttributeSetId theEngineAttributeSetId = 0 |
Referenced by registerCustomAttributeSet(), WriteEngineRepository::type(), and ReadEngineRepository::type().
| float theFrameRate = 10.0 |
| float theReferenceLatitude = 0.0 |
| float theReferenceLongitude = 0.0 |
| AttributeIndex theRpmAttributeIndex = Legion::BAD_INDEX |
| AttributeIndex theTemperatureAttributeIndex = Legion::BAD_INDEX |