public void MergeFrom(RecognizeBoxParam other) { if (other == null) { return; } if (other.verticalModel_ != null) { if (verticalModel_ == null) { verticalModel_ = new global::Apollo.Perception.Camera.TrafficLight.Recognition.ClassifyParam(); } VerticalModel.MergeFrom(other.VerticalModel); } if (other.quadrateModel_ != null) { if (quadrateModel_ == null) { quadrateModel_ = new global::Apollo.Perception.Camera.TrafficLight.Recognition.ClassifyParam(); } QuadrateModel.MergeFrom(other.QuadrateModel); } if (other.horizontalModel_ != null) { if (horizontalModel_ == null) { horizontalModel_ = new global::Apollo.Perception.Camera.TrafficLight.Recognition.ClassifyParam(); } HorizontalModel.MergeFrom(other.HorizontalModel); } }
public virtual List <VerticalModel> VerticalModels() { var result = new List <VerticalModel>(); var allverticals = _menu.GetAllVerticals(); foreach (var category in allverticals) { var verticla = new VerticalModel { VerticalId = category.VerticalId, Vertical = category.Vertical, NavId = category.NavId }; result.Add(verticla); } return(result); }
public override int GetHashCode() { int hash = 1; if (verticalModel_ != null) { hash ^= VerticalModel.GetHashCode(); } if (quadrateModel_ != null) { hash ^= QuadrateModel.GetHashCode(); } if (horizontalModel_ != null) { hash ^= HorizontalModel.GetHashCode(); } return(hash); }