Menge
Modular Pedestrian Simulation Framework for Research and Development
|
Generic abstract class which generates a 2D vector float values. More...
#include <RandGenerator.h>
Public Member Functions | |
Vec2DGenerator () | |
Constructor. | |
virtual | ~Vec2DGenerator () |
Virtual destructor. | |
virtual Vector2 | getValue () const =0 |
Return a value based on the 2D float generation rules. More... | |
virtual Vector2 | getValueConcurrent () const =0 |
Return a value based on the 2D float generation rules - performed in a thread-safe manner. More... | |
virtual void | print (Logger &out) const =0 |
Function for converting the generator to a string on a output stream. More... | |
virtual Vec2DGenerator * | copy () const =0 |
Create a copy of itself. More... | |
Generic abstract class which generates a 2D vector float values.
|
pure virtual |
Create a copy of itself.
This is the basic functionality that must be overwridden by derived classes.
Implemented in Menge::Math::OBBUniformPosGenerator, Menge::Math::AABBUniformPosGenerator, Menge::Math::Const2DGenerator, and Menge::Math::Zero2DGenerator.
|
pure virtual |
Return a value based on the 2D float generation rules.
This is the basic functionality that must be overwridden by derived classes.
Implemented in Menge::Math::OBBUniformPosGenerator, Menge::Math::AABBUniformPosGenerator, Menge::Math::Const2DGenerator, and Menge::Math::Zero2DGenerator.
|
pure virtual |
Return a value based on the 2D float generation rules - performed in a thread-safe manner.
This is the basic functionality that must be overwridden by derived classes.
Implemented in Menge::Math::OBBUniformPosGenerator, Menge::Math::AABBUniformPosGenerator, Menge::Math::Const2DGenerator, and Menge::Math::Zero2DGenerator.
|
pure virtual |
Function for converting the generator to a string on a output stream.
This must be overridden by each derived class to provide a string format of the float generator.
out | The output stream to write the string representation to. |
Implemented in Menge::Math::OBBUniformPosGenerator, Menge::Math::AABBUniformPosGenerator, Menge::Math::Const2DGenerator, and Menge::Math::Zero2DGenerator.