Exemplo n.º 1
0
 // 共用的訪問者界面
 public void RunVisitor(IShapeVisitor theVisitor)
 {
     foreach (IShape theShape in m_Shapes)
     {
         theShape.RunVisitor(theVisitor);
     }
 }
Exemplo n.º 2
0
 public override void RunVisitor(IShapeVisitor theVisitor)
 {
     theVisitor.VisitCube(this);
 }
Exemplo n.º 3
0
 public override void RunVisitor(IShapeVisitor theVisitor)
 {
     theVisitor.VisitCylinder(this);
 }
Exemplo n.º 4
0
 public abstract int             GetVectorCount(); // 取得頂點數
 public abstract void    RunVisitor(IShapeVisitor theVisitor);
Exemplo n.º 5
0
		// 共用的訪問者界面
		public void RunVisitor(IShapeVisitor theVisitor)
		{
			foreach(IShape theShape in m_Shapes)
				theShape.RunVisitor( theVisitor );
		}
Exemplo n.º 6
0
		public override void RunVisitor(IShapeVisitor theVisitor)
		{
			theVisitor.VisitCylinder(this);
		}
Exemplo n.º 7
0
		public override void RunVisitor(IShapeVisitor theVisitor)
		{
			theVisitor.VisitCube(this);
		}
Exemplo n.º 8
0
		public abstract int		GetVectorCount(); // 取得頂點數
		public abstract void 	RunVisitor(IShapeVisitor theVisitor);