예제 #1
0
        private void initializeView()
        {
            // create scene thread
            view = new LocalizerView(windowRedrawFreqMax, windowLeft, windowTop, windowWidth, windowHeight, false);
            view.setBackgroundColor(windowBackgroundColor.getRed(), windowBackgroundColor.getGreen(), windowBackgroundColor.getBlue());

            // start the scene thread
            view.start();
        }
예제 #2
0
        private void destroyView()
        {
            // check if a scene thread still exists
            if (view != null)
            {
                // stop the animation thread (stop waits until the thread is finished)
                view.stop();

                // release the thread (For collection)
                view = null;
            }
        }