public void LoadData(IMouseFrame[] frames) { //Load Whisker Angle Data WhiskerAngle.LoadData(frames); ProtractionRetraction.LoadData(frames); //Get whiskers List <ISingleWhiskerAmplitude> whiskers = new List <ISingleWhiskerAmplitude>(); foreach (IWhisker whisker in frames[0].Whiskers) { if (whisker.IsGenericPoint) { continue; } ISingleWhiskerAmplitude singleWhisker = ModelResolver.Resolve <ISingleWhiskerAmplitude>(); singleWhisker.Whisker = whisker; ISingleWhiskerProtractionRetraction proRetWhisker = ProtractionRetraction.Whiskers.Single(x => x.WhiskerId == whisker.WhiskerId); singleWhisker.ProtractionRetractionData = proRetWhisker.ProtractionRetractionData; singleWhisker.ProtractionRetractionDictionary = proRetWhisker.ProtractionRetractionDictionary; whiskers.Add(singleWhisker); } Whiskers = whiskers.ToArray(); UpdateTValue(); }
public SingleWhiskerAmplitudeViewModel(ISingleWhiskerAmplitude model) { Model = model; }
public SingleWhiskerAmplitudeViewModel(ISingleWhiskerAmplitude model) { Model = model; }