45 #ifndef __VEL_MOD_SCALE_H__
46 #define __VEL_MOD_SCALE_H__
79 void setScale(
const float scale );
146 virtual std::string getUIText(
const std::string & indent=
"" )
const;
184 virtual const char *
name()
const {
return "scale"; }
194 return "Scales the input preferred velocity by the given scale factor.";
228 virtual bool setFromXML(
VelModifier * vm, TiXmlElement * node,
const std::string & behaveFldr )
const;
239 #endif // __VEL_MOD_SCALE_H
VelModifier * instance() const
Create an instance of this class's velocity modifier.
Definition: VelModifierScale.h:208
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
A class for parsing the xml description of a velocity MODIFIER and instantiating particular instances...
Definition: VelModifierFactory.h:61
virtual const char * description() const
A description of the velocity modifier.
Definition: VelModifierScale.h:193
Sets up the proper compiler directives for platform and dll export/import.
The definition of a basic UI context for finite state machine velocity modifiers. ...
size_t _scaleID
The identifier for the "scale" float attribute.
Definition: VelModifierScale.h:234
virtual const char * name() const
The name of the velocity modifier.
Definition: VelModifierScale.h:184
Factory for the ScaleVelModifier.
Definition: VelModifierScale.h:169
The definition of how preferred velocity is modified by a filter.
ScaleVelModifier * _vm
The underlying finite state machine velocity modifier.
Definition: VelModifierScale.h:161
The context for the ScaleVelModifier.
Definition: VelModifierScale.h:127
float getScale() const
Returns scale factor.
Definition: VelModifierScale.h:95
A velocity modifier that scales the input velocity's speed.
Definition: VelModifierScale.h:60
The namespace contains the Behavior Finite State Machine (BFSM) definition.
The definition of a preferred velocity.
Definition: PrefVelocity.h:68
Defines the basic agent properties and functionality that all simulation agents share.
Definition: BaseAgent.h:123
The base class for modifying preferred velocities.
Definition: VelModifier.h:110
Base context for finite state machine velocity modifiers.
Definition: VelModifierContext.h:69
The factory for parsing xml data and instantiating velocity Modifierss.
float _scale
The scale factor to apply.
Definition: VelModifierScale.h:117