A modifier that will randomly shuffle the pixel being processed to a nearby position. More...
#include <jittermodifier.h>
Inheritance diagram for Mezzanine::Graphics::Procedural::JitterModifier:
Collaboration diagram for Mezzanine::Graphics::Procedural::JitterModifier:Public Member Functions | |
| JitterModifier () | |
| Blank constructor. | |
| virtual | ~JitterModifier () |
| Class destructor. | |
| virtual String | GetName () const |
| Gets the name of this modifier. More... | |
| virtual void | Modify (TextureBuffer &Buffer) |
| Alters the generated pixels in a TextureBuffer. More... | |
| JitterModifier & | SetGeneratorSeed (const Whole Seed) |
| Sets the seed for the "random" number generator. More... | |
| JitterModifier & | SetJitterRadius (const UInt16 Radius) |
| Sets the range in which pixels can be swapped. More... | |
Public Member Functions inherited from Mezzanine::Graphics::Procedural::TextureModifier | |
| TextureModifier () | |
| Blank constructor. | |
| virtual | ~TextureModifier () |
| Class destructor. | |
Protected Attributes | |
| Whole | GeneratorSeed |
| The seed to be used for the random number generator. More... | |
| UInt16 | JitterRadius |
| The radius around the pixel being processed in which the pixel can be displaced. More... | |
A modifier that will randomly shuffle the pixel being processed to a nearby position.
Definition at line 82 of file jittermodifier.h.
|
virtual |
Gets the name of this modifier.
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 114 of file jittermodifier.cpp.
|
virtual |
Alters the generated pixels in a TextureBuffer.
| Buffer | The buffer to be modified. |
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 91 of file jittermodifier.cpp.
| JitterModifier & Mezzanine::Graphics::Procedural::JitterModifier::SetGeneratorSeed | ( | const Whole | Seed | ) |
Sets the seed for the "random" number generator.
| Seed | The seed value for the random number generator. Initial Value: 5120. |
Definition at line 120 of file jittermodifier.cpp.
| JitterModifier & Mezzanine::Graphics::Procedural::JitterModifier::SetJitterRadius | ( | const UInt16 | Radius | ) |
Sets the range in which pixels can be swapped.
| Radius | The radius around the pixel being processed in which the pixel can be displaced. Initial Value: 32. |
Definition at line 126 of file jittermodifier.cpp.
|
protected |
The seed to be used for the random number generator.
Definition at line 87 of file jittermodifier.h.
|
protected |
The radius around the pixel being processed in which the pixel can be displaced.
Definition at line 90 of file jittermodifier.h.
1.8.9.1. Thanks to the
Open Icon Library
for help with some of the icons.