Brush. More...
#include <eVision/Easy/EBrush.h>
Public Member Functions | |
| EBrush () | |
| Constructs an EBrush. | |
| EBrush (const eVision::ERGBColor &color, float opacity) | |
| Constructs an EBrush. | |
| EBrush (const eVision::ERGBColor &color) | |
| Constructs an EBrush. | |
| bool | operator== (const eVision::EBrush &other) const |
| Equality operator. | |
| bool | operator!= (const eVision::EBrush &other) const |
| Inequality operator. | |
| bool | IsValid () const |
| Whether the brush is valid, i.e. when its color is defined. | |
| void | Serialize (eVision::ESerializer *serializer) |
| Serializes the EBrush. | |
| void | Load (const std::string &path) |
| Loads the EBrush. The given ESerializer must have been created for reading. | |
| void | Load (eVision::ESerializer *serializer) |
| Loads the EBrush. The given ESerializer must have been created for reading. | |
| void | Save (const std::string &path) |
| Saves the EBrush. The given ESerializer must have been created for writing. | |
| void | Save (eVision::ESerializer *serializer) |
| Saves the EBrush. The given ESerializer must have been created for writing. | |
Public Attributes | |
| eVision::ERGBColor | Color |
| Color of the brush. | |
| float | Opacity |
| Opacity of the brush. | |
Brush.
License(s): None
| eVision::EBrush::EBrush | ( | ) |
Constructs an EBrush.
| eVision::EBrush::EBrush | ( | const eVision::ERGBColor & | color, |
| float | opacity ) |
Constructs an EBrush.
| color | Brush color |
| opacity | Brush opacity |
| eVision::EBrush::EBrush | ( | const eVision::ERGBColor & | color | ) |
Constructs an EBrush.
| color | Brush color |
| bool eVision::EBrush::IsValid | ( | ) | const |
Whether the brush is valid, i.e. when its color is defined.
| void eVision::EBrush::Load | ( | const std::string & | path | ) |
Loads the EBrush. The given ESerializer must have been created for reading.
| path | The file path. |
| void eVision::EBrush::Load | ( | eVision::ESerializer * | serializer | ) |
Loads the EBrush. The given ESerializer must have been created for reading.
| serializer | The serializer. |
| bool eVision::EBrush::operator!= | ( | const eVision::EBrush & | other | ) | const |
Inequality operator.
| other | Other brush to compare with. |
| bool eVision::EBrush::operator== | ( | const eVision::EBrush & | other | ) | const |
Equality operator.
| other | Other brush to compare with. |
| void eVision::EBrush::Save | ( | const std::string & | path | ) |
Saves the EBrush. The given ESerializer must have been created for writing.
| path | The file path. |
| void eVision::EBrush::Save | ( | eVision::ESerializer * | serializer | ) |
Saves the EBrush. The given ESerializer must have been created for writing.
| serializer | The ESerializer object that is written to. |
| void eVision::EBrush::Serialize | ( | eVision::ESerializer * | serializer | ) |
Serializes the EBrush.
| serializer | Serializer |
Use EBrush::Save or EBrush::Load instead.
Deprecated in version 24.10. Scheduled to be removed in version 27.6.
| eVision::ERGBColor eVision::EBrush::Color |
Color of the brush.
| float eVision::EBrush::Opacity |
Opacity of the brush.