public void Graphics() { var sg = new GraphicsProxy(); sg.setPaintingEnabled(true); /*sg.DrawArc(Pens.Red, new RectangleF(0,0,80,80),-30,10); GraphicsPath path = new GraphicsPath(); path.AddLine(99,98,78,3); sg.DrawPath(Pens.Blue, path); sg.DrawRectangle(Pens.Yellow, 20,20,30,50); sg.DrawLine(Pens.Black, 99, 3, 78, 3); sg.DrawRectangle(Pens.Black, 90, 20, 30, 50); Brush brush = new HatchBrush(HatchStyle.Vertical, Color.Cyan); sg.FillRectangle(brush, new RectangleF(20, 70, 30, 50)); sg.FillEllipse(brush, new RectangleF(70, 70, 30, 50 )); */ sg.DrawEllipse(Pens.Red, (50), (50), 100, 100); sg.FillEllipse(new SolidBrush(Color.FromArgb(0, 0xFF, 0, 30)), (100 - 60), (100 - 60), 120, 120); byte[] readoutQueuedCalls = sg.readoutQueuedCalls(); Assert.Greater(readoutQueuedCalls.Length, 0); }
public override void cleanup() { base.cleanup(); // Cleanup and remove current wait condition waitCondition = null; // Cleanup and remove the event manager if (eventManager != null) { eventManager.Cleanup(); eventManager = null; } graphicsProxy = null; execResults = null; status = null; commands = null; }
public BasicRobotProxy(IRobotItem specification, IHostManager hostManager, IRobotPeer peer, RobotStatics statics) : base(specification, hostManager, peer, statics) { eventManager = new EventManager(this); graphicsProxy = new GraphicsProxy(); // dummy execResults = new ExecResults(null, null, null, null, null, false, false, false); setSetCallCount(0); setGetCallCount(0); var sharedBuffer = new byte[10*1024*100]; execJavaBuffer = new DirectByteBuffer(sharedBuffer); execNetBuffer = ByteBuffer.wrap(sharedBuffer); rbSerializerN = new RbSerializerN(); this.peer.setupBuffer(execJavaBuffer); }
public BasicRobotProxy(IRobotItem specification, IHostManager hostManager, IRobotPeer peer, RobotStatics statics) : base(specification, hostManager, peer, statics) { eventManager = new EventManager(this); graphicsProxy = new GraphicsProxy(); // dummy execResults = new ExecResults(null, null, null, null, null, false, false, false); setSetCallCount(0); setGetCallCount(0); var sharedBuffer = new byte[10 * 1024 * 100]; execJavaBuffer = new DirectByteBuffer(sharedBuffer); execNetBuffer = ByteBuffer.wrap(sharedBuffer); rbSerializerN = new RbSerializerN(); this.peer.setupBuffer(execJavaBuffer); }
public override void cleanup() { base.cleanup(); // Cleanup and remove current wait condition waitCondition = null; // Cleanup and remove the event manager if (eventManager != null) { eventManager.cleanup(); eventManager = null; } graphicsProxy = null; execResults = null; status = null; commands = null; }