Presentation is loading. Please wait.

Presentation is loading. Please wait.

TeleDraw by Conor Buckley. What is teleDraw? Collaborative Drawing tool – A drawing surface shared across multiple iPhones Draw – Curves – Lines – Circles.

Similar presentations


Presentation on theme: "TeleDraw by Conor Buckley. What is teleDraw? Collaborative Drawing tool – A drawing surface shared across multiple iPhones Draw – Curves – Lines – Circles."— Presentation transcript:

1 teleDraw by Conor Buckley

2 What is teleDraw? Collaborative Drawing tool – A drawing surface shared across multiple iPhones Draw – Curves – Lines – Circles Adjust: Color, Width Control: Undo, Clear

3 Midterm Project Protocol: Draw line C:X1:Y1:X2:Y2 C = Char associated to UIColor X1, Y1: Touches Begin Location X2, Y2: Touches End Location

4 Problems Required dependency on static UDP Chat Server Drawing interaction’s was poor/not smooth Line accuracy wasn’t great

5 Game Kit Framework Solution to my problem! – Peer-to-peer connectivity allows your application to create an ad-hoc Bluetooth network between multiple iPhones. Although designed with games in mind, this network is useful for any type of data exchange among users of your application. For example, an application could use peer-to-peer connectivity to share electronic business cards or other data. – uide/Introduction/Introduction.html uide/Introduction/Introduction.html – Removes the requirement of a server

6 Redesign

7 Data Design NSMutableArray – Collection of objects Class: MarkAbstract – toolIndex – myWidth – myColor

8 Data Design Extend MarkAbstract: – LineData CGPoints: start, end – CircleData CGPoint: centerP int radius

9 Algorithm Collection of ‘MarkAbstract’s act as Polymorphic stack Preserve layers

10 Creating Mark Data Touch Events: touchesBegin touchesMoved touchesEnd – Based on member "toolIndex", create appropriate datatype

11 teleDraw Protocol Structure: T:C:* T – Tool - toolIndex C – Color - index associated toUIColor LineData – Point2Point: 1:C:X1:Y1:X1:Y2 – Curve: 1:C:X1:Y1:X1:Y2 CircleData – 3:C:X1:Y2:R – Designed for more data types

12 Questions? Thank You


Download ppt "TeleDraw by Conor Buckley. What is teleDraw? Collaborative Drawing tool – A drawing surface shared across multiple iPhones Draw – Curves – Lines – Circles."

Similar presentations


Ads by Google