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