Eclipse SUMO - Simulation of Urban MObility
NIVissimNodeDef_Edges.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 // -------------------
16 /****************************************************************************/
17 #ifndef NIVissimNodeDef_Edges_h
18 #define NIVissimNodeDef_Edges_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 
27 #include <string>
28 #include <map>
31 #include "NIVissimNodeDef.h"
32 
34  public NIVissimNodeDef {
35 public:
36  NIVissimNodeDef_Edges(int id, const std::string& name,
38  virtual ~NIVissimNodeDef_Edges();
39  static bool dictionary(int id, const std::string& name,
41 // virtual void computeBounding();
42 // virtual void searchAndSetConnections();
43  virtual double getEdgePosition(int edgeid) const;
44 
48  class id_matches {
49  public:
50  explicit id_matches(int id) : myEdgeID(id) { }
52  return e->getID() == myEdgeID;
53  }
54  private:
55  int myEdgeID;
56  };
57 
59  public:
62  return e->getEdgeID() == myEdge->getID() &&
64  }
65  private:
67  };
68 
69 protected:
71 };
72 
73 
74 #endif
75 
76 /****************************************************************************/
77 
NIVissimNodeParticipatingEdgeVector
std::vector< NIVissimNodeParticipatingEdge * > NIVissimNodeParticipatingEdgeVector
Definition: NIVissimNodeParticipatingEdgeVector.h:30
NIVissimNodeDef_Edges::id_matches::id_matches
id_matches(int id)
Definition: NIVissimNodeDef_Edges.h:50
NIVissimNodeDef_Edges::getEdgePosition
virtual double getEdgePosition(int edgeid) const
Definition: NIVissimNodeDef_Edges.cpp:103
NIVissimNodeDef_Edges::~NIVissimNodeDef_Edges
virtual ~NIVissimNodeDef_Edges()
Definition: NIVissimNodeDef_Edges.cpp:48
NIVissimExtendedEdgePoint::getEdgeID
int getEdgeID() const
Definition: NIVissimExtendedEdgePoint.cpp:45
NIVissimExtendedEdgePoint
Definition: NIVissimExtendedEdgePoint.h:43
NIVissimNodeDef.h
NIVissimNodeDef_Edges
Definition: NIVissimNodeDef_Edges.h:33
NIVissimNodeDef
Definition: NIVissimNodeDef.h:34
NIVissimNodeDef_Edges::NIVissimNodeDef_Edges
NIVissimNodeDef_Edges(int id, const std::string &name, const NIVissimNodeParticipatingEdgeVector &edges)
Definition: NIVissimNodeDef_Edges.cpp:43
NIVissimNodeDef_Edges::dictionary
static bool dictionary(int id, const std::string &name, const NIVissimNodeParticipatingEdgeVector &edges)
Definition: NIVissimNodeDef_Edges.cpp:57
NIVissimNodeParticipatingEdge
Definition: NIVissimNodeParticipatingEdge.h:37
NIVissimNodeDef_Edges::id_matches
Definition: NIVissimNodeDef_Edges.h:48
NIVissimNodeParticipatingEdge::getID
int getID() const
Definition: NIVissimNodeParticipatingEdge.cpp:39
NIVissimNodeDef_Edges::lying_within_match::operator()
bool operator()(NIVissimExtendedEdgePoint *e)
Definition: NIVissimNodeDef_Edges.h:61
NIVissimExtendedEdgePoint.h
NIVissimNodeParticipatingEdge::positionLiesWithin
bool positionLiesWithin(double pos) const
Definition: NIVissimNodeParticipatingEdge.cpp:45
NIVissimNodeDef_Edges::lying_within_match
Definition: NIVissimNodeDef_Edges.h:58
NIVissimNodeDef_Edges::id_matches::operator()
bool operator()(NIVissimNodeParticipatingEdge *e)
Definition: NIVissimNodeDef_Edges.h:51
NIVissimNodeDef_Edges::myEdges
NIVissimNodeParticipatingEdgeVector myEdges
Definition: NIVissimNodeDef_Edges.h:70
config.h
NIVissimNodeDef_Edges::lying_within_match::lying_within_match
lying_within_match(NIVissimNodeParticipatingEdge *e)
Definition: NIVissimNodeDef_Edges.h:60
NIVissimNodeParticipatingEdgeVector.h
NIVissimExtendedEdgePoint::getPosition
double getPosition() const
Definition: NIVissimExtendedEdgePoint.cpp:51
NIVissimNodeDef_Edges::id_matches::myEdgeID
int myEdgeID
Definition: NIVissimNodeDef_Edges.h:55
NIVissimNodeDef_Edges::lying_within_match::myEdge
NIVissimNodeParticipatingEdge * myEdge
Definition: NIVissimNodeDef_Edges.h:66