|
virtual std::vector< AgentInitData > | generate (double time) |
| Generate a vector of agent init data.
|
|
const AtomsCore::Vector3 & | size () |
|
void | setSize (const AtomsCore::Vector3 &size) |
|
double | defaultRadius () const |
|
void | setDefaultRadius (double radius) |
|
double | maxRadius () const |
|
void | setMaxRadius (double radius) |
|
bool | randomizeRadius () const |
|
void | setRandomizeRadius (bool randomize) |
|
int | iterations () const |
|
void | setIterations (int iterations) |
|
const AtomsCore::Vector3 & | randomDirection () const |
|
void | setRandomDirection (const AtomsCore::Vector3 &dir) |
|
const AtomsCore::Vector3 & | randomUpVector () const |
|
void | setRandomUpVector (const AtomsCore::Vector3 &up) |
|
const AtomsCore::Matrix & | matrix () const |
|
void | setMatrix (const AtomsCore::Matrix &mtx) |
|
unsigned int | seed () const |
|
void | setSeed (unsigned int value) |
|
void | setCenterOffset (const AtomsCore::Vector3 offset) |
|
const char * | typeName () override |
| Get the type name for this generator.
|
|
bool | checkGeneration (double time) |
|
AgentTypePtr | pickAgentType () |
|
AgentTypePtr | agentType (const int groupId, const std::string &groupIdStr) override |
| Get the agent type used by this generator.
|
|
void | applyOffsetToData () |
|
unsigned int | dynamicGroupIdOffset () const |
|
void | setDynamicGroupIdOffset (unsigned int value) |
|
void | addDynamicGroupIdOffset (unsigned int value) |
|
unsigned int | dynamicMethod () const |
|
void | setDynamicMethod (unsigned int value) |
|
bool | generateOnInitSimulation () const |
|
void | setGenerateOnInitSimulation (bool value) |
|
double | timeToGenerate () const |
|
void | setTimeToGenerate (double value) |
|
void | decreaseTimeToGenerate () |
|
bool | generatorTrigger () const |
|
void | setGeneratorTrigger (bool value) |
|
bool | randomizeAgentTypes () const |
|
void | setRandomizeAgentTypes (bool value) |
|
bool | resetSeed () const |
|
void | setResetSeed (bool value) |
|
const std::vector< std::string > & | randomAgentTypes () const |
|
void | setRandomAgentTypes (const std::vector< std::string > &value) |
|
const AtomsCore::Vector2 & | randomTimer () const |
|
void | setRandomTimer (const AtomsCore::Vector2 &value) |
|
const std::vector< Atoms::AgentInitData > & | getData () const |
|
void | setData (const std::vector< Atoms::AgentInitData > &data, bool check=false) |
|
| LayoutGenerator (bool isStatic=true) |
| Constructor. More...
|
|
virtual | ~LayoutGenerator () |
| Destructor.
|
|
virtual bool | allowMultiLayoutGenerator () |
| Returns whether this layout generator can work in conjunction with other layout generators.
|
|
virtual bool | allowMultiple () |
| Returns whether an Agent Group can have multiple instances of this layout generator.
|
|
virtual bool | mustBeFirst () |
| Returns wheter this layout generator should be the first one in the stack.
|
|
bool | isStaticGenerator () const |
| Get the static state for this generator.
|
|
void | setAsStaticGenerator (bool value) |
| Set the static state for this generator.
|
|
void | setAgentTypeAttributeCache (const BehaviourModuleAttributeCache< std::string > &agentTypeAttributeCache) |
|
void | setDirectionAttributeCache (const BehaviourModuleAttributeCache< AtomsCore::Vector3 > &directionAttributeCache) |
|
void | setUpVectorAttributeCache (const BehaviourModuleAttributeCache< AtomsCore::Vector3 > &upVectorAttributeCache) |
|
std::atomic< size_t > & | nextFreeId () |
|
const std::atomic< size_t > & | nextFreeId () const |
|
void | setName (const std::string &name) |
| Set the name of this generator.
|
|
const std::string & | name () |
| Get the name of this generator.
|
|
void | setGroupIdOffset (const int offset) |
| Set the offset for the group ids of this layout generator.
|
|
const int | groupIdOffset () |
| Get the offset for the group ids of this layout generator.
|
|
void | setOffsetPelvisHeight (bool state) |
| Sets the flag to offset height according to the distance between pelvis and foot.
|
|
void | setOffsetPelvisHeightOverride (const std::map< int, bool > &value) |
| Sets the map per agent to offset height according to the distance between pelvis and foot.
|
|
void | setOffsetPelvisHeightAttributeCache (const BehaviourModuleAttributeCache< bool > &offsetPelvisHeightCache) |
| Sets offset pelvis height attribute cache.
|
|