GUIInstantInductLoop::MyWrapper::MyWrapper(GUIInstantInductLoop& detector, double pos) : GUIDetectorWrapper(GLO_E1DETECTOR_INSTANT, detector.getID()), myDetector(detector), myPosition(pos) { myFGPosition = detector.getLane()->geometryPositionAtOffset(pos); myBoundary.add(myFGPosition.x() + (double) 5.5, myFGPosition.y() + (double) 5.5); myBoundary.add(myFGPosition.x() - (double) 5.5, myFGPosition.y() - (double) 5.5); myFGRotation = -detector.getLane()->getShape().rotationDegreeAtOffset(pos); }
/* ------------------------------------------------------------------------- * GUIInstantInductLoop::MyWrapper-methods * ----------------------------------------------------------------------- */ GUIInstantInductLoop::MyWrapper::MyWrapper(GUIInstantInductLoop& detector, SUMOReal pos) : GUIDetectorWrapper("instant induct loop", detector.getID()), myDetector(detector), myPosition(pos) { myFGPosition = detector.getLane()->geometryPositionAtOffset(pos); myBoundary.add(myFGPosition.x() + (SUMOReal) 5.5, myFGPosition.y() + (SUMOReal) 5.5); myBoundary.add(myFGPosition.x() - (SUMOReal) 5.5, myFGPosition.y() - (SUMOReal) 5.5); myFGRotation = -detector.getLane()->getShape().rotationDegreeAtOffset(pos); }