Example #1
0
        public static Types GetTypeOfControllerForFile(string[] filenames)
        {
            //Check if this is a full wrist and if we should load as such
            if (WristFilesystem.isRadius(filenames))
            {
                string msg = "It looks like you are trying to open a radius.\n\nDo you wish to load the entire wrist?";
                if (DialogResult.Yes == MessageBox.Show(msg, Application.ProductName, MessageBoxButtons.YesNo, MessageBoxIcon.Question))
                {
                    return(Types.FullWrist);
                }
            }

            if (XrommFilesystem.IsXrommFile(filenames)) //then we are in XROMM mode
            {
                string msg = "It looks like you are trying to open an XROMM model.\n\nDo you wish to load the entire model?";
                if (DialogResult.Yes == MessageBox.Show(msg, Application.ProductName, MessageBoxButtons.YesNo, MessageBoxIcon.Question))
                {
                    return(Types.Xromm);
                }
            }

            if (PosViewController.IsPosViewFile(filenames))
            {
                return(Types.PosView);
            }

            return(Types.Sceneviewer);
        }
Example #2
0
        public XrommController(ExaminerViewer viewer, string filename)
        {
            _xrommFileSys = new XrommFilesystem(filename);
            _fullXromm    = new FullXromm(_xrommFileSys);
            _fullXromm.LoadFullJoint();
            _viewer = viewer;

            _fixedBoneIndex    = 0;
            _currentTrialIndex = 0;

            SetupXrommControl();
            ResetAnimationControl();
            setupControlEventListeners();
        }