|
codac 2.0.0
|
Style properties structure, to specify the style of a shape. More...
#include <codac2_StyleGradientProperties.h>


Public Member Functions | |
| StyleGradientProperties () | |
| Default constructor. | |
| StyleGradientProperties (const std::string ¶m1, const std::string ¶m2="", const std::string ¶m3="") | |
| Constructor with only optionnal parameters. | |
| StyleGradientProperties (const ColorMap &cmap, const std::string ¶m1="", const std::string ¶m2="", const std::string ¶m3="") | |
| Constructor from a color map, and three optional parameters. | |
Public Member Functions inherited from codac2::StylePropertiesBase | |
| StylePropertiesBase () | |
| Default constructor. | |
| StylePropertiesBase (const std::string ¶m1, const std::string ¶m2="", const std::string ¶m3="") | |
| Constructor with only optionnal parameters. | |
| void | parse_parameter (const std::string ¶m) |
| Parse a parameter and update the style properties accordingly. | |
Additional Inherited Members | |
Static Public Member Functions inherited from codac2::StylePropertiesBase | |
| static std::set< std::string > | available_line_styles () |
| Set of available line styles. | |
Style properties structure, to specify the style of a shape.
This class is used to specify the style of a shape, including the color map, line style, line width and layer.
| codac2::StyleGradientProperties::StyleGradientProperties | ( | ) |
Default constructor.
Black stroke color, transparent fill color, solid line style and layer "alpha"
| codac2::StyleGradientProperties::StyleGradientProperties | ( | const std::string & | param1, |
| const std::string & | param2 = "", | ||
| const std::string & | param3 = "" ) |
Constructor with only optionnal parameters.
| param1 | Optional parameter, can be layer name, line width or line style |
| param2 | Optional parameter, can be layer name, line width or line style |
| param3 | Optional parameter, can be layer name, line width or line style |
| codac2::StyleGradientProperties::StyleGradientProperties | ( | const ColorMap & | cmap, |
| const std::string & | param1 = "", | ||
| const std::string & | param2 = "", | ||
| const std::string & | param3 = "" ) |
Constructor from a color map, and three optional parameters.
| cmap | Color map |
| param1 | Optional parameter, can be layer name, line width or line style |
| param2 | Optional parameter, can be layer name, line width or line style |
| param3 | Optional parameter, can be layer name, line width or line style |