Draw a cycloid.
More...
#include <ProceduralTextureModifiers.h>
Draw a cycloid.
Draw a cycloid on top of previous content.
Example:
- Cycloid types
-
- Default parameters
Name | Parameter R | Parameter r | Parameter d | Parameter e | Parameter k |
Hypocycloid | 3/6 * Size | 1/6 * Size | unsused | unsused | k = R / r | 3 |
Hypotrochoid | 5/14 * Size | 3/14 * Size | 5/14 * Size | 2 |
Epicycloid | 3/10 * Size | 1/10 * Size | unsused | 3 |
Epitrochoid | 3/10 * Size | 1/10 * Size | 1/20 * Size | 3 |
Rose curve | 1/2 * Size | 4 | 1 | k = r / d | 4 |
Lissajous curve | 1/2 * Size | 5 | 4 | π/2 | 5/4 |
◆ CYCLOID_PARAMETER
Which parameter should be set.
Enumerator |
---|
PARAMETER_R | Set parameter R.
|
PARAMETER_r | Set parameter r.
|
PARAMETER_d | Set parameter d.
|
PARAMETER_e | Set parameter e.
|
PARAMETER_k | Set parameter k.
|
◆ CYCLOID_TYPE
Which type of cycloid should be painted.
Enumerator |
---|
HYPOCYCLOID | Draw a Hypocycloid.
|
HYPOTROCHOID | Draw a Hypotrochoid.
|
EPICYCLOID | Draw a Epicycloid.
|
EPITROCHOID | Draw a Epitrochoid.
|
ROSE_CURVE | Draw a Rose curve.
|
LISSAJOUS_CURVE | Draw a Lissajous curve.
|
◆ Cycloid()
Default constructor.
- Parameters
-
pBuffer | Image buffer where to modify the image. |
◆ getName()
Get name of the filter as string.
◆ logMsg()
void Procedural::TextureProcessing::logMsg |
( |
Ogre::String |
msg | ) |
|
|
protectedinherited |
◆ process()
◆ setCenterX()
Set the relative center position of the cycloid main circle on x axis.
- Parameters
-
centerx | New relative center of the cycloid main circle [0.0, 1.0] (default 0.5) |
◆ setCenterY()
Set the relative center position of the cycloid main circle on y axis.
- Parameters
-
centery | New relative center of the cycloid main circle [0.0, 1.0] (default 0.5) |
◆ setColour() [1/2]
Set the drawing colour for cycloid structure.
- Parameters
-
◆ setColour() [2/2]
Set the drawing colour for cycloid structure.
- Parameters
-
red | Red value of drawing colour [0.0, 1.0] (default 1.0) |
green | Green value of drawing colour [0.0, 1.0] (default 1.0) |
blue | Blue value of drawing colour [0.0, 1.0] (default 1.0) |
alpha | Alpha value of drawing 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 |
◆ setParameter()
Set the parameter value.
- Parameters
-
paramType | Selection which parameter should be set |
value | New value for selected parameter |
- See also
- Default parameters for default values
- Note
- Unsused paramerters will be ignored. Setting k parameter calculates the first used parameter. For example
k = R / r
will calculate R by R = k * r
(also r from r = k * d
).
◆ setPenSize()
Set the size for the pen to draw.
- Parameters
-
size | New size for the drawing pen (default 1) |
◆ setType()
Set the algorithm to for drawing.
- Parameters
-
type | New algorithm to draw (default HYPOCYCLOID) |
- Note
- Call this function on first place! setType resets all numerical parameter to special defaults according on used algorithm.
◆ 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