public void RunVisitor(IShapeeVisitor theVisitor) { foreach (IShape theShape in _ShapeesList) { theShape.RunVisitor(theVisitor); } }
public override void RunVisitor(IShapeeVisitor theVisitor) { theVisitor.VisitCube(this); }
public override void RunVisitor(IShapeeVisitor theVisitor) { theVisitor.VisitCylinder(this); }
public abstract int GetVectorCount(); // 获取定点数 public abstract void RunVisitor(IShapeeVisitor theVisitor);