OpenNI.Context.StartGeneratingAll C# (CSharp) Method

StartGeneratingAll() public method

public StartGeneratingAll ( ) : void
return void
        public void StartGeneratingAll()
        {
            int status = SafeNativeMethods.xnStartGeneratingAll(this.InternalObject);
            WrapperUtils.ThrowOnError(status);
        }

Usage Example

コード例 #1
0
        public MainWindow()
        {
            InitializeComponent();

            try {
                // ContextとImageGeneratorの作成
                ScriptNode node;
                context = Context.CreateFromXmlFile( "../../SamplesConfig.xml", out node );
                context.GlobalMirror = false;
                image = context.FindExistingNode( NodeType.Image ) as ImageGenerator;

                // ユーザーの作成
                user = new UserGenerator( context );

                context.StartGeneratingAll();

                // 画像更新のためのスレッドを作成
                shouldRun = true;
                readerThread = new Thread( new ThreadStart( ReaderThread ) );
                readerThread.Start();
            }
            catch ( Exception ex ) {
                MessageBox.Show( ex.Message );
            }
        }
All Usage Examples Of OpenNI.Context::StartGeneratingAll