26 #ifndef __TERRALIB_SE_INTERNAL_RULE_H 27 #define __TERRALIB_SE_INTERNAL_RULE_H 30 #include "../fe/Filter.h" 38 #include <boost/noncopyable.hpp> 98 void setName(std::string* name);
100 const std::string* getName()
const;
106 void setLegendGraphic(
Graphic* legendGraphic);
108 const Graphic* getLegendGraphic()
const;
110 void removeLegendGraphic();
126 void enableElseFilter();
128 void disableElseFilter();
130 bool hasElseFilter()
const;
132 void setMinScaleDenominator(
const double& minScaleDenominator);
134 const double& getMinScaleDenominator()
const;
136 void setMaxScaleDenominator(
const double& maxScaleDenominator);
138 const double& getMaxScaleDenominator()
const;
142 void setSymbolizer(std::size_t i,
Symbolizer* s);
144 void setSymbolizers(
const std::vector<Symbolizer*>& symbs);
146 const std::vector<Symbolizer*>& getSymbolizers()
const;
148 const Symbolizer* getSymbolizer(std::size_t i)
const;
150 void removeSymbolizer(std::size_t i);
152 void clearSymbolizers();
174 #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...