43 #ifndef __VELMOD_HEIGHT_FIELD_H__
44 #define __VELMOD_HEIGHT_FIELD_H__
62 using namespace Menge;
67 class HeightFieldModifierFactory;
113 BFSM::VelModifier* copy()
const;
122 void adaptPrefVelocity(
const Agents::BaseAgent * agent, Agents::PrefVelocity & pVel );
176 virtual const char *
name()
const {
return "height_field"; }
186 return "Pushes the agent's preferred velocity away from the gradient of a height field";
220 virtual bool setFromXML( BFSM::VelModifier * modifier, TiXmlElement * node,
const std::string & behaveFldr )
const;
Definition of a height field based on a uniform discretization of space.
float _upHillScale
The uphill scale factor.
Definition: VelModHeightField.h:144
size_t _fileNameID
The identifier for the "file_name" string attribute.
Definition: VelModHeightField.h:225
size_t _downhillID
The identifier for the "down_hill_scale" float attribute.
Definition: VelModHeightField.h:240
virtual const char * description() const
A description of the modifier.
Definition: VelModHeightField.h:185
virtual const char * name() const
The name of the modifier.
Definition: VelModHeightField.h:176
size_t _turnID
The identifier for the "dir_weight" float attribute.
Definition: VelModHeightField.h:230
void setHeightField(HeightFieldPtr hfPtr)
Sets the height field for this velocity modifier object to use.
Definition: VelModHeightField.h:106
HeightFieldPtr _field
The height field used to query elevation and gradient.
Definition: VelModHeightField.h:134
size_t _uphillID
The identifier for the "up_hill_scale" float attribute.
Definition: VelModHeightField.h:235
Factory for the HeightFieldModifier.
Definition: VelModHeightField.h:159
BFSM::VelModifier * instance() const
Create an instance of this class's modifier.
Definition: VelModHeightField.h:200
float _turnWeight
The weighting factor for how the gradient effects direction.
Definition: VelModHeightField.h:139
float _downHillScale
The downhill scale factor.
Definition: VelModHeightField.h:149
Modify the preferred velocity based on a height field.
Definition: VelModHeightField.h:86
The namespace containing the height field resource and Menge elements which use the height field...
Definition: ElevationHeightField.cpp:44