A modifier that draws a simple coloured rectangle onto the texture. More...
#include <rectanglemodifier.h>
Public Member Functions | |
RectangleModifier () | |
Blank constructor. | |
virtual | ~RectangleModifier () |
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... | |
RectangleModifier & | SetColour (const ColourValue &Colour) |
Sets the colour of the rectangle to be generated. More... | |
RectangleModifier & | SetColour (const Real Red, const Real Green, const Real Blue, const Real Alpha=1.0) |
Sets the colour of the rectangle to be generated. More... | |
RectangleModifier & | SetColour (const UInt8 Red, const UInt8 Green, const UInt8 Blue, const UInt8 Alpha) |
Sets the colour of the rectangle to be generated. More... | |
RectangleModifier & | SetPosition (const Real XPositionRel, const Real YPositionRel, const Integer XPositionAdj, const Integer YPositionAdj) |
Sets the relative and offset values for the rectangle position. More... | |
RectangleModifier & | SetRectangle (const Real XPosition, const Real YPosition, const Real XSize, const Real YSize) |
Sets the relative position and size of this rectangle.. More... | |
RectangleModifier & | SetRectangle (const Integer XPosition, const Integer YPosition, const Integer XSize, const Integer YSize) |
Sets the offsets for the position and size of this rectangle. More... | |
RectangleModifier & | SetRectangle (const Real XPositionRel, const Real YPositionRel, const Real XSizeRel, const Real YSizeRel, const Integer XPositionAdj, const Integer YPositionAdj, const Integer XSizeAdj, const Integer YSizeAdj) |
Sets the relative and offset values for the rectangle. More... | |
RectangleModifier & | SetSize (const Real XSizeRel, const Real YSizeRel, const Integer XSizeAdj, const Integer YSizeAdj) |
Sets the relative and offset values for the rectangle size. More... | |
RectangleModifier & | SetXPositionAdj (const Integer X) |
Sets the absolute component of the left edge. More... | |
RectangleModifier & | SetXPositionRel (const Real X) |
Sets the relative component of the left edge. More... | |
RectangleModifier & | SetXSizeAdj (const Integer X) |
Sets the absolute component for the horizontal size. More... | |
RectangleModifier & | SetXSizeRel (const Real X) |
Sets the relative component of the horizontal size. More... | |
RectangleModifier & | SetYPositionAdj (const Integer Y) |
Sets the absolute component of the top edge. More... | |
RectangleModifier & | SetYPositionRel (const Real Y) |
Sets the relative component of the top edge. More... | |
RectangleModifier & | SetYSizeAdj (const Integer Y) |
Sets the absolute component for the vertical size. More... | |
RectangleModifier & | SetYSizeRel (const Real Y) |
Sets the relative component of the vertical size. More... | |
Public Member Functions inherited from Mezzanine::Graphics::Procedural::TextureModifier | |
TextureModifier () | |
Blank constructor. | |
virtual | ~TextureModifier () |
Class destructor. | |
Protected Attributes | |
ColourValue | FillColour |
The colour of the rectangle to apply to the texture. More... | |
Integer | PositionXAdj |
The left edge adjustment of the rectangle after relative coordinates are calculated. More... | |
Real | PositionXRel |
The left edge of the rectangle in relative coordinates. More... | |
Integer | PositionYAdj |
The top edge adjustment of the rectangle after relative coordinates are calculated. More... | |
Real | PositionYRel |
The top edge of the rectangle in relative coordinates. More... | |
Integer | SizeXAdj |
The horizontal size adjustment of the rectangle after relative coordinates are calculated. More... | |
Real | SizeXRel |
The horizontal size of the rectangle in relative coordinates. More... | |
Integer | SizeYAdj |
The vertical size adjustment of the rectangle after relative coordinates are calculated. More... | |
Real | SizeYRel |
The vertical size of the rectangle in relative coordinates. More... | |
A modifier that draws a simple coloured rectangle onto the texture.
This modifier will use both relative and absolute coordinates to place the the rectangle on the texture, first resolving the relative component and then adding the absolute component.
Definition at line 83 of file rectanglemodifier.h.
|
virtual |
Gets the name of this modifier.
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 116 of file rectanglemodifier.cpp.
|
virtual |
Alters the generated pixels in a TextureBuffer.
Buffer | The buffer to be modified. |
Implements Mezzanine::Graphics::Procedural::TextureModifier.
Definition at line 98 of file rectanglemodifier.cpp.
RectangleModifier & Mezzanine::Graphics::Procedural::RectangleModifier::SetColour | ( | const ColourValue & | Colour | ) |
Sets the colour of the rectangle to be generated.
Colour | The colour of the rectangle to generate. Initial Value: 1.0, 1.0, 1.0, 1.0. |
Definition at line 122 of file rectanglemodifier.cpp.
RectangleModifier & Mezzanine::Graphics::Procedural::RectangleModifier::SetColour | ( | const Real | Red, |
const Real | Green, | ||
const Real | Blue, | ||
const Real | Alpha = 1.0 |
||
) |
Sets the colour of the rectangle to be generated.
Red | The Red component for the colour of the rectangle to generate. Initial Value: 1.0. |
Green | The Green component for the colour of the rectangle to generate. Initial Value: 1.0. |
Blue | The Blue component for the colour of the rectangle to generate. Initial Value: 1.0. |
Alpha | The Alpha component for the colour of the rectangle to generate. Initial Value: 1.0. |
Definition at line 125 of file rectanglemodifier.cpp.
RectangleModifier & Mezzanine::Graphics::Procedural::RectangleModifier::SetColour | ( | const UInt8 | Red, |
const UInt8 | Green, | ||
const UInt8 | Blue, | ||
const UInt8 | Alpha | ||
) |
Sets the colour of the rectangle to be generated.
Red | The Red component for the colour of the rectangle to generate. Initial Value: 255. |
Green | The Green component for the colour of the rectangle to generate. Initial Value: 255. |
Blue | The Blue component for the colour of the rectangle to generate. Initial Value: 255. |
Alpha | The Alpha component for the colour of the rectangle to generate. Initial Value: 255. |
Definition at line 128 of file rectanglemodifier.cpp.
RectangleModifier & Mezzanine::Graphics::Procedural::RectangleModifier::SetPosition | ( | const Real | XPositionRel, |
const Real | YPositionRel, | ||
const Integer | XPositionAdj, | ||
const Integer | YPositionAdj | ||
) |
Sets the relative and offset values for the rectangle position.
XPositionRel | The left edge of the rectangle in relative coordinates. Initial Value: 0.0. |
YPositionRel | The top edge of the rectangle in relative coordinates. Initial Value: 0.0. |
XPositionAdj | The left edge adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
YPositionAdj | The top edge adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
Definition at line 162 of file rectanglemodifier.cpp.
RectangleModifier & Mezzanine::Graphics::Procedural::RectangleModifier::SetRectangle | ( | const Real | XPosition, |
const Real | YPosition, | ||
const Real | XSize, | ||
const Real | YSize | ||
) |
Sets the relative position and size of this rectangle..
XPosition | The left edge of the rectangle in relative coordinates. Initial Value: 0.0. |
YPosition | The top edge of the rectangle in relative coordinates. Initial Value: 0.0. |
XSize | The horizontal size of the rectangle in relative coordinates. Initial Value: 1.0. |
YSize | The vertical size of the rectangle in relative coordinates. Initial Value: 1.0. |
Definition at line 131 of file rectanglemodifier.cpp.
RectangleModifier & Mezzanine::Graphics::Procedural::RectangleModifier::SetRectangle | ( | const Integer | XPosition, |
const Integer | YPosition, | ||
const Integer | XSize, | ||
const Integer | YSize | ||
) |
Sets the offsets for the position and size of this rectangle.
XPosition | The left edge adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
YPosition | The top edge adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
XSize | The horizontal size adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
YSize | The vertical size adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
Definition at line 140 of file rectanglemodifier.cpp.
RectangleModifier & Mezzanine::Graphics::Procedural::RectangleModifier::SetRectangle | ( | const Real | XPositionRel, |
const Real | YPositionRel, | ||
const Real | XSizeRel, | ||
const Real | YSizeRel, | ||
const Integer | XPositionAdj, | ||
const Integer | YPositionAdj, | ||
const Integer | XSizeAdj, | ||
const Integer | YSizeAdj | ||
) |
Sets the relative and offset values for the rectangle.
XPositionRel | The left edge of the rectangle in relative coordinates. Initial Value: 0.0. |
YPositionRel | The top edge of the rectangle in relative coordinates. Initial Value: 0.0. |
XSizeRel | The horizontal size of the rectangle in relative coordinates. Initial Value: 1.0. |
YSizeRel | The vertical size of the rectangle in relative coordinates. Initial Value: 1.0. |
XPositionAdj | The left edge adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
YPositionAdj | The top edge adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
XSizeAdj | The horizontal size adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
YSizeAdj | The vertical size adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
Definition at line 149 of file rectanglemodifier.cpp.
RectangleModifier & Mezzanine::Graphics::Procedural::RectangleModifier::SetSize | ( | const Real | XSizeRel, |
const Real | YSizeRel, | ||
const Integer | XSizeAdj, | ||
const Integer | YSizeAdj | ||
) |
Sets the relative and offset values for the rectangle size.
XSizeRel | The horizontal size of the rectangle in relative coordinates. Initial Value: 1.0. |
YSizeRel | The vertical size of the rectangle in relative coordinates. Initial Value: 1.0. |
XSizeAdj | The horizontal size adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
YSizeAdj | The vertical size adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
Definition at line 171 of file rectanglemodifier.cpp.
RectangleModifier & Mezzanine::Graphics::Procedural::RectangleModifier::SetXPositionAdj | ( | const Integer | X | ) |
Sets the absolute component of the left edge.
X | The left edge adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
Definition at line 192 of file rectanglemodifier.cpp.
RectangleModifier & Mezzanine::Graphics::Procedural::RectangleModifier::SetXPositionRel | ( | const Real | X | ) |
Sets the relative component of the left edge.
X | The left edge of the rectangle in relative coordinates. Initial Value: 0.0. |
Definition at line 180 of file rectanglemodifier.cpp.
RectangleModifier & Mezzanine::Graphics::Procedural::RectangleModifier::SetXSizeAdj | ( | const Integer | X | ) |
Sets the absolute component for the horizontal size.
X | The horizontal size adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
Definition at line 198 of file rectanglemodifier.cpp.
RectangleModifier & Mezzanine::Graphics::Procedural::RectangleModifier::SetXSizeRel | ( | const Real | X | ) |
Sets the relative component of the horizontal size.
X | The horizontal size of the rectangle in relative coordinates. Initial Value: 1.0. |
Definition at line 186 of file rectanglemodifier.cpp.
RectangleModifier & Mezzanine::Graphics::Procedural::RectangleModifier::SetYPositionAdj | ( | const Integer | Y | ) |
Sets the absolute component of the top edge.
Y | The top edge adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
Definition at line 195 of file rectanglemodifier.cpp.
RectangleModifier & Mezzanine::Graphics::Procedural::RectangleModifier::SetYPositionRel | ( | const Real | Y | ) |
Sets the relative component of the top edge.
Y | The top edge of the rectangle in relative coordinates. Initial Value: 0.0. |
Definition at line 183 of file rectanglemodifier.cpp.
RectangleModifier & Mezzanine::Graphics::Procedural::RectangleModifier::SetYSizeAdj | ( | const Integer | Y | ) |
Sets the absolute component for the vertical size.
Y | The vertical size adjustment of the rectangle after relative coordinates are calculated. Initial Value: 0. |
Definition at line 201 of file rectanglemodifier.cpp.
RectangleModifier & Mezzanine::Graphics::Procedural::RectangleModifier::SetYSizeRel | ( | const Real | Y | ) |
Sets the relative component of the vertical size.
Y | The vertical size of the rectangle in relative coordinates. Initial Value: 1.0. |
Definition at line 189 of file rectanglemodifier.cpp.
|
protected |
The colour of the rectangle to apply to the texture.
Definition at line 88 of file rectanglemodifier.h.
|
protected |
The left edge adjustment of the rectangle after relative coordinates are calculated.
Definition at line 103 of file rectanglemodifier.h.
|
protected |
The left edge of the rectangle in relative coordinates.
Definition at line 91 of file rectanglemodifier.h.
|
protected |
The top edge adjustment of the rectangle after relative coordinates are calculated.
Definition at line 106 of file rectanglemodifier.h.
|
protected |
The top edge of the rectangle in relative coordinates.
Definition at line 94 of file rectanglemodifier.h.
|
protected |
The horizontal size adjustment of the rectangle after relative coordinates are calculated.
Definition at line 109 of file rectanglemodifier.h.
|
protected |
The horizontal size of the rectangle in relative coordinates.
Definition at line 97 of file rectanglemodifier.h.
|
protected |
The vertical size adjustment of the rectangle after relative coordinates are calculated.
Definition at line 112 of file rectanglemodifier.h.
|
protected |
The vertical size of the rectangle in relative coordinates.
Definition at line 100 of file rectanglemodifier.h.