starPad - starPad Lecture #4.5: starPad SDK

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Fall 2009 CAP 6105 – Pen-Based User Interfaces ©Joseph J. LaViola Jr. starPad Lecture #4.5: starPad SDK http://pen.cs.brown.edu/starpad.html Fall 2009 CAP 6105 – Pen-based User Interfaces ©Joseph J. LaViola Jr. Architecture ± Framework to facilitate ink recognition ± Provides classes to mimic and extend functionality in System.Windows.Ink namespace ² InqCanvas ² Stroq ² StroqCollection
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
InqCanvas ± Similar to InkCanvas ² Receives and displays user strokes ² Stores ink in Stroqs ² Provides different stylus level events, e.g. StroqCollected , StylusOutOfRange ² Also provides a SystemStylusGesture event ± Supports gestures such as Tap, Flick ± Note : Some gestures require Windows Vista to work properly Fall 2009 CAP 6105 – Pen-based User Interfaces ©Joseph J. LaViola Jr. InqCanvas Example ± Add an InqCanvas in XAML ± Capture the StroqCollected event ± Capture the StylusInRange event ± Capture the SystemStylusGesture event Fall 2009 CAP 6105 – Pen-based User Interfaces ©Joseph J. LaViola Jr. <StarPadSDK_Inq:InqCanvas x:Name="inqCanvas" StroqCollected="inqCanvas_StroqCollected" StylusInRange="inqCanvas_StylusInRange" StylusSystemGesture="inqCanvas_StylusSystemGesture" Background="#00000000"/>
Background image of page 2
Recognition ± Provided by MathRecognition class ² Online recognition of letters, numbers, symbols ² Not too good at recognizing complex shapes ² User can provide a callback function ² Recognition results are also available from the MathRecognition object at all times ± Pass a StroqCollection to MathRecognition ² MathRecognition knows when a stroke is added or removed from StroqCollection Fall 2009 CAP 6105 – Pen-based User Interfaces ©Joseph J. LaViola Jr. Recognition Example ± Setting up the recognizer ± Adding strokes to the collection Fall 2009 CAP 6105 – Pen-based User Interfaces ©Joseph J. LaViola Jr. StroqCollection _mathStroqs = new StroqCollection(); MathRecognition _mrec = new MathRecognition(_mathStroqs); _mrec.EnsureLoaded(); _mrec.ParseUpdated += _mrec_ParseUpdated; void inqCanvas_StroqCollected(object sender, InqCanvas.StroqCollectedEventArgs e) { _mathStroqs.Add(e.Stroq); }
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Recognition Example – Cont. ± Callback function is called whenever new
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/12/2011 for the course CAP 6105 taught by Professor Lavoila during the Spring '09 term at University of Central Florida.

Page1 / 12

starPad - starPad Lecture #4.5: starPad SDK

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online