protected sealed override void RebuildUI() { linesPool.PutAll(Children.OfType <WirePolyline>()); Children.Clear(); if (DataSource == null) { return; } width = DataSource.Width; height = DataSource.Height; depth = DataSource.Depth; fieldWrapper = new UniformField3DWrapper(DataSource.Data, width, height, depth); Pattern.PointsCount = LinesCount; foreach (var point in Pattern.GeneratePoints()) { DrawLine(point); } }
protected sealed override void RebuildUI() { linesPool.PutAll(Children.OfType<WirePolyline>()); Children.Clear(); if (DataSource == null) return; width = DataSource.Width; height = DataSource.Height; depth = DataSource.Depth; fieldWrapper = new UniformField3DWrapper(DataSource.Data, width, height, depth); Pattern.PointsCount = LinesCount; foreach (var point in Pattern.GeneratePoints()) { DrawLine(point); } }