The Tablet PC SDK, C - PowerPoint PPT Presentation

1 / 22
About This Presentation
Title:

The Tablet PC SDK, C

Description:

Tablet PC SDK installed on them, also available via free download from MS ... Tablet PC Development Center. http://msdn.microsoft.com/mobility/tabletpc/default.aspx ... – PowerPoint PPT presentation

Number of Views:44
Avg rating:3.0/5.0
Slides: 23
Provided by: jeffp8
Category:
Tags: sdk | tablet

less

Transcript and Presenter's Notes

Title: The Tablet PC SDK, C


1
Developing for Tablet PCs
  • The Tablet PC SDK, C, and .NET

2
Agenda
  • HW 1
  • The Tablet PC SDK
  • Visual Studio .NET 2003
  • Some C

3
HW 1 Getting Acquainted
  • Goal create a simple interface that allows users
    to write, erase, and select hand-written notes.
  • INDIVIDUAL assignment
  • Due date February 7 (2 weeks)

4
HW 1 Details
  • Your application must provide
  • A menubar with the following menus
  • File Exit (exits the application)
  • Edit Undo, Redo, Cut, Copy, Paste, Delete (don't
    have to work)
  • A toolbar with the following icons
  • Pen (inking mode)
  • Eraser (erasing mode)
  • Lasso (selection mode)

5
HW 1 More Details
  • You must also provide
  • A note-taking area with a scrollbar and a button
    for adding more space
  • For this assignment you may rely on an InkOverlay
    instance to handle both collecting and displaying
    the ink.

6
Future HWs
  • HW 2 Custom Input and Output
  • HW 3 Storage and Retrieval
  • HW 4 Simple Gesture Recognition
  • HW 5 Tagging
  • HW 6 Accessing Notes
  • HWs 2-6 are GROUP assignments

7
HW 1 Questions?
8
The Tablet PC SDK
  • High-level Objects
  • Tablet 2D input device
  • Can include mice, touchpads
  • Tablets collection of Tablet objects
  • Cursor conceptual tip of pen, focus of
    interaction
  • NOT visual representation of pen tip
  • Cursors collection of Cursor objects
  • e.g. pen nib and eraser ends

9
The Tablet PC SDK
  • Three main categories of ink support
  • Capture
  • Tablet Input API
  • Manipulation
  • Ink Data Management API
  • Recognition
  • Ink Recognition API

10
Tablet Input API
  • InkCollector fundamental object used to collect
    and render ink
  • Generates ink-related events
  • Can register for events of interest
  • Packages Cursor movements into strokes
  • Can paint ink strokes as collected
  • InkOverlay superset of InkCollector that adds
    selecting and erasing of ink

11
More on InkOverlay
  • Uses Windows Forms component OR own transparent
    window as ink canvas
  • EditingMode property Ink, Select (move,resize),
    Delete (stroke, point)
  • CollectionMode property InkOnly, InkAndGesture,
    GestureOnly

12
Ink Events
  • Pen movement
  • CursorInRange, NewInAirPackets, CursorOutOfRange
  • CursorDown, NewPackets, SystemGesture, CursorUp
  • CursorButtonDown/Up
  • Rendering Painting, Painted
  • NOTE cannot rely on absolute ordering of ink and
    mouse events

13
Ink Packet Properties
  • By default get X and Y
  • NOTE HIMETRIC units, not pixels!
  • Can also request pressure, roll, pitch, rotation,
    etc. (but may not provide)
  • Packets passed via shared memory, so more data
    adds latency

14
Ink Data Management API
  • Ink
  • contains ink strokes for Collector or Overlay
  • can add / remove strokes
  • hit testing
  • save and load from binary stream, clipboard
  • can generate Strokes collection

15
Ink Data Management API
  • Strokes
  • collection of references to strokes
  • Stroke
  • provides access to single ink stroke
  • detailed point-level data about stroke
  • DrawingAttributes
  • color, transparency, width, anti-aliased, etc.

16
Ink Recognition API
  • Recognizer
  • particular recognition engine
  • RecognizerContext
  • means of interacting with engine
  • RecognitionResult
  • results from performing recognition

17
Visual Studio .NET 2003
  • Available on CoC Windows Clusters machines
  • Tablet PC SDK installed on them, also available
    via free download from MS

18
Visual Studio .NET 2003
  • Brief Demo

19
Other Languages / Platforms
  • What about VS .NET 2005, Java, ?
  • Yes, BUT you void your warranty. If it does run
    and I cant read the code, you get a 0.

20
Resources
  • Tablet PC Development Center
  • http//msdn.microsoft.com/mobility/tabletpc/defaul
    t.aspx
  • Books in my lab space
  • Building for Tablets, .NET, C
  • MSDN Libraries
  • Web tutorials (links on HW 1 page)
  • Ask questions on course swiki

21
Questions?
22
Next Time
  • Interaction Models
  • Formal
  • Informal
Write a Comment
User Comments (0)
About PowerShow.com