Beispiel #1
0
        public ScanLoader(PointCloud gcloud)
        {
            InitializeComponent();

            System.Diagnostics.Debug.WriteLine("* * GLCLOUD SCANLOADER CALLED");

            //wantKinect = false; // nathan changed this

            //hide buttons from form
            gv = new GroupVisualiser(gcloud);

            this.Loaded += new RoutedEventHandler(ScanLoader_Loaded);

            //Threading of data context population to speed up model generation.
            System.Diagnostics.Debug.WriteLine("Loading model");
            this.Dispatcher.Invoke((Action)(() =>
            {
                gv.preprocess(null);
            }));

            //Assigned threaded object result to the data context.
            this.DataContext          = gv;
            gCloud                    = gcloud;
            this.hvpcanvas.MouseDown += new MouseButtonEventHandler(hvpcanvas_MouseDown);
            System.Diagnostics.Debug.WriteLine("Model loaded");

            hitState = 0;
        }
Beispiel #2
0
        public ScanLoader(PointCloud gcloud)
        {
            InitializeComponent();

            System.Diagnostics.Debug.WriteLine("* * GLCLOUD SCANLOADER CALLED");

            //wantKinect = false; // nathan changed this

            //hide buttons from form
            gv = new GroupVisualiser(gcloud);

            this.Loaded += new RoutedEventHandler(ScanLoader_Loaded);

            //Threading of data context population to speed up model generation.
            System.Diagnostics.Debug.WriteLine("Loading model");
            this.Dispatcher.Invoke((Action)(() =>
            {
                gv.preprocess(null);
            }));

            //Assigned threaded object result to the data context.
            this.DataContext = gv;
            gCloud = gcloud;
            this.hvpcanvas.MouseDown += new MouseButtonEventHandler(hvpcanvas_MouseDown);
            System.Diagnostics.Debug.WriteLine("Model loaded");

            hitState = 0;
        }