![]() |
Menge
Modular Pedestrian Simulation Framework for Research and Development
|
A class for handling the watermark functionality. More...
#include <Watermark.h>
Public Member Functions | |
| Watermark () | |
| Constructor. | |
| ~Watermark () | |
| Destructor. | |
| const std::string & | getFilename () const |
| Returns the file name for the water mark. | |
| void | drawGL (float w, float h) const |
| Draws the watermark to the screen. More... | |
Protected Attributes | |
| std::string | _fileName |
| File name of the watermark. | |
| Image * | _img |
| A pointer to the image the watermark uses. | |
| WatermarkAlign | _alignment |
| The alignment of the watermark. | |
| float | _opacity |
| The opacity of the watermark. Should be a value in the range [0, 1], where 0 is completely transparent and 1 is completely opaque. | |
| float | _scale |
| The scale of the watermark. If the alignment is FULL_SCREEN, this can cause tiling. | |
Friends | |
| Watermark * | parseWatermark (TiXmlElement *node, const std::string &viewFldr) |
| Parses a water mark xml specification and returns the corresponding instance. More... | |
A class for handling the watermark functionality.
A watermark is a semi-transparent image drawn over the top of the scene.
| void Menge::Vis::Watermark::drawGL | ( | float | w, |
| float | h | ||
| ) | const |
Draws the watermark to the screen.
| w | The width of the screen (in pixels). |
| h | The height of the screen (in pixels). |
|
friend |
Parses a water mark xml specification and returns the corresponding instance.
| node | The XML node containing the watermark definition. |
| viewFldr | The path to the view configuration file. |
1.8.8