codac 2.0.0
Loading...
Searching...
No Matches
codac2::StylePropertiesBase Struct Reference

Style properties structure, to specify the style of a shape. More...

#include <codac2_StylePropertiesBase.h>

Inheritance diagram for codac2::StylePropertiesBase:

Public Member Functions

 StylePropertiesBase ()
 Default constructor.
 
 StylePropertiesBase (const std::string &param1, const std::string &param2="", const std::string &param3="")
 Constructor with only optionnal parameters.
 
void parse_parameter (const std::string &param)
 Parse a parameter and update the style properties accordingly.
 

Static Public Member Functions

static std::set< std::string > available_line_styles ()
 Set of available line styles.
 

Detailed Description

Style properties structure, to specify the style of a shape.

This class is used to specify the style of a shape, i.e. its line style, line width and layer.

Constructor & Destructor Documentation

◆ StylePropertiesBase() [1/2]

codac2::StylePropertiesBase::StylePropertiesBase ( )

Default constructor.

Black stroke color, transparent fill color, solid line style and layer "alpha"

◆ StylePropertiesBase() [2/2]

codac2::StylePropertiesBase::StylePropertiesBase ( const std::string & param1,
const std::string & param2 = "",
const std::string & param3 = "" )

Constructor with only optionnal parameters.

Parameters
param1Optional parameter, can be layer name, line width or line style
param2Optional parameter, can be layer name, line width or line style
param3Optional parameter, can be layer name, line width or line style

Member Function Documentation

◆ parse_parameter()

void codac2::StylePropertiesBase::parse_parameter ( const std::string & param)

Parse a parameter and update the style properties accordingly.

Parameters
paramParameter to parse, can be a line style, line width or layer name

The documentation for this struct was generated from the following file: