18 #ifndef NIVissimConnectionCluster_h 19 #define NIVissimConnectionCluster_h 61 const Boundary& boundary,
int nodeCluster,
const std::vector<int>& edges);
98 static void _debugOut(std::ostream& into);
160 const std::vector<int>& iv2)
const;
188 typedef std::vector<NIVissimConnectionCluster*>
ContType;
static void joinBySameEdges(double offset)
Tries to joind clusters participating within a node This is done by joining clusters which overlap...
std::vector< NIVissimConnectionCluster * > ContType
NodeSubCluster(NIVissimConnection *c)
int myNodeCluster
The node the cluster is assigned to.
std::vector< int > myConnections
List of connection-ids which participate within this cluster.
int operator()(NIVissimConnection *c1, NIVissimConnection *c2) const
comparing operation
NIVissimConnection * getIncomingContinuation(NIVissimEdge *e) const
NBNode * getNBNode() const
static void joinByDisturbances(double offset)
const PositionVector & getGeometry() const
NIVissimConnection * getOutgoingContinuation(NIVissimEdge *e) const
std::vector< int > myNodes
std::vector< int > myOutgoingEdges
A class that stores a 2D geometrical boundary.
std::vector< int > getDisturbanceParticipators()
double getPositionForEdge(int edgeid) const
A temporary storage for edges imported from Vissim.
bool joinable(NIVissimConnectionCluster *c2, double offset)
static ContType myClusters
PositionVector getIncomingContinuationGeometry(NIVissimEdge *e) const
~NIVissimConnectionCluster()
Destructor.
bool hasNodeCluster() const
double beginEndAngle() const
returns the angle in radians of the line connecting the first and the last position ...
A point in 2D or 3D with translation and scaling methods.
static void _debugOut(std::ostream &into)
static void buildNodeClusters()
std::vector< int > myEdges
bool around(const Position &p, double offset=0) const
std::vector< NIVissimConnection * > ConnectionCont
void add(NIVissimConnection *c)
PositionVector getOutgoingContinuationGeometry(NIVissimEdge *e) const
void removeConnections(const NodeSubCluster &c)
static int getNextFreeNodeID()
ConnectionCont myConnections
std::vector< int > getConnectionIDs() const
std::vector< int > extendByToTreatAsSame(const std::vector< int > &iv1, const std::vector< int > &iv2) const
Boundary myBoundary
The boundary of the cluster.
Represents a single node (junction) during network building.
bool overlapsWith(const NodeSubCluster &c, double offset=0)
bool overlapsWith(NIVissimConnectionCluster *c, double offset=0) const
Returns the information whether the given cluster overlaps the current.
bool liesOnSameEdgesEnd(NIVissimConnectionCluster *cc2)
bool isWeakDistrictConnRealisation(NIVissimConnectionCluster *c2)
NIVissimConnectionCluster(const std::vector< int > &connections, int nodeCluster, int edgeid)
Constructor Build the boundary; The boundary includes both incoming and outgoing nodes.
static double angleDiff(const double angle1, const double angle2)
Returns the difference of the second angle to the first angle in radiants.
std::vector< int > myIncomingEdges
const std::vector< int > & getConnections() const
same_direction_sorter(double angle)
constructor