44 #ifndef __WATER_MARK_H__
45 #define __WATER_MARK_H__
97 void drawGL(
float w,
float h )
const;
139 Watermark * parseWatermark( TiXmlElement * node,
const std::string & viewFldr );
142 #endif // __WATER_MARK_H__
const std::string & getFilename() const
Returns the file name for the water mark.
Definition: Watermark.h:89
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
The namespace containing visualization functionality for the pedestrian simulation.
Definition: GLViewer.h:64
void drawGL(float w, float h) const
Draws the watermark to the screen.
Definition: Watermark.cpp:97
Watermark()
Constructor.
Definition: Watermark.cpp:86
float _scale
The scale of the watermark. If the alignment is FULL_SCREEN, this can cause tiling.
Definition: Watermark.h:128
Image * _img
A pointer to the image the watermark uses.
Definition: Watermark.h:110
friend Watermark * parseWatermark(TiXmlElement *node, const std::string &viewFldr)
Parses a water mark xml specification and returns the corresponding instance.
Definition: Watermark.cpp:174
WatermarkAlign _alignment
The alignment of the watermark.
Definition: Watermark.h:115
float _opacity
The opacity of the watermark. Should be a value in the range [0, 1], where 0 is completely transparen...
Definition: Watermark.h:122
Wrapper for the managed ImageData.
Definition: image.h:175
A class for handling the watermark functionality.
Definition: Watermark.h:74
std::string _fileName
File name of the watermark.
Definition: Watermark.h:105
~Watermark()
Destructor.
Definition: Watermark.cpp:91