コード例 #1
0
ファイル: DepthGenerator.cs プロジェクト: penyatree/openni
 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;
 }
コード例 #2
0
ファイル: DepthGenerator.cs プロジェクト: ypupo2002/OpenNI
 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;
     }
 }
コード例 #3
0
ファイル: DepthGenerator.cs プロジェクト: penyatree/openni
 public override void Dispose()
 {
     if(m_userPositionCapability!=null)
         m_userPositionCapability.InternalDispose();
     m_userPositionCapability = null;
     base.Dispose();
 }