Exemple #1
0
        public EditRecordedForm(Principal pM)
            : base(pM)
        {
            mySkeleton = new HumanSkeleton();
            path       = Environment.CurrentDirectory + "\\Data\\Animation\\default.ani";

            //Para simular el inicio del dispositivo desde un archivo.
            myMiddle = new SkeletonReaderMiddle();
            myMiddle.addUser(mySkeleton, path);

            ready = false;

            //--Render
            myAvatar = new Avatar(mySkeleton);
            camara   = new Camera(pM.graphics);

            //--Estados
            myStates = DB4ObjectState.loadStates(Environment.CurrentDirectory + "\\Data\\States\\default.sta");

            //--Gestos
            myGestures        = DB4ObjectGesture.loadGestures(Environment.CurrentDirectory + "\\Data\\Gestures\\default.ges");
            myPartialGestures = new List <Pair>();

            //Crear formulario de edición de gestos
            formEditor = new WFEditGestures(this);
            formEditor.Show();

            this.LoadContent();
        }
Exemple #2
0
 public WFAdvanceStatesGeneration(WFEditGestures wFEditGestures, EditRecordedForm myErf)
 {
     this.wFEditGestures         = wFEditGestures;
     this.wFEditGestures.Enabled = false;
     this.myErf = myErf;
     bodyParts  = new List <String>();
     stateTypes = new List <String>();
     myStates   = new List <AbstractState>();
     InitializeComponent();
 }