A modifier that will alter the colour of pixels above a certain luminous value. More...
#include <segmentmodifier.h>
Public Member Functions | |
SegmentModifier () | |
Blank constructor. | |
virtual | ~SegmentModifier () |
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... | |
SegmentModifier & | SetColourSource (TextureBuffer *Source) |
Sets the buffer to use to determine the colour to be placed. More... | |
SegmentModifier & | SetThreshold (const UInt8 Thresh) |
Sets the threshold above which the colour from the set buffer will be copied. More... | |
![]() | |
TextureModifier () | |
Blank constructor. | |
virtual | ~TextureModifier () |
Class destructor. | |
Protected Attributes | |
TextureBuffer * | ColourSource |
The source image (buffer) to use for the replacing colour. More... | |
UInt8 | Threshold |
The luminous threshold above which will have it's colour replaced. More... | |
A modifier that will alter the colour of pixels above a certain luminous value.
Definition at line 82 of file segmentmodifier.h.
|
virtual |
Gets the name of this modifier.
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 157 of file segmentmodifier.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 segmentmodifier.cpp.
SegmentModifier & Mezzanine::Graphics::Procedural::SegmentModifier::SetColourSource | ( | TextureBuffer * | Source | ) |
Sets the buffer to use to determine the colour to be placed.
Source | The source image (buffer) to use for the replacing colour. |
Definition at line 163 of file segmentmodifier.cpp.
SegmentModifier & Mezzanine::Graphics::Procedural::SegmentModifier::SetThreshold | ( | const UInt8 | Thresh | ) |
Sets the threshold above which the colour from the set buffer will be copied.
Thresh | The luminous threshold above which will have it's colour replaced. Initial Value: 128. |
Definition at line 166 of file segmentmodifier.cpp.
|
protected |
The source image (buffer) to use for the replacing colour.
Definition at line 87 of file segmentmodifier.h.
|
protected |
The luminous threshold above which will have it's colour replaced.
Definition at line 90 of file segmentmodifier.h.