94 bool add(
const std::string&
id,
const std::string& newid,
const std::string&
color,
105 const TypeDef&
get(
const std::string&
id);
112 bool has(
const std::string&
id);
std::string id
The new type id to use.
A single definition of values that shall be used for a given type.
SUMOReal layer
The layer to use.
bool add(const std::string &id, const std::string &newid, const std::string &color, const std::string &prefix, SUMOReal layer, bool discard, bool allowFill)
Adds a type definition.
bool discard
Information whether polygons of this type shall be discarded.
RGBColor color
The color to use.
A storage for type mappings.
bool has(const std::string &id)
Returns the information whether the named type is known.
PCTypeMap(const OptionsCont &oc)
Constructor. The default type is constructed based on the given options.
std::string prefix
The prefix to use.
A storage for options typed value containers)
const TypeDef & getDefault()
get the default type according to the given options
std::map< std::string, TypeDef > myTypes
A map of type names to type definitions.
bool allowFill
Information whether polygons of this type can be filled.