Ejemplo n.º 1
0
        private void addDataToGraph()
        {
            if (!graphCreator || graphDataTime.Count == 0)
            {
                return;
            }

            graphCreator.AddToDataSet(new GraphableData(graphDataTime, graphDataSpeed, dataName, dataColor), "Speed");
            graphCreator.AddToDataSet(new GraphableData(graphDataTime, graphDataAcceleration, dataName, dataColor), "Acceleration");
            graphCreator.AddToDataSet(new GraphableData(graphDataTime, graphDataDistance, dataName, dataColor), "Distance");
            graphCreator.AddToDataSet(new GraphableData(graphDataTime, graphDataFRes, dataName, dataColor), "F(res)");
        }
Ejemplo n.º 2
0
 private void graphData()  
 {
     graphCreator.ClearGraphs();
     createEmptyGraphs();
     graphCreator.AddToDataSet(new GraphableData(graphDataTime, graphDataEKin, dataName, dataColor), "Kinetic Energy");
     graphCreator.AddToDataSet(new GraphableData(graphDataTime, graphDataEPot, dataName, dataColor), "Potential Energy");
     graphCreator.AddToDataSet(new GraphableData(graphDataTime, graphDataETot, dataName, dataColor), "Total Energy");
     graphCreator.AddToDataSet(new GraphableData(graphDataTime, graphDataSpeed, dataName, dataColor), "Speed");
     graphCreator.AddToDataSet(new GraphableData(graphDataTime, graphDataHeight, dataName, dataColor), "Height");
     graphCreator.AddToDataSet(new GraphableData(graphDataTime, graphDataAcceleration, dataName, dataColor), "Acceleration");
     graphCreator.CreateGraph();
 }