MAK Legion 1.1 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions | Variables
customAttribute.cxx File Reference

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
 

Detailed Description

Contains a simple example to add custom attributes to the LOM entity set.

Function Documentation

int main ( int  argc,
char *  argv[] 
)
void processArgumentsAndConfiguration ( int  argc,
char *  argv[],
Legion::Configuration configuration 
)
bool RegisterCustomEntityAttributes ( Legion::SimulationDatabase simDb)
void setMinMaxBoundary ( Legion::BoundarySpatialPlanar boundary,
float  minX,
float  minY,
float  maxX,
float  maxY 
)
const std::string theName ( "customAttribute"  )

Variable Documentation

float theChangeDirectionInterval = 5.0
std::string theConfigFile = "legionExamples.lua"
float theFrameRate = 10.0
float theReferenceLatitude = 0.0
float theReferenceLongitude = 0.0
Legion::UInt32 theRpmAttributeIndex = Legion::BAD_INDEX
Legion::UInt32 theTemperatureAttributeIndex = Legion::BAD_INDEX

Document ID: Generated on Wed May 26 15:17:05 EDT 2021 from SVN revision 229676
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)