Draw a polygon.
More...
#include <ProceduralTextureModifiers.h>
Draw a polygon.
Draw a regular polygon on top of previous content.
Example:
◆ Polygon()
◆ getName()
Get name of the filter as string.
◆ logMsg()
void Procedural::TextureProcessing::logMsg |
( |
Ogre::String |
msg | ) |
|
|
protectedinherited |
◆ process()
◆ setCenter() [1/3]
Set the position of polygon center point.
- Parameters
-
x | New relative x position of polygon center [0.0, 1.0] (default 0.5) |
y | New relative y position of polygon center [0.0, 1.0] (default 0.5) |
relative | If this is set to true (default) the vector data are relative [0.0, 1.0]; else absolut [px] |
◆ setCenter() [2/3]
Set the position of polygon center point.
- Parameters
-
pos | Vector to the center point of the polygon (default: x=0.5, y=0.5) |
relative | If this is set to true (default) the vector data are relative [0.0, 1.0]; else absolut [px] |
◆ setCenter() [3/3]
Polygon& Procedural::Polygon::setCenter |
( |
size_t |
x, |
|
|
size_t |
y |
|
) |
| |
Set the position of polygon center point.
- Parameters
-
x | New absolute x position of polygon center (default 1/2 * image width) |
y | New absolute y position of polygon center (default 1/2 * image width) |
◆ setCenterX() [1/2]
Set relative x position of polygon center point as Real.
- Parameters
-
x | New relative x position of polygon center [0.0, 1.0] (default 0.5) |
◆ setCenterX() [2/2]
Polygon& Procedural::Polygon::setCenterX |
( |
size_t |
x | ) |
|
Set absolute x position of polygon center point in px.
- Parameters
-
x | New absolute x position of polygon center (default 1/2 * image width) |
◆ setCenterY() [1/2]
Set relative y position of polygon center point as Real.
- Parameters
-
y | New relative y position of polygon center [0.0, 1.0] (default 0.5) |
◆ setCenterY() [2/2]
Polygon& Procedural::Polygon::setCenterY |
( |
size_t |
y | ) |
|
Set absolute y position of polygon center point in px.
- Parameters
-
y | New absolute y position of polygon center (default 1/2 * image width) |
◆ setColour() [1/2]
Set the fill colour of the polygon.
- Parameters
-
◆ setColour() [2/2]
Set the fill colour of the polygon.
- Parameters
-
red | Red value of the fill colour [0.0, 1.0] (default 1.0) |
green | Green value of the fill colour [0.0, 1.0] (default 1.0) |
blue | Blue value of the fill colour [0.0, 1.0] (default 1.0) |
alpha | Alpha value of the fill colour [0.0, 1.0] (default 1.0) |
◆ setLog()
void Procedural::TextureProcessing::setLog |
( |
bool |
enable = true | ) |
|
|
inherited |
Enable/Disable logging.
- Parameters
-
enable | true enables logging of filter actions |
◆ setRadius() [1/2]
Set the relative radius of the polygon edges.
- Parameters
-
radius | New relative radius of the polygon edges [0.0, 1.0] (default 0.5) |
◆ setRadius() [2/2]
Polygon& Procedural::Polygon::setRadius |
( |
size_t |
radius | ) |
|
Set the absolute radius of the polygon edges.
- Parameters
-
radius | New absolute radius of the polygon edges in px (default smaller value of 1/2 * image width and 1/2 * image height) |
◆ setSides()
Polygon& Procedural::Polygon::setSides |
( |
size_t |
n | ) |
|
Set number of polygon sides.
- Parameters
-
n | New number of polygon sides (default 3) |
◆ mBuffer
◆ mLog
bool Procedural::TextureProcessing::mLog |
|
protectedinherited |
◆ mName
The documentation for this class was generated from the following file:
- ProceduralTextureModifiers.h
class to store image data while processing
Definition: ProceduralTextureBuffer.h:50