Eclipse SUMO - Simulation of Urban MObility
NIVissimAbstractEdge Class Referenceabstract

#include <NIVissimAbstractEdge.h>

Inheritance diagram for NIVissimAbstractEdge:
[legend]
Collaboration diagram for NIVissimAbstractEdge:
[legend]

Public Member Functions

void addDisturbance (int disturbance)
 
virtual void buildGeom ()=0
 
bool crossesEdge (NIVissimAbstractEdge *c) const
 
Position crossesEdgeAtPoint (NIVissimAbstractEdge *c) const
 
const std::vector< int > & getDisturbances () const
 
const PositionVectorgetGeometry () const
 
Position getGeomPosition (double pos) const
 
int getID () const
 
bool hasNodeCluster () const
 
 NIVissimAbstractEdge (int id, const PositionVector &geom)
 
bool overlapsWith (const AbstractPoly &p, double offset=0.0) const
 
virtual void setNodeCluster (int nodeid)=0
 
void splitAssigning ()
 
virtual ~NIVissimAbstractEdge ()
 

Static Public Member Functions

static void clearDict ()
 
static NIVissimAbstractEdgedictionary (int id)
 
static bool dictionary (int id, NIVissimAbstractEdge *e)
 
static std::vector< int > getWithin (const AbstractPoly &p, double offset=0.0)
 
static void splitAndAssignToNodes ()
 

Protected Attributes

std::vector< int > myDisturbances
 
PositionVector myGeom
 
int myID
 
int myNode
 

Private Types

typedef std::map< int, NIVissimAbstractEdge * > DictType
 

Static Private Attributes

static DictType myDict
 

Detailed Description

Definition at line 34 of file NIVissimAbstractEdge.h.

Member Typedef Documentation

◆ DictType

typedef std::map<int, NIVissimAbstractEdge*> NIVissimAbstractEdge::DictType
private

Definition at line 69 of file NIVissimAbstractEdge.h.

Constructor & Destructor Documentation

◆ NIVissimAbstractEdge()

NIVissimAbstractEdge::NIVissimAbstractEdge ( int  id,
const PositionVector geom 
)

◆ ~NIVissimAbstractEdge()

NIVissimAbstractEdge::~NIVissimAbstractEdge ( )
virtual

Definition at line 53 of file NIVissimAbstractEdge.cpp.

Member Function Documentation

◆ addDisturbance()

void NIVissimAbstractEdge::addDisturbance ( int  disturbance)

Definition at line 166 of file NIVissimAbstractEdge.cpp.

References myDisturbances.

◆ buildGeom()

virtual void NIVissimAbstractEdge::buildGeom ( )
pure virtual

Implemented in NIVissimEdge, and NIVissimConnection.

Referenced by NIVissimNodeCluster::buildNBNode().

Here is the caller graph for this function:

◆ clearDict()

void NIVissimAbstractEdge::clearDict ( )
static

Definition at line 151 of file NIVissimAbstractEdge.cpp.

References myDict.

Referenced by NIImporter_Vissim::~NIImporter_Vissim().

Here is the caller graph for this function:

◆ crossesEdge()

bool NIVissimAbstractEdge::crossesEdge ( NIVissimAbstractEdge c) const

Definition at line 109 of file NIVissimAbstractEdge.cpp.

References PositionVector::intersects(), and myGeom.

Referenced by NIVissimNodeCluster::buildNBNode().

Here is the caller graph for this function:

◆ crossesEdgeAtPoint()

Position NIVissimAbstractEdge::crossesEdgeAtPoint ( NIVissimAbstractEdge c) const

Definition at line 115 of file NIVissimAbstractEdge.cpp.

References PositionVector::intersectionPosition2D(), and myGeom.

Referenced by NIVissimDisturbance::addToNode(), and NIVissimNodeCluster::buildNBNode().

Here is the caller graph for this function:

◆ dictionary() [1/2]

NIVissimAbstractEdge * NIVissimAbstractEdge::dictionary ( int  id)
static

Definition at line 68 of file NIVissimAbstractEdge.cpp.

References myDict.

◆ dictionary() [2/2]

bool NIVissimAbstractEdge::dictionary ( int  id,
NIVissimAbstractEdge e 
)
static

Definition at line 57 of file NIVissimAbstractEdge.cpp.

References myDict.

Referenced by NIVissimNodeCluster::buildNBNode(), NIVissimDisturbance::computeBounding(), NIVissimDisturbance::dict_SetDisturbances(), NIVissimExtendedEdgePoint::getGeomPosition(), NIVissimTL::NIVissimTLSignal::getPosition(), and NIVissimAbstractEdge().

Here is the caller graph for this function:

◆ getDisturbances()

const std::vector< int > & NIVissimAbstractEdge::getDisturbances ( ) const

Definition at line 172 of file NIVissimAbstractEdge.cpp.

References myDisturbances.

Referenced by NIVissimConnectionCluster::getDisturbanceParticipators().

Here is the caller graph for this function:

◆ getGeometry()

◆ getGeomPosition()

Position NIVissimAbstractEdge::getGeomPosition ( double  pos) const

Definition at line 79 of file NIVissimAbstractEdge.cpp.

References PositionVector::extrapolate(), PositionVector::length(), myGeom, and PositionVector::positionAtOffset().

Referenced by NIVissimDistrictConnection::geomPosition().

Here is the caller graph for this function:

◆ getID()

◆ getWithin()

std::vector< int > NIVissimAbstractEdge::getWithin ( const AbstractPoly p,
double  offset = 0.0 
)
static

Definition at line 121 of file NIVissimAbstractEdge.cpp.

References myDict, myID, and overlapsWith().

◆ hasNodeCluster()

bool NIVissimAbstractEdge::hasNodeCluster ( ) const

Definition at line 140 of file NIVissimAbstractEdge.cpp.

References myNode.

◆ overlapsWith()

bool NIVissimAbstractEdge::overlapsWith ( const AbstractPoly p,
double  offset = 0.0 
) const

Definition at line 134 of file NIVissimAbstractEdge.cpp.

References myGeom, and PositionVector::overlapsWith().

Referenced by getWithin().

Here is the caller graph for this function:

◆ setNodeCluster()

virtual void NIVissimAbstractEdge::setNodeCluster ( int  nodeid)
pure virtual

Implemented in NIVissimEdge, and NIVissimConnection.

◆ splitAndAssignToNodes()

void NIVissimAbstractEdge::splitAndAssignToNodes ( )
static

Definition at line 94 of file NIVissimAbstractEdge.cpp.

References myDict, and splitAssigning().

◆ splitAssigning()

void NIVissimAbstractEdge::splitAssigning ( )

Definition at line 102 of file NIVissimAbstractEdge.cpp.

Referenced by splitAndAssignToNodes().

Here is the caller graph for this function:

Field Documentation

◆ myDict

NIVissimAbstractEdge::DictType NIVissimAbstractEdge::myDict
staticprivate

Definition at line 70 of file NIVissimAbstractEdge.h.

Referenced by clearDict(), dictionary(), getWithin(), and splitAndAssignToNodes().

◆ myDisturbances

std::vector<int> NIVissimAbstractEdge::myDisturbances
protected

Definition at line 65 of file NIVissimAbstractEdge.h.

Referenced by addDisturbance(), and getDisturbances().

◆ myGeom

◆ myID

◆ myNode

int NIVissimAbstractEdge::myNode
protected

The documentation for this class was generated from the following files: