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