26 #include <QApplication> 28 #include <QGridLayout> 31 #include <QMdiSubWindow> 55 std::cout <<
":: Selected Symbol ::" << std::endl;
56 std::cout <<
"- ID: " << info.
m_id << std::endl;
57 std::cout <<
"- Name: " << info.
m_name << std::endl;
58 std::cout <<
"- Author: " << info.
m_author << std::endl;
59 std::cout <<
"- Tags: " << info.
m_tags << std::endl;
60 std::cout <<
"- Description: " << info.
m_description << std::endl;
75 info.
m_id =
"179C25E4-AABC-4F63-8C10-AAD00CCE74F9";
76 info.
m_name =
"Brazilian Highway";
78 info.
m_tags =
"highway; road; Brazil";
79 info.
m_description =
"This symbol is used to represent highways.";
85 mainWidget.setWindowTitle(
"Symbol Editors");
86 mainWidget.addSubWindow(editPointSymbol)->setWindowTitle(
"Point Symbol");
87 mainWidget.addSubWindow(editLineSymbol)->setWindowTitle(
"Line Symbol");
88 mainWidget.addSubWindow(editPolygonSymbol)->setWindowTitle(
"Polygon Symbol");
89 mainWidget.addSubWindow(symbolInfo);
98 dlg.setWindowTitle(
"Symbolizer Widgets Example");
111 box->addItem(ps,
"&Polygon Symbolyzer");
112 box->addItem(ls,
"&Line Symbolyzer");
113 box->addItem(pts,
"P&oint Symbolyzer");
116 QGridLayout* layout =
new QGridLayout(&dlg);
117 layout->setSizeConstraint(QLayout::SetFixedSize);
118 layout->addWidget(box);
126 dlg.setWindowTitle(
"Symbolizer Preview Example");
141 table->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
144 QGridLayout* layout =
new QGridLayout(&dlg);
145 layout->setSizeConstraint(QLayout::SetFixedSize);
146 layout->addWidget(preview, 0, 0);
147 layout->addWidget(table, 1, 0);
156 QString title(
"Testing Basic Symbology Widgets");
166 delete initialStroke;
205 QStringList ithemes = QIcon::themeSearchPaths();
207 QIcon::setThemeName(
"terralib");
208 QIcon::setThemeSearchPaths(ithemes);
A Mark specifies a geometric shape and applies coloring to it.
This class represents a symbol.
A dialog used to build a basic fill element.
This file contains include headers for TerraLib Symbology Encoding module.
TESEEXPORT LineSymbolizer * CreateLineSymbolizer(Stroke *stroke)
Creates a line symbolizer.
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
A dialog used to build a basic stroke element.
A dialog used to select a specific symbol.
A dialog used to configure informations about a symbol.
A Fill specifies the pattern for filling an area geometry.
A dialog used to build a graphic element.
TESEEXPORT Mark * CreateMark(const std::string &wellKnownName, Stroke *stroke, Fill *fill)
Creates a mark.
A dialog used to build a glyph mark element.
TESEEXPORT Stroke * CreateStroke(const std::string &color, const std::string &width)
Creates a stroke.
A Stroke specifies the appearance of a linear geometry.
A dialog used to build a well known mark element.
TECOREEXPORT std::string FindInTerraLibPath(const std::string &path)
Returns the path relative to a directory or file in the context of TerraLib.
This file contains include headers for the TerraLib Common Runtime module.
TESEEXPORT Fill * CreateFill(const std::string &color, const std::string &opacity)
Creates a fill.