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
/****************************************************************************/
14
// Importer for static public transport information
15
/****************************************************************************/
16
#ifndef NIXMLShapeHandler_h
17
#define NIXMLShapeHandler_h
18
19
#include <
config.h
>
20
21
#include <string>
22
#include <
utils/shapes/ShapeHandler.h
>
23
// ===========================================================================
24
// class declarations
25
// ===========================================================================
26
class
NBEdgeCont
;
27
class
Position
;
28
29
// ===========================================================================
30
// class definitions
31
// ===========================================================================
32
39
class
NIXMLShapeHandler
:
public
ShapeHandler
{
40
public
:
41
NIXMLShapeHandler
(
ShapeContainer
& sc,
const
NBEdgeCont
& ec);
42
44
virtual
~NIXMLShapeHandler
() {}
45
46
Position
getLanePos
(
const
std::string& poiID,
const
std::string& laneID,
double
lanePos,
double
lanePosLat);
47
48
virtual
bool
addLanePosParams
() {
49
return
true
;
50
}
51
52
const
NBEdgeCont
&
myEdgeCont
;
53
};
54
#endif
55
56
/****************************************************************************/
NIXMLShapeHandler::myEdgeCont
const NBEdgeCont & myEdgeCont
Definition:
NIXMLShapeHandler.h:52
NBEdgeCont
Storage for edges, including some functionality operating on multiple edges.
Definition:
NBEdgeCont.h:60
ShapeContainer
Storage for geometrical objects.
Definition:
ShapeContainer.h:49
NIXMLShapeHandler
Definition:
NIXMLShapeHandler.h:39
NIXMLShapeHandler::~NIXMLShapeHandler
virtual ~NIXMLShapeHandler()
Destructor.
Definition:
NIXMLShapeHandler.h:44
NIXMLShapeHandler::NIXMLShapeHandler
NIXMLShapeHandler(ShapeContainer &sc, const NBEdgeCont &ec)
Definition:
NIXMLShapeHandler.cpp:34
Position
A point in 2D or 3D with translation and scaling methods.
Definition:
Position.h:38
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:40
config.h
ShapeHandler
The XML-Handler for network loading.
Definition:
ShapeHandler.h:49
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:48
src
netimport
NIXMLShapeHandler.h
Generated on Sun Jun 21 2020 23:18:41 for Eclipse SUMO - Simulation of Urban MObility by
1.8.17