public PointData(PointData other, bool withValues = true) : base(other) { count = other.count; if (withValues) { if (other.values != null) { values = (float[])other.values.Clone(); } } units = other.units; categoryFilter.CopyFrom(other.categoryFilter); if (other.categories != null) { categories = (IntCategory[])other.categories.Clone(); } minValue = other.minValue; maxValue = other.maxValue; minFilter = other.minFilter; maxFilter = other.maxFilter; coloring = other.coloring; }
public GridData(GridData other, bool withValues = true) : base(other) { countX = other.countX; countY = other.countY; if (withValues) { if (other.values != null) { values = (float[])other.values.Clone(); } if (other.valuesMask != null) { valuesMask = (byte[])other.valuesMask.Clone(); } } units = other.units; categoryFilter.CopyFrom(other.categoryFilter); if (other.categories != null) { categories = (IntCategory[])other.categories.Clone(); } minValue = other.minValue; maxValue = other.maxValue; minFilter = other.minFilter; maxFilter = other.maxFilter; coloring = other.coloring; }
private void UpdateCategories <T>(T[] categories, CategoryFilter filter) where T : Category { int count = (categories == null) ? 0 : categories.Length; newFilter.CopyFrom(filter); if (count > 0) { for (int i = 0; i < count; i++) { UpdateCategory(categories[i], newFilter, i); } UpdateSitesMask(); } }