This class represents a symbol. TODO: More description! More...
#include <Symbol.h>
Public Member Functions | |
void | addSymbolizer (te::se::Symbolizer *symb) |
It adds the given Symbolizer to the list of Symbolizers of the symbol. More... | |
Symbol * | clone () const |
It creates a new copy of this object. More... | |
const SymbolInfo & | getInfo () const |
It return the information associated to the symbol. More... | |
te::se::Symbolizer * | getSymbolizer (const std::size_t &i) const |
It returns the n-th Symbolizer. More... | |
const std::vector< te::se::Symbolizer * > & | getSymbolizers () const |
It returns the list of Symbolizers that compose the symbol. More... | |
std::size_t | getSymbolizersCount () const |
It returns the number of Symbolizers that compose of the symbol. More... | |
te::se::Symbolizer * | operator[] (const std::size_t &i) const |
It returns the n-th Symbolizer. More... | |
void | removeSymbolizer (const std::size_t &i) |
It removes the specified Symbolizer from the list of Symbolizers of the symbol. More... | |
void | setInfo (const SymbolInfo &info) |
It sets the information associated to the symbol. More... | |
void | setSymbolizer (const std::size_t &i, te::se::Symbolizer *symb) |
It sets the given Symbolizer at the given position. More... | |
void | swapSymbolizers (const std::size_t &first, const std::size_t &second) |
It swaps the position of the Symbolizers. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
Symbol () | |
Default constructor. More... | |
Symbol (const Symbol &rhs) | |
Copy constructor. More... | |
~Symbol () | |
Destructor. More... | |
Private Attributes | |
SymbolInfo | m_info |
Information about the symbol. More... | |
std::vector< te::se::Symbolizer * > | m_symbs |
Set of symbolizers that compose the symbol. More... | |
te::qt::widgets::Symbol::Symbol | ( | ) |
Default constructor.
Definition at line 34 of file Symbol.cpp.
te::qt::widgets::Symbol::Symbol | ( | const Symbol & | rhs | ) |
te::qt::widgets::Symbol::~Symbol | ( | ) |
void te::qt::widgets::Symbol::addSymbolizer | ( | te::se::Symbolizer * | symb | ) |
It adds the given Symbolizer to the list of Symbolizers of the symbol.
symb | The Symbolizer that will be added. |
Definition at line 82 of file Symbol.cpp.
te::qt::widgets::Symbol * te::qt::widgets::Symbol::clone | ( | ) | const |
It creates a new copy of this object.
Definition at line 120 of file Symbol.cpp.
Referenced by te::qt::widgets::SymbolSelectorDialog::getSymbol().
const te::qt::widgets::SymbolInfo & te::qt::widgets::Symbol::getInfo | ( | ) | const |
It return the information associated to the symbol.
Definition at line 50 of file Symbol.cpp.
Referenced by te::qt::widgets::SymbolSelectorDialog::initialize(), te::qt::widgets::SymbolLibrary::insert(), te::qt::widgets::SymbolSelectorDialog::onShowSymbolInfoPushButtonPressed(), te::qt::widgets::SymbolLibrary::remove(), and Symbol().
te::se::Symbolizer * te::qt::widgets::Symbol::getSymbolizer | ( | const std::size_t & | i | ) | const |
It returns the n-th Symbolizer.
i | The Symbolizer index. |
Definition at line 65 of file Symbol.cpp.
Referenced by te::qt::widgets::StyleControllerWidget::onLibraryManagerClicked(), and te::qt::widgets::SymbolTableWidget::updatePreview().
const std::vector< te::se::Symbolizer * > & te::qt::widgets::Symbol::getSymbolizers | ( | ) | const |
It returns the list of Symbolizers that compose the symbol.
Definition at line 77 of file Symbol.cpp.
Referenced by te::qt::widgets::SymbologyPreview::build(), te::qt::widgets::SymbolSelectorDialog::initialize(), and te::qt::widgets::SymbolPreviewWidget::updatePreview().
std::size_t te::qt::widgets::Symbol::getSymbolizersCount | ( | ) | const |
It returns the number of Symbolizers that compose of the symbol.
Definition at line 60 of file Symbol.cpp.
Referenced by te::qt::widgets::StyleControllerWidget::onLibraryManagerClicked(), and te::qt::widgets::SymbolTableWidget::updatePreview().
te::se::Symbolizer * te::qt::widgets::Symbol::operator[] | ( | const std::size_t & | i | ) | const |
It returns the n-th Symbolizer.
i | The Symbolizer index. |
Definition at line 72 of file Symbol.cpp.
void te::qt::widgets::Symbol::removeSymbolizer | ( | const std::size_t & | i | ) |
It removes the specified Symbolizer from the list of Symbolizers of the symbol.
i | The Symbolizer index. |
Definition at line 98 of file Symbol.cpp.
void te::qt::widgets::Symbol::setInfo | ( | const SymbolInfo & | info | ) |
It sets the information associated to the symbol.
info | The information that will be associated to this symbol. |
Definition at line 55 of file Symbol.cpp.
void te::qt::widgets::Symbol::setSymbolizer | ( | const std::size_t & | i, |
te::se::Symbolizer * | symb | ||
) |
It sets the given Symbolizer at the given position.
i | The Symbolizer position. |
symb | The Symbolizer that will be added. |
Definition at line 89 of file Symbol.cpp.
void te::qt::widgets::Symbol::swapSymbolizers | ( | const std::size_t & | first, |
const std::size_t & | second | ||
) |
It swaps the position of the Symbolizers.
first | The first Symbolizer index. |
second | The second Symbolizer index. |
Definition at line 106 of file Symbol.cpp.
|
private |
|
private |