コード例 #1
0
ファイル: UserGenerator.cs プロジェクト: huangxm/OpenNI
 public UserGenerator(Context context, IntPtr nodeHandle, bool addRef)
     : base(context, nodeHandle, addRef)
 {
     this.internalNewUser = new SafeNativeMethods.XnUserHandler(this.InternalNewUser);
     this.internalLostUser = new SafeNativeMethods.XnUserHandler(this.InternalLostUser);
     this.internalUserExit = new SafeNativeMethods.XnUserHandler(this.InternalUserExit);
     this.internalUserReEnter = new SafeNativeMethods.XnUserHandler(this.InternalUserReEnter);
 }
コード例 #2
0
ファイル: UserGenerator.cs プロジェクト: penyatree/openni
 public UserGenerator(Context context, IntPtr nodeHandle, bool addRef)
     : base(context, nodeHandle, addRef)
 {
     this.internalNewUser = new SafeNativeMethods.XnUserHandler(this.InternalNewUser);
     this.internalLostUser = new SafeNativeMethods.XnUserHandler(this.InternalLostUser);
     this.internalUserExit = new SafeNativeMethods.XnUserHandler(this.InternalUserExit);
     this.internalUserReEnter = new SafeNativeMethods.XnUserHandler(this.InternalUserReEnter);
     if (IsCapabilitySupported(Capabilities.Skeleton))
         m_skeletonCapability = new SkeletonCapability(this);
     else m_skeletonCapability = null;
     if (IsCapabilitySupported(Capabilities.PoseDetection))
         m_poseDetectionCapability = new PoseDetectionCapability(this);
     else m_poseDetectionCapability = null;
 }