#include <ETBrush.h>
Public Member Functions | |
| Brush () | |
| Brush (const float *brush, size_t width, size_t height) | |
| Brush (const std::vector< float > &brush, size_t width, size_t height) | |
| Brush (const Brush &other) | |
| ~Brush () | |
| Brush & | operator= (const Brush &other) |
| size_t | getWidth () const |
| size_t | getHeight () const |
| float & | at (size_t x, size_t y) |
| const float | at (size_t x, size_t y) const |
| void | swap (Brush &other) |
Private Attributes | |
| float * | mBrushArray |
| size_t | mWidth |
| size_t | mHeight |
| ET::Brush::Brush | ( | ) |
Default constructor
| ET::Brush::Brush | ( | const float * | brush, | |
| size_t | width, | |||
| size_t | height | |||
| ) |
Constructs a brush from a given array of floats
| ET::Brush::Brush | ( | const std::vector< float > & | brush, | |
| size_t | width, | |||
| size_t | height | |||
| ) |
Constructs a brush from a given vector of floats
| ET::Brush::Brush | ( | const Brush & | other | ) |
Copy constructor
| ET::Brush::~Brush | ( | ) |
| size_t ET::Brush::getWidth | ( | ) | const [inline] |
| size_t ET::Brush::getHeight | ( | ) | const [inline] |
| float& ET::Brush::at | ( | size_t | x, | |
| size_t | y | |||
| ) | [inline] |
Access to the brush array
| const float ET::Brush::at | ( | size_t | x, | |
| size_t | y | |||
| ) | const [inline] |
Const access to the brush array
| void ET::Brush::swap | ( | Brush & | other | ) |
Exception-safe swap function
float* ET::Brush::mBrushArray [private] |
The actual brush array containing the brush values
size_t ET::Brush::mWidth [private] |
The brush's dimensions
size_t ET::Brush::mHeight [private] |
1.5.3