29 #ifndef CDPL_VIS_BRUSH_HPP
30 #define CDPL_VIS_BRUSH_HPP
Definition of the class CDPL::Vis::Color.
Definition of the preprocessor macro CDPL_VIS_API.
#define CDPL_VIS_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Specifies the fill pattern and fill color of shapes.
Definition: Brush.hpp:50
Style
Defines constants for supported fill pattern styles.
Definition: Brush.hpp:57
@ SOLID_PATTERN
Specifies a solid pattern without any transparent pixels.
Definition: Brush.hpp:67
@ LEFT_DIAG_PATTERN
Specifies a pattern with equidistant diagonal lines from the upper right to the lower left corner.
Definition: Brush.hpp:122
@ RIGHT_DIAG_PATTERN
Specifies a pattern with equidistant diagonal lines from the upper left to the lower right corner.
Definition: Brush.hpp:127
@ DENSE2_PATTERN
Specifies a pattern with 12.5% uniformly distributed transparent pixels.
Definition: Brush.hpp:77
@ H_PATTERN
Specifies a pattern with equidistant horizontal lines.
Definition: Brush.hpp:107
@ DENSE4_PATTERN
Specifies a pattern with 50.0% uniformly distributed transparent pixels.
Definition: Brush.hpp:87
@ DENSE6_PATTERN
Specifies a pattern with 87.5% uniformly distributed transparent pixels.
Definition: Brush.hpp:97
@ DENSE1_PATTERN
Specifies a pattern with 6.25% uniformly distributed transparent pixels.
Definition: Brush.hpp:72
@ DENSE3_PATTERN
Specifies a pattern with 37.5% uniformly distributed transparent pixels.
Definition: Brush.hpp:82
@ NO_PATTERN
Specifies that shapes should not be filled.
Definition: Brush.hpp:62
@ CROSS_PATTERN
Specifies a pattern with equidistant horizontal and vertical lines.
Definition: Brush.hpp:117
@ DENSE7_PATTERN
Specifies a pattern with 93.75% uniformly distributed transparent pixels.
Definition: Brush.hpp:102
@ V_PATTERN
Specifies a pattern with equidistant vertical lines.
Definition: Brush.hpp:112
@ DENSE5_PATTERN
Specifies a pattern with 62.5% uniformly distributed transparent pixels.
Definition: Brush.hpp:92
Brush(const Color &color, Style style=SOLID_PATTERN)
Constructs a brush with the specified fill pattern style and color.
Brush(Style style)
Constructs a brush with the specified fill pattern style and the color Color::BLACK.
const Color & getColor() const
Returns the fill pattern color.
Brush()
Constructs a brush with fill pattern style Brush::NO_PATTERN and color Color::BLACK.
bool operator!=(const Brush &brush) const
Inequality comparison operator.
void setStyle(Style style)
Sets the fill pattern style.
void setColor(const Color &color)
Sets the fill pattern color.
bool operator==(const Brush &brush) const
Equality comparison operator.
Style getStyle() const
Returns the fill pattern style.
Specifies a color in terms of its red, green and blue components and an alpha-channel for transparenc...
Definition: Color.hpp:52
The namespace of the Chemical Data Processing Library.