10 #include <AtomsCore/Globals.h>
11 #include <Atoms/Globals.h>
12 #include <Atoms/HeightField.h>
43 AtomsWPtr<HeightField> heightFieldWPtr(
const std::string& name);
44 HeightField* heightFieldPtr(
const std::string& name);
54 void addHeightField(
const std::string& name, AtomsPtr<HeightField>& field,
bool replace =
false,
bool animated =
false,
short gridMode = 0);
57 void insertHeightField(
const std::string& name, AtomsPtr<HeightField>& field,
bool replace =
false,
bool animated =
false);
100 typedef std::map<std::string, std::pair<AtomsPtr<HeightField>,
bool>> HeightFieldsMap;
106 HeightFieldsMap m_heightFieldsMap;
Container for all agent types.
Definition: HeightField.h:17
Container for all agent types.
Definition: HeightFields.h:19
void addHeightField(const std::string &name, AtomsPtr< HeightField > &field, bool replace=false, bool animated=false, short gridMode=0)
Adds an hf to the map.
HeightFields()
Private constructor.
void setAnimated(const std::string &name, bool value)
Sets the hf animated flag.
static HeightFields & instance()
Singleton access.
bool isAnimated(const std::string &name)
Checks if an hf is animated.
std::vector< std::string > heightFieldNames()
Gets all hf names.
void removeHeightField(const std::string &name)
Removes an hf from the map.
HeightFields(const HeightFields &)
Private copy constructor.
bool hasHeightField(const std::string &name)
Checks if an height field with the given name exists.
AtomsPtr< HeightField > heightField(const std::string &name)
Gets an hf.
void insertHeightField(const std::string &name, AtomsPtr< HeightField > &field, bool replace=false, bool animated=false)
Adds an hf to the map.
~HeightFields()
Private destructor.
bool heightFieldExists(const std::string &name)
Checks if a hf exists.
void clear()
Removes all hf.
unsigned int numHeightFields()
Gets the number of hf.
HeightFields & operator=(const HeightFields &)
Private assign operator.
Atoms namespace.
Definition: Agent.h:29