Beispiel #1
0
        private void Initialize()
        {
            // entities
            m_arm    = new Arm();
            m_finger = new Finger();

            // processing & tracking
            m_processor = new TouchProcessor(m_arm, m_finger);
            m_optiTrack = new OptiTrack();

            // models
            m_models = new Dictionary <ModelType, LinearModel>();

            LinearModel horizontalModel = new LinearModel(Constants.Models.HorizontalRows,
                                                          Constants.Models.HorizontalColumns, ModelDirection.Landscape);

            horizontalModel.Load(Constants.Models.HorizontalModelFileName);
            m_models.Add(ModelType.Horizontal, horizontalModel);

            LinearModel verticalModel = new LinearModel(Constants.Models.VerticalRows,
                                                        Constants.Models.VerticalColumns, ModelDirection.Portrait);

            verticalModel.Load(Constants.Models.VerticalModelFileName);
            m_models.Add(ModelType.Vertical, verticalModel);

            LinearModel tracingModel = new LinearModel(Constants.Models.TracingRows,
                                                       Constants.Models.TracingColumns, ModelDirection.Landscape);

            tracingModel.Load(Constants.Models.TracingModelFileName);
            m_models.Add(ModelType.Tracing, tracingModel);

            m_arm.AddModel(horizontalModel, ModelType.Horizontal, Constants.Colors.HorizontalGridModelColor);
            m_arm.AddModel(verticalModel, ModelType.Vertical, Constants.Colors.VerticalGridModelColor);
            m_arm.AddModel(tracingModel, ModelType.Tracing, Constants.Colors.TracingGridModelColor);
        }