Draw an ellipse.
More...
#include <ProceduralTextureModifiers.h>
Draw an ellipse.
Draw a filled ellipse on top of previous content.
Example:
◆ EllipseTexture()
◆ 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 ellipse center point.
- Parameters
-
x | New relative x position of ellipse center [0.0, 1.0] (default 0.5) |
y | New relative y position of ellipse 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 ellipse center point.
- Parameters
-
pos | Vector to the center point of the ellipse (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]
EllipseTexture& Procedural::EllipseTexture::setCenter |
( |
size_t |
x, |
|
|
size_t |
y |
|
) |
| |
Set the position of ellipse center point.
- Parameters
-
x | New absolute x position of ellipse center (default 1/2 * image width) |
y | New absolute y position of ellipse center (default 1/2 * image width) |
◆ setCenterX() [1/2]
Set relative x position of ellipse center point as Real.
- Parameters
-
x | New relative x position of ellipse center [0.0, 1.0] (default 0.5) |
◆ setCenterX() [2/2]
Set absolute x position of ellipse center point in px.
- Parameters
-
x | New absolute x position of ellipse center (default 1/2 * image width) |
◆ setCenterY() [1/2]
Set relative y position of ellipse center point as Real.
- Parameters
-
y | New relative y position of ellipse center [0.0, 1.0] (default 0.5) |
◆ setCenterY() [2/2]
Set absolute y position of ellipse center point in px.
- Parameters
-
y | New absolute y position of ellipse center (default 1/2 * image width) |
◆ setColour() [1/2]
Set the fill colour of the ellipse.
- Parameters
-
◆ setColour() [2/2]
Set the fill colour of the ellipse.
- 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 ellipse.
- Parameters
-
radiusx | New relative radius of the ellipse on x axis [0.0, 1.0] (default 0.5) |
radiusy | New relative radius of the ellipse on y axis [0.0, 1.0] (default 0.5) |
◆ setRadius() [2/2]
EllipseTexture& Procedural::EllipseTexture::setRadius |
( |
size_t |
radiusx, |
|
|
size_t |
radiusy |
|
) |
| |
Set the absolute radius of the ellipse.
- Parameters
-
radiusx | New absolute radius of the ellipse on x axis in px (default 1/2 * image width) |
radiusy | New absolute radius of the ellipse on y axis in px (default 1/2 * image width) |
◆ setRadiusX() [1/2]
Set the relative radius of the ellipse on x axis.
- Parameters
-
radiusx | New relative radius of the ellipse on x axis [0.0, 1.0] (default 0.5) |
◆ setRadiusX() [2/2]
EllipseTexture& Procedural::EllipseTexture::setRadiusX |
( |
size_t |
radiusx | ) |
|
Set the absolute radius of the ellipse on x axis.
- Parameters
-
radiusx | New absolute radius of the ellipse on x axis in px (default 1/2 * image width) |
◆ setRadiusY() [1/2]
Set the relative radius of the ellipse on y axis.
- Parameters
-
radiusy | New relative radius of the ellipse on y axis [0.0, 1.0] (default 0.5) |
◆ setRadiusY() [2/2]
EllipseTexture& Procedural::EllipseTexture::setRadiusY |
( |
size_t |
radiusy | ) |
|
Set the absolute radius of the ellipse on y axis.
- Parameters
-
radiusy | New absolute radius of the ellipse on y axis in px (default 1/2 * image width) |
◆ mBuffer
◆ mLog
bool Procedural::TextureProcessing::mLog |
|
protectedinherited |
◆ mName
The documentation for this class was generated from the following file:
- ProceduralTextureModifiers.h
TextureBufferPtr process()
Run image manipulation.
EllipseTexture & setRadiusX(size_t radiusx)
Set the absolute radius of the ellipse on x axis.
EllipseTexture & setRadiusY(size_t radiusy)
Set the absolute radius of the ellipse on y axis.
EllipseTexture & setColour(Ogre::ColourValue colour)
Set the fill colour of the ellipse.
class to store image data while processing
Definition: ProceduralTextureBuffer.h:50
Draw an ellipse.
Definition: ProceduralTextureModifiers.h:1395