NIVissimBoundedClusterObject Class Reference

#include <NIVissimBoundedClusterObject.h>

Inheritance diagram for NIVissimBoundedClusterObject:

NIVissimConnection NIVissimDisturbance

Detailed Description

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 BoundarygetBoundary () const
void inCluster (int id)
 NIVissimBoundedClusterObject ()
virtual ~NIVissimBoundedClusterObject ()

Static Public Member Functions

static void closeLoading ()

Protected Types

typedef std::set
< NIVissimBoundedClusterObject * > 
ContType

Protected Attributes

BoundarymyBoundary
int myClusterID

Static Protected Attributes

static ContType myDict

Member Typedef Documentation

Definition at line 59 of file NIVissimBoundedClusterObject.h.


Constructor & Destructor Documentation

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 }


Member Function Documentation

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]

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 }


Field Documentation

Definition at line 62 of file NIVissimBoundedClusterObject.h.

Referenced by clustered(), and inCluster().

Reimplemented in NIVissimConnection, and NIVissimDisturbance.

Definition at line 60 of file NIVissimBoundedClusterObject.h.

Referenced by closeLoading(), and NIVissimBoundedClusterObject().


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

Generated on Wed May 5 00:06:53 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6