public override Box2D ComputeBox(Transform2D transf) { Box2D box = new Box2D(); foreach (PicEntity entity in _entities) { PicDrawable drawable = entity as PicDrawable; if (null != drawable) { box.Extend(drawable.ComputeBox(transf)); } } return(box); }
protected override bool Evaluate() { _box.Reset(); foreach (PicEntity entity in _entities) { PicDrawable drawable = entity as PicDrawable; if (null != drawable) { PicTypedDrawable typeDrawable = drawable as PicTypedDrawable; if (null == typeDrawable || typeDrawable.LineType != PicGraphics.LT.LT_CONSTRUCTION) { _box.Extend(drawable.ComputeBox(Transform2D.Identity)); } } } return(true); }
public override Box2D ComputeBox(Transform2D transform) { Box2D box = Box2D.Initial; foreach (PicEntity entity in _block) { PicDrawable drawable = entity as PicDrawable; if (null != drawable) { PicTypedDrawable typeDrawable = drawable as PicTypedDrawable; if (null == typeDrawable || typeDrawable.LineType != PicGraphics.LT.LT_CONSTRUCTION) { box.Extend(drawable.ComputeBox(transform * BlockTransformation)); } } } return(box); }