The context for the ScaleVelModifier.
More...
#include <VelModifierScale.h>
|
ScaleVelModifier * | _vm |
| The underlying finite state machine velocity modifier.
|
|
double | _modViewMat [16] |
| The current model view matrix.
|
|
double | _projMat [16] |
| The current projection matrix.
|
|
int | _viewMat [4] |
| The current viewport parameters.
|
|
|
virtual | ~VelModContext () |
| Destructor.
|
|
void | uiSetup (int vWidth, int vHeight) |
| UI setup - handles the configuration of the opengl context for orthographic rendering. More...
|
|
void | uiShutdown () |
| Cleans up the OpenGL state after having drawn the UI elements of the context.
|
|
virtual void | drawUIGL (int vWidth, int vHeight, bool select=false) |
| Draw UI elements into the context. More...
|
|
virtual void | draw3DGL (bool select=false) |
| Draw context elements into the 3D world. More...
|
|
void | getOpenGLView () |
| Updates the various view matrices: modelview, projection, and view.
|
|
void | writeText (const std::string &txt, const Vector2 &pos, bool currColor=false) const |
| Writes the given text at the given location. More...
|
|
void | writeText (const std::string &txt, const Vector3 &pos, bool currColor=false) const |
| Writes the given text at the given 3D location. More...
|
|
void | writeTextRadially (const std::string &txt, const Vector2 &pos, const Vector2 &dir, bool currColor=false) const |
| Writes the given text at the given location, but anchored based on the radial direction given. More...
|
|
void | writeAlignedText (const std::string &txt, const Vector2 &pos, TextWriter::Alignment align, bool currColor=false) const |
| Writes the given text aligned to the given location. More...
|
|
void | writeToScreen (const std::string &txt, TextWriter::Alignment align, int fontSize, float hPad=0.f, float vPad=0.f, bool currColor=false, bool trans=true) const |
| Writes the given text to the screen based on the given alignment. More...
|
|
The context for the ScaleVelModifier.
Constructor.
- Parameters
-
vm | A pointer to the underlying fsm velocity modifier. The context will not delete the velocity modifier. |
Draw context elements into the 3D world.
This should never be called in select mode.
- Parameters
-
agt | The particular agent for which the FSM is being visualized. |
Reimplemented from Menge::BFSM::VelModContext.
std::string Menge::BFSM::ScaleVMContext::getUIText |
( |
const std::string & |
indent = "" | ) |
const |
|
virtual |
Provides a string to be printed in the display as a UI element detailing velocity modifier information.
- Parameters
-
indent | An optional string representing indentation to be applied to the text. It is prefixed at the start of each line. |
- Returns
- The string for printing on the UI layer.
Reimplemented from Menge::BFSM::VelModContext.
The documentation for this class was generated from the following files:
- src/menge/MengeCore/BFSM/VelocityModifiers/VelModifierScale.h
- src/menge/MengeCore/BFSM/VelocityModifiers/VelModifierScale.cpp