Atoms Crowd  7.0.0
Atoms::BaseVariationGroup Class Reference
Inheritance diagram for Atoms::BaseVariationGroup:
Atoms::VariationGroup Atoms::VariationGroupLod Atoms::VariationOverride

Public Member Functions

 BaseVariationGroup (AgentTypeVariationCPtr agentTypeVariation)
 Constructor.
 
 BaseVariationGroup (AgentTypeVariationCPtr agentTypeVariation, const BaseVariationGroup &vg)
 Constructor.
 
 ~BaseVariationGroup ()
 Destructor.
 
void clear ()
 Clear all combinations.
 
unsigned int numCombinations () const
 Gets the number of combinations.
 
bool hasCombination (const std::string &geometryName, const std::string &materialName)
 Checks if this object contains this combination.
 
void addCombination (const std::string &geometryName, const std::string &materialName)
 Adds a combination.
 
const std::pair< std::string, std::string > & getCombinationAtIndex (unsigned int index) const
 Gets a combination.
 
bool removeCombinationAtIndex (unsigned int index)
 Removes a combination.
 
void hash (AtomsCore::MurmurHash3 &hasher) const
 Hash.
 
const std::vector< std::pair< std::string, std::string > > & getCombinations () const
 Gets a reference to the combinations vector.
 

Protected Attributes

AgentTypeVariationCPtr m_atVariation
 Agent type variation. More...
 
std::vector< std::pair< std::string, std::string > > m_combinations
 Map of combinations.
 
std::pair< std::string, std::string > m_emptyPair
 Empty combination.
 

Member Data Documentation

◆ m_atVariation

AgentTypeVariationCPtr Atoms::BaseVariationGroup::m_atVariation
protected

Agent type variation.

It's the owner of this variation group


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