示例#1
0
 /**
  * Prepare loops
  */
 protected function prepareLoops()
 {
     $stepSize = (int) Configuration::ActivityView()->routePrecision()->value();
     $this->RouteLoop = new Route\Loop($this->Route);
     $this->RouteLoop->setStepSize($stepSize);
     if (!is_null($this->Trackdata) && $this->Route->num() == $this->Trackdata->num() && $this->Trackdata->has(Trackdata\Object::TIME)) {
         $this->TrackdataLoop = new Trackdata\Loop($this->Trackdata);
         $this->TrackdataLoop->setStepSize($stepSize);
     }
 }