示例#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();
 }
示例#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();
 }
示例#3
0
 public HandCollection Create(ShapeCollection shapes)
 {
     if (shapes.Count == 0) {
         this.currentValue = Clear();
     } else {
         this.currentValue = CreateHandCollection(shapes);
     }
     return this.currentValue;
 }
示例#4
0
 public HandCollection Create(ShapeCollection shapes)
 {
     if (shapes.Count == 0)
     {
         this.currentValue = Clear();
     }
     else
     {
         this.currentValue = CreateHandCollection(shapes);
     }
     return(this.currentValue);
 }
示例#5
0
 private void dataSource_NewDataAvailable(HandCollection hands)
 {
     this.Dispatcher.Invoke(new Action(() => InvalidateVisual()));
 }
示例#6
0
 private void HandDataSource_NewDataAvailable(HandCollection data)
 {
     // todo udp
 }