A SvgParameter refers to an SVG/CSS graphical-formatting parameter. More...
#include <SvgParameter.h>
Public Member Functions | |
SvgParameter * | clone () const |
It creates a new copy of this object. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
SvgParameter (const std::string &name) | |
It initializes a new SvgParameter. More... | |
SvgParameter (const std::string &name, const std::string &value) | |
It initializes a new SvgParameter with the given value. More... | |
SvgParameter (const SvgParameter &rhs) | |
Copy constructor. More... | |
~SvgParameter () | |
Destructor. More... | |
Accessors | |
Methods for retrieving and setting properties. | |
void | setName (const std::string &name) |
std::string | getName () const |
Accessors | |
Methods for retrieving and setting properties. | |
void | add (Parameter *p) |
void | add (const std::string &value) |
size_t | getNParameters () const |
const Parameter * | getParameter (size_t i) const |
Private Attributes | |
std::string | m_name |
The name attribute of the SvgParameter element. (Mandatory) More... | |
A SvgParameter refers to an SVG/CSS graphical-formatting parameter.
The parameter is identified using the "name" attribute and the content of the element gives the SVG/CSS-coded value.
Definition at line 48 of file SvgParameter.h.
te::se::SvgParameter::SvgParameter | ( | const std::string & | name | ) |
It initializes a new SvgParameter.
name | SVG parameter name. |
Definition at line 29 of file SvgParameter.cpp.
te::se::SvgParameter::SvgParameter | ( | const std::string & | name, |
const std::string & | value | ||
) |
It initializes a new SvgParameter with the given value.
name | SVG parameter name. |
value | SVG parameter value. |
Definition at line 35 of file SvgParameter.cpp.
te::se::SvgParameter::SvgParameter | ( | const SvgParameter & | rhs | ) |
Copy constructor.
rhs | The other svg parameter. |
Definition at line 41 of file SvgParameter.cpp.
te::se::SvgParameter::~SvgParameter | ( | ) |
Destructor.
Definition at line 47 of file SvgParameter.cpp.
|
inherited |
Definition at line 75 of file ParameterValue.cpp.
References te::se::ParameterValue::m_parameters.
Referenced by te::se::ParameterValue::add(), and te::se::ParameterValue::ParameterValue().
|
inherited |
Definition at line 80 of file ParameterValue.cpp.
References te::se::ParameterValue::add(), and te::se::ParameterValue::Parameter::m_expression.
te::se::SvgParameter * te::se::SvgParameter::clone | ( | ) | const |
It creates a new copy of this object.
Definition at line 61 of file SvgParameter.cpp.
std::string te::se::SvgParameter::getName | ( | ) | const |
Definition at line 56 of file SvgParameter.cpp.
Referenced by te::se::Fill::add(), te::se::Font::add(), te::se::Stroke::add(), and te::se::serialize::Save().
|
inherited |
Definition at line 87 of file ParameterValue.cpp.
References te::se::ParameterValue::m_parameters.
Referenced by te::se::GetString(), and te::se::serialize::Save().
|
inherited |
Definition at line 92 of file ParameterValue.cpp.
References te::se::ParameterValue::m_parameters.
Referenced by te::se::GetString(), and te::se::serialize::Save().
void te::se::SvgParameter::setName | ( | const std::string & | name | ) |
Definition at line 51 of file SvgParameter.cpp.
|
private |
The name attribute of the SvgParameter element. (Mandatory)
Definition at line 100 of file SvgParameter.h.