示例#1
0
 internal AntiFlickerCapability(MapGenerator node)
     : base(node)
 {
     this.frequencyChangedEvent = new StateChangedEvent(node,
         SafeNativeMethods.xnRegisterToPowerLineFrequencyChange,
         SafeNativeMethods.xnUnregisterFromPowerLineFrequencyChange);
 }
 internal AlternativeViewpointCapability(ProductionNode node)
     : base(node)
 {
     this.viewpointChangedEvent = new StateChangedEvent(node,
         SafeNativeMethods.xnRegisterToViewPointChange,
         SafeNativeMethods.xnUnregisterFromViewPointChange);
 }
示例#3
0
 internal AudioGenerator(Context context, IntPtr nodeHandle, bool addRef)
     : base(context, nodeHandle, addRef)
 {
     this.outputModeChanged = new StateChangedEvent(this,
         SafeNativeMethods.xnRegisterToWaveOutputModeChanges,
         SafeNativeMethods.xnUnregisterFromWaveOutputModeChanges);
 }
示例#4
0
 internal FrameSyncCapability(Generator node)
     : base(node)
 {
     this.frameSyncChangedEvent = new StateChangedEvent(node,
         SafeNativeMethods.xnRegisterToFrameSyncChange,
         SafeNativeMethods.xnUnregisterFromFrameSyncChange);
 }
示例#5
0
文件: Player.cs 项目: nemesit/OpenNI
 internal Player(Context context, IntPtr nodeHandle, bool addRef)
     : base(context, nodeHandle, addRef)
 {
     this.endOfFileReachedEvent = new StateChangedEvent(this,
         SafeNativeMethods.xnRegisterToEndOfFileReached,
         SafeNativeMethods.xnUnregisterFromEndOfFileReached);
 }
示例#6
0
 internal DepthGenerator(Context context, IntPtr nodeHandle, bool addRef)
     : base(context, nodeHandle, addRef)
 {
     this.fovChanged = new StateChangedEvent(this,
         SafeNativeMethods.xnRegisterToDepthFieldOfViewChange,
         SafeNativeMethods.xnUnregisterFromDepthFieldOfViewChange);
 }
示例#7
0
 internal CroppingCapability(ProductionNode node)
     : base(node)
 {
     this.croppingChanged = new StateChangedEvent(node,
         SafeNativeMethods.xnRegisterToCroppingChange,
         SafeNativeMethods.xnUnregisterFromCroppingChange);
 }
示例#8
0
 internal ImageGenerator(Context context, IntPtr nodeHandle, bool addRef)
     : base(context, nodeHandle, addRef)
 {
     this.pixelFormatChanged = new StateChangedEvent(this,
         SafeNativeMethods.xnRegisterToPixelFormatChange,
         SafeNativeMethods.xnUnregisterFromPixelFormatChange);
 }
 internal UserPositionCapability(ProductionNode node)
     : base(node)
 {
     this.userPositionChanged = new StateChangedEvent(node,
         SafeNativeMethods.xnRegisterToUserPositionChange,
         SafeNativeMethods.xnUnregisterFromUserPositionChange);
 }
示例#10
0
 internal MirrorCapability(ProductionNode node)
     : base(node)
 {
     this.mirrorChangedEvent = new StateChangedEvent(node,
         SafeNativeMethods.xnRegisterToMirrorChange,
         SafeNativeMethods.xnUnregisterFromMirrorChange);
 }
示例#11
0
        internal SkeletonCapability(ProductionNode node)
            : base(node)
        {
            this.jointConfigurationChangedEvent = new StateChangedEvent(node,
                SafeNativeMethods.xnRegisterToJointConfigurationChange,
                SafeNativeMethods.xnUnregisterFromJointConfigurationChange);

            this.internalCalibrationStart = new SafeNativeMethods.XnCalibrationStart(this.InternalCalibrationStart);
            this.internalCalibrationEnd = new SafeNativeMethods.XnCalibrationEnd(this.InternalCalibrationEnd);
        }
示例#12
0
        internal GestureGenerator(Context context, IntPtr nodeHandle, bool addRef)
            : base(context, nodeHandle, addRef)
        {
            this.gestureChanged = new StateChangedEvent(this,
                SafeNativeMethods.xnRegisterToGestureChange,
                SafeNativeMethods.xnUnregisterFromGestureChange);

            this.internalGestureRecognized = new SafeNativeMethods.XnGestureRecognized(this.InternalGestureRecognized);
            this.internalGestureProgress = new SafeNativeMethods.XnGestureProgress(this.InternalGestureProgress);
        }
示例#13
0
 internal DepthGenerator(Context context, IntPtr nodeHandle, bool addRef)
     : base(context, nodeHandle, addRef)
 {
     this.fovChanged = new StateChangedEvent(this,
         SafeNativeMethods.xnRegisterToDepthFieldOfViewChange,
         SafeNativeMethods.xnUnregisterFromDepthFieldOfViewChange);
     if (IsCapabilitySupported(Capabilities.UserPosition))
         m_userPositionCapability = new UserPositionCapability(this);
     else
         m_userPositionCapability = null;
 }
示例#14
0
        internal Generator(Context context, IntPtr pNode, bool addRef)
            : base(context, pNode, addRef)
        {
            this.generationRunningChanged = new StateChangedEvent(this,
                SafeNativeMethods.xnRegisterToGenerationRunningChange,
                SafeNativeMethods.xnUnregisterFromGenerationRunningChange);

            this.newDataAvailable = new StateChangedEvent(this,
                SafeNativeMethods.xnRegisterToNewDataAvailable,
                SafeNativeMethods.xnUnregisterFromNewDataAvailable);
        }
示例#15
0
        internal Generator(Context context, IntPtr pNode, bool addRef)
            : base(context, pNode, addRef)
        {
            this.generationRunningChanged = new StateChangedEvent(this,
                SafeNativeMethods.xnRegisterToGenerationRunningChange,
                SafeNativeMethods.xnUnregisterFromGenerationRunningChange);

            this.newDataAvailable = new StateChangedEvent(this,
                SafeNativeMethods.xnRegisterToNewDataAvailable,
                SafeNativeMethods.xnUnregisterFromNewDataAvailable);
            if(IsCapabilitySupported(Capabilities.AlternativeViewPoint))
                m_alternativeViewpointCapability = new AlternativeViewpointCapability(this);
            else
                m_alternativeViewpointCapability = null;
            if(IsCapabilitySupported(Capabilities.FrameSync))
                m_frameSyncCapability = new FrameSyncCapability(this);
            else
                m_frameSyncCapability = null;

            if (IsCapabilitySupported(Capabilities.Mirror))
                m_mirrorCapability = new MirrorCapability(this);
            else
                m_mirrorCapability = null;
        }