public void PerformOperation(MapObject mo) { var current = Extractor(mo.BoundingBox); var target = Extractor(_alignBox); var value = target - current; var translate = Creator(value); var transform = new UnitTranslate(translate); mo.Transform(transform, _transformFlags); }
public void PerformOperation(MapObject mo) { mo.Transform(_transformation, _transformFlags); if (ClearVisgroups) { foreach (var o in mo.FindAll()) o.Visgroups.Clear(); } }