Ejemplo n.º 1
0
    public void NewSessionBUTTON()
    {
        TopPostPlotPanel.SetActive(false);
        BottomPostPlotPanel.SetActive(false);
        TopPlotPanel.SetActive(true);
        BottomPlotPanel.SetActive(true);
        StartButton.SetActive(true);
        StopButton.SetActive(true);
        SaveDataButton.SetActive(true);
        NewSessionButton.SetActive(false);
        UsersList.patientsessioninfo.SessionDate    = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        SessionDateLabel.GetComponent <Text>().text = UsersList.patientsessioninfo.SessionDate;
        PlayPostButton.SetActive(false);
        PausePostButton.SetActive(false);
        StopPostButton.SetActive(false);
        CheckNodesButton.SetActive(true);

        Destroy(graphGOpost);
        Destroy(graphGOBottompost);
        graphGO       = Instantiate(graphPrefab) as GameObject;
        graphGOBottom = Instantiate(graphPrefabBottom) as GameObject;
        graph         = graphGO.GetComponent <WMG_Axis_Graph>();
        graphBottom   = graphGOBottom.GetComponent <WMG_Axis_Graph>();
        graph.changeSpriteParent(graphGO, TopPlotPanel);
        graphBottom.changeSpriteParent(graphGOBottom, BottomPlotPanel);
        post_plotting = false;
    }
Ejemplo n.º 2
0
    void Start()
    {
        TopPlotPanel     = GameObject.Find("TopPlotPanel");
        BottomPlotPanel  = GameObject.Find("BottomPlotPanel");
        TopPostPlotPanel = GameObject.Find("TopPostPlotPanel");
        TopPostPlotPanel.SetActive(false);
        BottomPostPlotPanel = GameObject.Find("BottomPostPlotPanel");
        BottomPostPlotPanel.SetActive(false);
        StartButton      = GameObject.Find("StartButton");
        StopButton       = GameObject.Find("StopButton");
        SaveDataButton   = GameObject.Find("SaveButton");
        NewSessionButton = GameObject.Find("NewSessionButton");
        SessionDateLabel = GameObject.Find("SessionTimeLabel");
        NewSessionButton.SetActive(false);

        PlayPostButton   = GameObject.Find("PlayPostButton");
        PausePostButton  = GameObject.Find("PausePostButton");
        StopPostButton   = GameObject.Find("StopPostButton");
        CheckNodesButton = GameObject.Find("CheckButton");
        PlayPostButton.SetActive(false);
        PausePostButton.SetActive(false);
        StopPostButton.SetActive(false);

        graphGO       = Instantiate(graphPrefab) as GameObject;
        graphGOBottom = Instantiate(graphPrefabBottom) as GameObject;

        graph       = graphGO.GetComponent <WMG_Axis_Graph>();
        graphBottom = graphGOBottom.GetComponent <WMG_Axis_Graph>();

        graph.changeSpriteParent(graphGO, TopPlotPanel);
        graphBottom.changeSpriteParent(graphGOBottom, BottomPlotPanel);

        graph.lineSeries[0].GetComponent <WMG_Series>().hideLines        = true;
        graph.lineSeries[0].GetComponent <WMG_Series>().hidePoints       = true;
        graph.lineSeries[1].GetComponent <WMG_Series>().hideLines        = true;
        graph.lineSeries[1].GetComponent <WMG_Series>().hidePoints       = true;
        graphBottom.lineSeries[0].GetComponent <WMG_Series>().hideLines  = true;
        graphBottom.lineSeries[0].GetComponent <WMG_Series>().hidePoints = true;
        graphBottom.lineSeries[1].GetComponent <WMG_Series>().hideLines  = true;
        graphBottom.lineSeries[1].GetComponent <WMG_Series>().hidePoints = true;

        PopulateLists();
        InitializeDropdowns();

        play_bool      = false;
        post_plotting  = false;
        already_played = false;
        UpdateFrame    = PhysioThread.BodyMoveUpdateFrame;
        current_time   = 0;
        delta_time     = 0;
    }
Ejemplo n.º 3
0
    public void StopPlotting()
    {
        s1.StopRealTimeUpdate();
        s2.StopRealTimeUpdate();

        s3.StopRealTimeUpdate();
        s4.StopRealTimeUpdate();

        StartButton.SetActive(false);
        StopButton.SetActive(false);
        NewSessionButton.SetActive(true);
        TopPlotPanel.SetActive(false);
        BottomPlotPanel.SetActive(false);
        TopPostPlotPanel.SetActive(true);
        BottomPostPlotPanel.SetActive(true);
        PlayPostButton.SetActive(true);
        PausePostButton.SetActive(false);
        StopPostButton.SetActive(true);
        CheckNodesButton.SetActive(false);
        PostPlotResults();
        post_plotting = true;
        frame         = 0;
    }