A modifier that draws a simple coloured circle onto the texture. More...
#include <circlemodifier.h>
Inheritance diagram for Mezzanine::Graphics::Procedural::CircleModifier:
Collaboration diagram for Mezzanine::Graphics::Procedural::CircleModifier:Public Member Functions | |
| CircleModifier () | |
| Blank constructor. | |
| virtual | ~CircleModifier () |
| 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... | |
| CircleModifier & | SetColour (const ColourValue &Colour) |
| Sets the colour of the circle. More... | |
| CircleModifier & | SetColour (const Real Red, const Real Green, const Real Blue, const Real Alpha=1.0) |
| Sets the colour of the circle. More... | |
| CircleModifier & | SetPosition (const Real XRel, const Real YRel, const Integer XAdj, const Integer YAdj) |
| Sets the relative and offset values for the rectangle position. More... | |
| CircleModifier & | SetRadius (const Whole Radius) |
| Sets the radius of the circle. More... | |
| CircleModifier & | SetXPositionAdj (const Integer X) |
| Sets the absolute component of the center position on the X axis. More... | |
| CircleModifier & | SetXPositionRel (const Real X) |
| Sets the relative component of the center position on the X axis. More... | |
| CircleModifier & | SetYPositionAdj (const Integer Y) |
| Sets the absolute component of the center position on the Y axis. More... | |
| CircleModifier & | SetYPositionRel (const Real Y) |
| Sets the relative component of the center position on the Y axis. More... | |
Public Member Functions inherited from Mezzanine::Graphics::Procedural::TextureModifier | |
| TextureModifier () | |
| Blank constructor. | |
| virtual | ~TextureModifier () |
| Class destructor. | |
Protected Member Functions | |
| void | PutPixel (const Integer XPos, const Integer YPos, TextureBuffer &Buffer) |
| Convenience method for placing a pixel for the circle. More... | |
Protected Attributes | |
| ColourValue | CircleColour |
| The colour of the circle to be drawn. More... | |
| Whole | CircleRadius |
| The radius of the circle. More... | |
| Integer | CircleXAdj |
| The position on the X axis of the circle. More... | |
| Real | CircleXRel |
| The position on the X axis of the circle. More... | |
| Integer | CircleYAdj |
| The position on the Y axis of the circle. More... | |
| Real | CircleYRel |
| The position on the Y axis of the circle. More... | |
A modifier that draws a simple coloured circle onto the texture.
Definition at line 82 of file circlemodifier.h.
|
virtual |
Gets the name of this modifier.
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 152 of file circlemodifier.cpp.
|
virtual |
Alters the generated pixels in a TextureBuffer.
| Buffer | The buffer to be modified. |
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 104 of file circlemodifier.cpp.
|
protected |
Convenience method for placing a pixel for the circle.
| XPos | The position on the X axis to place the pixel. |
| YPos | The position on the Y axis to place the pixel. |
| Buffer | A reference to the buffer being worked on. |
Definition at line 90 of file circlemodifier.cpp.
| CircleModifier & Mezzanine::Graphics::Procedural::CircleModifier::SetColour | ( | const ColourValue & | Colour | ) |
Sets the colour of the circle.
| Colour | The colour of the circle to be drawn. Initial Value: 1.0,1.0,1.0,1.0. |
Definition at line 158 of file circlemodifier.cpp.
| CircleModifier & Mezzanine::Graphics::Procedural::CircleModifier::SetColour | ( | const Real | Red, |
| const Real | Green, | ||
| const Real | Blue, | ||
| const Real | Alpha = 1.0 |
||
| ) |
Sets the colour of the circle.
| Red | The red colour component of the circle to be drawn. Initial Value: 1.0. |
| Green | The red colour component of the circle to be drawn. Initial Value: 1.0. |
| Blue | The red colour component of the circle to be drawn. Initial Value: 1.0. |
| Alpha | The red colour component of the circle to be drawn. Initial Value: 1.0. |
Definition at line 164 of file circlemodifier.cpp.
| CircleModifier & Mezzanine::Graphics::Procedural::CircleModifier::SetPosition | ( | const Real | XRel, |
| const Real | YRel, | ||
| const Integer | XAdj, | ||
| const Integer | YAdj | ||
| ) |
Sets the relative and offset values for the rectangle position.
| XRel | The left edge of the rectangle in relative coordinates. Initial Value: 0.5. |
| YRel | The top edge of the rectangle in relative coordinates. Initial Value: 0.5. |
| XAdj | The left edge adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
| YAdj | The top edge adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
Definition at line 176 of file circlemodifier.cpp.
| CircleModifier & Mezzanine::Graphics::Procedural::CircleModifier::SetRadius | ( | const Whole | Radius | ) |
Sets the radius of the circle.
| Radius | The radius of the circle to be drawn. Initial Value: 0. |
Definition at line 170 of file circlemodifier.cpp.
| CircleModifier & Mezzanine::Graphics::Procedural::CircleModifier::SetXPositionAdj | ( | const Integer | X | ) |
Sets the absolute component of the center position on the X axis.
| X | The X axis adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
Definition at line 197 of file circlemodifier.cpp.
| CircleModifier & Mezzanine::Graphics::Procedural::CircleModifier::SetXPositionRel | ( | const Real | X | ) |
Sets the relative component of the center position on the X axis.
| X | The X axis center position of the circle in relative coordinates. Initial Value: 0.5. |
Definition at line 185 of file circlemodifier.cpp.
| CircleModifier & Mezzanine::Graphics::Procedural::CircleModifier::SetYPositionAdj | ( | const Integer | Y | ) |
Sets the absolute component of the center position on the Y axis.
| Y | The Y axis adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
Definition at line 203 of file circlemodifier.cpp.
| CircleModifier & Mezzanine::Graphics::Procedural::CircleModifier::SetYPositionRel | ( | const Real | Y | ) |
Sets the relative component of the center position on the Y axis.
| Y | The Y axis center position of the circle in relative coordinates. Initial Value: 0.5. |
Definition at line 191 of file circlemodifier.cpp.
|
protected |
The colour of the circle to be drawn.
Definition at line 87 of file circlemodifier.h.
|
protected |
The radius of the circle.
Definition at line 90 of file circlemodifier.h.
|
protected |
The position on the X axis of the circle.
Definition at line 99 of file circlemodifier.h.
|
protected |
The position on the X axis of the circle.
Definition at line 93 of file circlemodifier.h.
|
protected |
The position on the Y axis of the circle.
Definition at line 102 of file circlemodifier.h.
|
protected |
The position on the Y axis of the circle.
Definition at line 96 of file circlemodifier.h.
1.8.9.1. Thanks to the
Open Icon Library
for help with some of the icons.