48 PCTypeMap::add(
const std::string&
id,
const std::string& newid,
const std::string& color,
49 const std::string& prefix,
const std::string& icon,
double layer,
50 double angle,
const std::string& imgFile,
bool discard,
Filltype allowFill) {
71 return myTypes.find(
id)->second;
A storage for options typed value containers)
double getFloat(const std::string &name) const
Returns the double-value of the named option (only for Option_Float)
std::string getString(const std::string &name) const
Returns the string-value of the named option (only for Option_String)
bool getBool(const std::string &name) const
Returns the boolean-value of the named option (only for Option_Bool)
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.
bool has(const std::string &id)
Returns the information whether the named type is known.
static RGBColor parseColor(std::string coldef)
Parses a color information.
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.