70 for (std::vector<std::string>::const_iterator it = list.begin(); it != list.end(); ++it) {
79 const std::string& rootElement,
80 const std::map<SumoXMLAttr, std::string>& attrs) {
87 for (std::map<SumoXMLAttr, std::string>::const_iterator it = attrs.begin(); it != attrs.end(); ++it) {
109 const int tagNum = (int)xmlElement;
135 if (into.precision() == 2 && val < 2e7 && val > -2e7) {
168 if (into.precision() == 2 && val.
x() < 2e7 && val.
x() > -2e7 &&
169 val.
y() < 2e7 && val.
y() > -2e7 && val.
z() < 2e7 && val.
z() > -2e7) {
181 if (into.precision() == 2 && val.
x() < 2e7 && val.
x() > -2e7 &&
182 val.
y() < 2e7 && val.
y() > -2e7) {
206 for (PositionVector::const_iterator pos = val.begin(); pos != val.end(); ++pos) {
236 for (std::vector<int>::const_iterator it = val.begin(); it != val.end(); ++it) {
double ymin() const
Returns minimum y-coordinate.
SumoXMLTag
Numbers representing SUMO-XML - element names.
double xmax() const
Returns maximum x-coordinate.
static StringBijection< SumoXMLNodeType > NodeTypes
node types
double z() const
Returns the z-position.
unsigned char alpha() const
Returns the alpha-amount of the color.
double y() const
Returns the y-position.
static std::ostream & writeFloat(std::ostream &strm, double value)
Writes a float binary.
double x() const
Returns the x-position.
unsigned char blue() const
Returns the blue-amount of the color.
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
A class that stores a 2D geometrical boundary.
A point in 2D or 3D with translation and scaling methods.
static std::ostream & writeInt(std::ostream &strm, int value)
Writes an integer binary.
double xmin() const
Returns minimum x-coordinate.
static std::ostream & writeByte(std::ostream &strm, unsigned char value)
Writes a byte binary.
SumoXMLNodeType
Numbers representing special SUMO-XML-attribute values for representing node- (junction-) types used ...
unsigned char green() const
Returns the green-amount of the color.
static StringBijection< int > Attrs
The names of SUMO-XML attributes for use in netbuild.
SumoXMLEdgeFunc
Numbers representing special SUMO-XML-attribute values for representing edge functions used in netbui...
unsigned char red() const
Returns the red-amount of the color.
static StringBijection< int > Tags
The names of SUMO-XML elements for use in netbuild.
double ymax() const
Returns maximum y-coordinate.
static StringBijection< SumoXMLEdgeFunc > EdgeFunctions
edge functions
static std::ostream & writeString(std::ostream &strm, const std::string &value)
Writes a string binary.