Ejemplo n.º 1
0
 public ShapeHandDataFactory(HandDataSourceSettings settings)
 {
     this.settings            = settings;
     this.fingerPointDetector = new FingerPointDetector(settings);
     this.fingerBaseDetector  = new FingerBaseDetector(settings);
     this.palmFinder          = new PalmFinder(settings);
     this.currentValue        = new HandCollection();
 }
Ejemplo n.º 2
0
 public ShapeHandDataFactory(HandDataSourceSettings settings)
 {
     this.settings = settings;
     this.fingerPointDetector = new FingerPointDetector(settings);
     this.fingerBaseDetector = new FingerBaseDetector(settings);
     this.palmFinder = new PalmFinder(settings);
     this.currentValue = new HandCollection();
 }
Ejemplo n.º 3
0
 public HandCollection Create(ShapeCollection shapes)
 {
     if (shapes.Count == 0) {
         this.currentValue = Clear();
     } else {
         this.currentValue = CreateHandCollection(shapes);
     }
     return this.currentValue;
 }
Ejemplo n.º 4
0
 public HandCollection Create(ShapeCollection shapes)
 {
     if (shapes.Count == 0)
     {
         this.currentValue = Clear();
     }
     else
     {
         this.currentValue = CreateHandCollection(shapes);
     }
     return(this.currentValue);
 }
Ejemplo n.º 5
0
 private void dataSource_NewDataAvailable(HandCollection hands)
 {
     this.Dispatcher.Invoke(new Action(() => InvalidateVisual()));
 }
Ejemplo n.º 6
0
 private void HandDataSource_NewDataAvailable(HandCollection data)
 {
     // todo udp
 }