Atoms Crowd  4.1.0
Atoms::StadiumLayoutGenerator Class Reference
Inheritance diagram for Atoms::StadiumLayoutGenerator:
Atoms::LayoutGenerator

Public Types

enum  { kSquare = 0, kEllipse }
 

Public Member Functions

virtual std::vector< AgentInitDatagenerate (double time)
 Generate a vector of agent init data.
 
unsigned short shapeType () const
 
void setShapeType (unsigned short value)
 
void setSides (bool m_doTopLeft, bool m_doTop, bool m_doTopRight, bool m_doLeft, bool m_doRight, bool m_doBottomLeft, bool m_doBottom, bool m_doBottomRight)
 
unsigned int steps () const
 
void setSteps (unsigned int value)
 
double stepWidth () const
 
void setStepWidth (double value)
 
double stepDepth () const
 
void setStepDepth (double value)
 
double stepHeight () const
 
void setStepHeight (double value)
 
const AtomsCore::Vector2size () const
 
void setSize (const AtomsCore::Vector2 &value)
 
const double cornerRadius () const
 
void setCornerRadius (double cornerRadius)
 
AtomsCore::Vector3 upVector ()
 
void setUpVector (const AtomsCore::Vector3 &dir)
 
AtomsCore::Vector3 randomDirection ()
 
void setRandomDirection (const AtomsCore::Vector3 &dir)
 
AtomsCore::Matrix matrix ()
 
void setMatrix (const AtomsCore::Matrix &mtx)
 
unsigned int seed ()
 
void setSeed (unsigned int value)
 
const std::map< int, std::string > & agentTypeOverride () const
 
void setAgentTypeOverride (const std::map< int, std::string > &value)
 
const std::map< int, AtomsCore::Vector3 > & directionOverride () const
 
void setDirectionOverride (const std::map< int, AtomsCore::Vector3 > &value)
 
const std::map< int, AtomsCore::Vector3 > & upVectorOverride () const
 
void setUpVectorOverride (const std::map< int, AtomsCore::Vector3 > &value)
 
void setCenterOffset (const AtomsCore::Vector3 offset)
 
const char * typeName () override
 Get the type name for this generator.
 
- Public Member Functions inherited from Atoms::LayoutGenerator
 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.
 
AgentTypePtr agentType ()
 Get the agent type used by this generator.
 
void setAgentType (AgentTypePtr aType)
 Set the agent type used by this generator.
 
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.
 

Additional Inherited Members

- Protected Attributes inherited from Atoms::LayoutGenerator
std::map< int, bool > m_offsetPelvisHeightOverride
 
bool m_offsetPelvisHeight
 

The documentation for this class was generated from the following files: