47 #ifndef __ELEVATION_HEIGHT_FIELD_H__
48 #define __ELEVATION_HEIGHT_FIELD_H__
64 using namespace Menge;
90 virtual float getElevation(
const Vector2 & point )
const;
98 virtual float getElevation(
const Agents::BaseAgent * agent )
const;
107 virtual Vector2 getGradient(
const Vector2 & point )
const;
115 virtual Vector2 getGradient(
const Agents::BaseAgent * agent )
const;
151 virtual const char *
name()
const {
return "height_field"; }
161 return "Provides elevation based on location on a height field.";
195 virtual bool setFromXML( Agents::Elevation * e, TiXmlElement * node,
const std::string & specFldr )
const;
203 #endif // __ELEVATION_HEIGHT_FIELD_H__
Definition of a height field based on a uniform discretization of space.
virtual const char * description() const
A description of the elevation.
Definition: ElevationHeightField.h:160
Factory for the HeightFieldElevation.
Definition: ElevationHeightField.h:136
Agents::Elevation * instance() const
Create an instance of this class's elevation implementation.
Definition: ElevationHeightField.h:175
HeightFieldPtr _field
The height field used to query elevation and gradient.
Definition: ElevationHeightField.h:128
void setHeightField(HeightFieldPtr hfPtr)
Sets the height field for this elevation object to use.
Definition: ElevationHeightField.h:122
virtual const char * name() const
The name of the elevation.
Definition: ElevationHeightField.h:151
size_t _fileNameID
The identifier for the "file_name" string attribute.
Definition: ElevationHeightField.h:200
Elevation definition based on a height field.
Definition: ElevationHeightField.h:76
The namespace containing the height field resource and Menge elements which use the height field...
Definition: ElevationHeightField.cpp:44