private void DrawDataOnGraph(LineGrapher.GraphConfig _graphConfig)
        {
            _graphConfig.dataBuffer.UpdateBufferLength(_graphConfig.bufferLength);
            List <float> _data  = _graphConfig.dataBuffer.GetDataBuffer();
            Color        _color = _graphConfig.color;

            if (_data.Count != 0)
            {
                GL.Begin(GL.LINE_STRIP);
                GL.Color(_color);

                int max_iter = _data.Count > windowRectangle.width ? (int)windowRectangle.width : _data.Count;

                for (int i = 0; i < max_iter; i++)
                {
                    GL.Vertex3(windowRectangle.width - i, MapValueToRectangleWindow(_data[_data.Count - 1 - i], _graphConfig.VerticalAxisYmax, _graphConfig.VerticalAxisYmin), 0);
                }

                GL.End();
            }
        }
 public void GetValue(LineGrapher.GraphConfig config)
 {
     config.dataBuffer.AddToBuffer(ReadValue());
 }