Example #1
0
 /// <summary>
 /// Sets up the scene
 /// </summary>
 /// <param name="viewer">The examiner viewer to display everything in</param>
 /// <returns>a reference to the new Texture Conroller</returns>
 public TextureController setup(ExaminerViewer viewer)
 {
     _viewer = viewer;
     _root   = new Separator();
     run();
     _viewer.setSceneGraph(_root);
     if (checkBoxEnableStepping.Checked)
     {
         _controller = new TextureController(_root, _bones, _transformParser);
     }
     else
     {
         _controller = new TextureController(_root, null, null);
     }
     return(_controller);
 }
Example #2
0
        /// <summary>
        /// Sets up the scene
        /// </summary>
        /// <param name="viewer">The examiner viewer to display everything in</param>
        /// <returns>a reference to the new Texture Conroller</returns>
        public TextureController setup(ExaminerViewer viewer)
        {
            _viewer = viewer;
            _root   = new Separator();
            CT mri = run();

            _viewer.setSceneGraph(_root);

            if (checkBoxEnableStepping.Checked)
            {
                _controller = new TextureController(_root, _bones, _transformParser, loadVolumeRender.Checked);
                if (loadVolumeRender.Checked)
                {
                    //if the check box is unchecked it won't bother loading mri stuff
                    _controller.setMRI(mri, (_side == WristFilesystem.Sides.LEFT));
                }
            }
            else
            {
                _controller = new TextureController(_root, null, null, loadVolumeRender.Checked);
            }
            return(_controller);
        }