Eclipse SUMO - Simulation of Urban MObility
NIXMLShapeHandler.h
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3
// Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials
5
// are made available under the terms of the Eclipse Public License v2.0
6
// which accompanies this distribution, and is available at
7
// http://www.eclipse.org/legal/epl-v20.html
8
// SPDX-License-Identifier: EPL-2.0
9
/****************************************************************************/
15
// Importer for static public transport information
16
/****************************************************************************/
17
#ifndef NIXMLShapeHandler_h
18
#define NIXMLShapeHandler_h
19
20
#include <
config.h
>
21
22
#include <string>
23
#include <
utils/shapes/ShapeHandler.h
>
24
// ===========================================================================
25
// class declarations
26
// ===========================================================================
27
class
NBEdgeCont
;
28
class
Position
;
29
30
// ===========================================================================
31
// class definitions
32
// ===========================================================================
33
40
class
NIXMLShapeHandler
:
public
ShapeHandler
{
41
public
:
42
NIXMLShapeHandler
(
ShapeContainer
& sc,
const
NBEdgeCont
& ec);
43
45
virtual
~NIXMLShapeHandler
() {}
46
47
Position
getLanePos
(
const
std::string& poiID,
const
std::string& laneID,
double
lanePos,
double
lanePosLat);
48
49
virtual
bool
addLanePosParams
() {
50
return
true
;
51
}
52
53
const
NBEdgeCont
&
myEdgeCont
;
54
};
55
#endif
56
57
/****************************************************************************/
NIXMLShapeHandler::myEdgeCont
const NBEdgeCont & myEdgeCont
Definition:
NIXMLShapeHandler.h:53
NBEdgeCont
Storage for edges, including some functionality operating on multiple edges.
Definition:
NBEdgeCont.h:61
ShapeContainer
Storage for geometrical objects.
Definition:
ShapeContainer.h:50
NIXMLShapeHandler
Definition:
NIXMLShapeHandler.h:40
NIXMLShapeHandler::~NIXMLShapeHandler
virtual ~NIXMLShapeHandler()
Destructor.
Definition:
NIXMLShapeHandler.h:45
NIXMLShapeHandler::NIXMLShapeHandler
NIXMLShapeHandler(ShapeContainer &sc, const NBEdgeCont &ec)
Definition:
NIXMLShapeHandler.cpp:35
Position
A point in 2D or 3D with translation and scaling methods.
Definition:
Position.h:39
NIXMLShapeHandler::getLanePos
Position getLanePos(const std::string &poiID, const std::string &laneID, double lanePos, double lanePosLat)
get position for a given laneID (Has to be implemented in all child)
Definition:
NIXMLShapeHandler.cpp:41
config.h
ShapeHandler
The XML-Handler for network loading.
Definition:
ShapeHandler.h:50
ShapeHandler.h
NIXMLShapeHandler::addLanePosParams
virtual bool addLanePosParams()
Whether some input attributes shall be automatically added as params (Can be implemented in all child...
Definition:
NIXMLShapeHandler.h:49
src
netimport
NIXMLShapeHandler.h
Generated on Wed Jan 15 2020 15:04:13 for Eclipse SUMO - Simulation of Urban MObility by
1.8.16