Inheritance: MapGenerator
コード例 #1
0
 private static IntPtr CreateBasedOn(IRGenerator basedOn, string name)
 {
     IntPtr handle;
     UInt32 status = OpenNIImporter.xnCreateMockNodeBasedOn(basedOn.GetContext().InternalObject,
         basedOn.InternalObject, name, out handle);
     WrapperUtils.CheckStatus(status);
     return handle;
 }
コード例 #2
0
        private static IntPtr CreateBasedOn(IRGenerator basedOn, string name)
        {
            IntPtr handle;
            UInt32 status = OpenNIImporter.xnCreateMockNodeBasedOn(basedOn.GetContext().InternalObject,
                                                                   basedOn.InternalObject, name, out handle);

            WrapperUtils.CheckStatus(status);
            return(handle);
        }
コード例 #3
0
 public MockIRGenerator(IRGenerator basedOn) :
     this(basedOn, null)
 {
 }
コード例 #4
0
 public MockIRGenerator(IRGenerator basedOn, string name) :
     this(CreateBasedOn(basedOn, name), false)
 {
 }
コード例 #5
0
ファイル: Kinect.cs プロジェクト: vegazrelli/GazeTracker2.0
        public override bool Initialize()
        {
            // string dir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);
            var dir = GTPath.GetLocalApplicationDataPath();
            DirectoryInfo dirInfo = new DirectoryInfo(new Uri(dir).LocalPath);
            this.context = new Context(dirInfo.FullName + Path.DirectorySeparatorChar + configFile);

            this.ir = context.FindExistingNode(NodeType.IR) as IRGenerator;
            
            if (this.ir != null)
		        return true;
            else
                return false;
        }
コード例 #6
0
 public MockIRGenerator(IRGenerator basedOn)
     : this(basedOn, null)
 {
 }
コード例 #7
0
 public MockIRGenerator(IRGenerator basedOn, string name)
     : this(CreateBasedOn(basedOn, name), false)
 {
 }