26 #ifndef __TERRALIB_SE_INTERNAL_RULE_H
27 #define __TERRALIB_SE_INTERNAL_RULE_H
37 #include <boost/noncopyable.hpp>
42 namespace fe {
class Filter; }
100 void setName(std::string* name);
102 const std::string* getName()
const;
108 void setLegendGraphic(
Graphic* legendGraphic);
110 const Graphic* getLegendGraphic()
const;
112 void removeLegendGraphic();
128 void enableElseFilter();
130 void disableElseFilter();
132 bool hasElseFilter()
const;
134 void setMinScaleDenominator(
const double& minScaleDenominator);
136 const double& getMinScaleDenominator()
const;
138 void setMaxScaleDenominator(
const double& maxScaleDenominator);
140 const double& getMaxScaleDenominator()
const;
144 void setSymbolizer(std::size_t i,
Symbolizer* s);
146 void setSymbolizers(
const std::vector<Symbolizer*>& symbs);
148 const std::vector<Symbolizer*>& getSymbolizers()
const;
150 const Symbolizer* getSymbolizer(std::size_t i)
const;
152 void removeSymbolizer(std::size_t i);
154 void clearSymbolizers();
176 #endif // __TERRALIB_SE_INTERNAL_RULE_H
A Description gives human-readable descriptive information for the object it is included within...
A Symbolizer describes how a feature is to appear on a map.
Graphic * m_legendGraphic
It allows an optional explicit Graphic Symbolizer to be displayed in a legend for this rule...
double m_minScaleDenominator
It defines the range of map-rendering scales for which the rule should be applied. Default: 0.0. (Optional)
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
te::fe::Filter * m_filter
It allows the selection of features in rules to be controlled by attribute conditions. (Optional)
std::string * m_name
It allows the rule to be referenced externally, which is needed in some methods of SE usage...
double m_maxScaleDenominator
It defines the range of map-rendering scales for which the rule should be applied. Default: TE_DOUBLE_INFINITY. (Optional)
Description * m_description
It gives the familiar short title for display lists and longer description for the rule...
A filter is any valid predicate expression.
#define TESEEXPORT
You can use this macro in order to export/import classes and functions from this module.
Configuration flags for the Symbology Encoding support of TerraLib.
A Rule is used to attach property/scale conditions to and group the individual symbols used for rende...
std::vector< Symbolizer * > m_symbolizers
A Symbolizer describes how a feature/coverage is to appear on a map. (Mandatory)
bool m_elseFilter
It allows rules to be specified that are activated for features that are not selected by any other ru...