96 bool add(
const std::string&
id,
const std::string& newid,
const std::string& color,
97 const std::string& prefix,
const std::string& icon,
double layer,
98 double angle,
const std::string& imgFile,
bool discard,
Filltype allowFill);
113 bool has(
const std::string&
id);
121 const std::map<std::string, TypeDef>&
getTypes()
const {
A storage for options typed value containers)
A storage for type mappings.
PCTypeMap(const OptionsCont &oc)
Constructor. The default type is constructed based on the given options.
const TypeDef & get(const std::string &id)
Returns a type definition.
bool add(const std::string &id, const std::string &newid, const std::string &color, const std::string &prefix, const std::string &icon, double layer, double angle, const std::string &imgFile, bool discard, Filltype allowFill)
Adds a type definition.
std::map< std::string, TypeDef > myTypes
A map of type names to type definitions.
const std::map< std::string, TypeDef > & getTypes() const
retrieve all known types
bool has(const std::string &id)
Returns the information whether the named type is known.
const TypeDef & getDefault()
get the default type according to the given options
A single definition of values that shall be used for a given type.
std::string icon
the icon to use
bool discard
Information whether polygons of this type shall be discarded.
std::string prefix
The prefix to use.
double layer
The layer to use.
double angle
The angle to use.
std::string imgFile
The image file to use.
std::string id
The new type id to use.
RGBColor color
The color to use.
Filltype allowFill
Information whether polygons of this type can be filled.