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); }
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; }