#include <NIVissimBoundedClusterObject.h>

Definition at line 47 of file NIVissimBoundedClusterObject.h.
Public Member Functions | |
| bool | clustered () const |
| virtual void | computeBounding ()=0 |
| bool | crosses (const AbstractPoly &poly, SUMOReal offset=0) const |
| const Boundary & | getBoundary () const |
| void | inCluster (int id) |
| NIVissimBoundedClusterObject () | |
| virtual | ~NIVissimBoundedClusterObject () |
Static Public Member Functions | |
| static void | closeLoading () |
Protected Types | |
| typedef std::set < NIVissimBoundedClusterObject * > | ContType |
Protected Attributes | |
| Boundary * | myBoundary |
| int | myClusterID |
Static Protected Attributes | |
| static ContType | myDict |
typedef std::set<NIVissimBoundedClusterObject*> NIVissimBoundedClusterObject::ContType [protected] |
Definition at line 59 of file NIVissimBoundedClusterObject.h.
| NIVissimBoundedClusterObject::NIVissimBoundedClusterObject | ( | ) |
Definition at line 41 of file NIVissimBoundedClusterObject.cpp.
References myDict.
00042 : myBoundary(0), myClusterID(-1) { 00043 myDict.insert(this); 00044 }
| NIVissimBoundedClusterObject::~NIVissimBoundedClusterObject | ( | ) | [virtual] |
Definition at line 47 of file NIVissimBoundedClusterObject.cpp.
References myBoundary.
00047 { 00048 delete myBoundary; 00049 }
| void NIVissimBoundedClusterObject::closeLoading | ( | ) | [static] |
Definition at line 73 of file NIVissimBoundedClusterObject.cpp.
References myDict.
Referenced by NIImporter_Vissim::postLoadBuild().
00073 { 00074 for (ContType::iterator i=myDict.begin(); i!=myDict.end(); i++) { 00075 (*i)->computeBounding(); 00076 } 00077 }
| bool NIVissimBoundedClusterObject::clustered | ( | ) | const |
Definition at line 67 of file NIVissimBoundedClusterObject.cpp.
References myClusterID.
Referenced by NIVissimConnection::buildNodeClusters().
00067 { 00068 return myClusterID>0; 00069 }
| virtual void NIVissimBoundedClusterObject::computeBounding | ( | ) | [pure virtual] |
Implemented in NIVissimConnection, and NIVissimDisturbance.
| bool NIVissimBoundedClusterObject::crosses | ( | const AbstractPoly & | poly, | |
| SUMOReal | offset = 0 | |||
| ) | const |
Definition at line 53 of file NIVissimBoundedClusterObject.cpp.
References myBoundary, Boundary::overlapsWith(), Boundary::xmax(), and Boundary::xmin().
00054 { 00055 assert(myBoundary!=0&&myBoundary->xmax()>=myBoundary->xmin()); 00056 return myBoundary->overlapsWith(poly, offset); 00057 }
| const Boundary & NIVissimBoundedClusterObject::getBoundary | ( | ) | const |
Definition at line 81 of file NIVissimBoundedClusterObject.cpp.
References myBoundary.
Referenced by NIVissimConnectionCluster::liesOnSameEdgesEnd().
00081 { 00082 return *myBoundary; 00083 }
| void NIVissimBoundedClusterObject::inCluster | ( | int | id | ) |
Definition at line 61 of file NIVissimBoundedClusterObject.cpp.
References myClusterID.
00061 { 00062 myClusterID = id; 00063 }
Boundary* NIVissimBoundedClusterObject::myBoundary [protected] |
Definition at line 61 of file NIVissimBoundedClusterObject.h.
Referenced by NIVissimConnection::buildNodeClusters(), NIVissimDisturbance::computeBounding(), NIVissimConnection::computeBounding(), crosses(), getBoundary(), NIVissimConnection::getBoundingBox(), and ~NIVissimBoundedClusterObject().
int NIVissimBoundedClusterObject::myClusterID [protected] |
Definition at line 62 of file NIVissimBoundedClusterObject.h.
Referenced by clustered(), and inCluster().
NIVissimBoundedClusterObject::ContType NIVissimBoundedClusterObject::myDict [static, protected] |
Reimplemented in NIVissimConnection, and NIVissimDisturbance.
Definition at line 60 of file NIVissimBoundedClusterObject.h.
Referenced by closeLoading(), and NIVissimBoundedClusterObject().
1.5.6