コード例 #1
0
 public void AddPair(float dataPoint, Color color)
 {
     DataPairs.Add(new GPUDataPair(dataPoint, color));
     TRS = new Matrix4x4Wrapper();
     Shrink();
     UpdateStats(dataPoint);
 }
コード例 #2
0
        public void AddPair(float dataPoint, Color color, Matrix4x4Wrapper trs)
        {
            AddPair(dataPoint, color);
            IsWorldSpace = true;
            TRS          = trs;
            Rectangle    = new Vector4(0, 0, 1, 1);

            UpdateUI();
        }
コード例 #3
0
        public void AddPair(float dataPoint, Color color, Rect rectangle)
        {
            // each graph is located in a specify position
            Rectangle = new Vector4(rectangle.x / Screen.width, rectangle.y / Screen.height, rectangle.width / Screen.width, rectangle.height / Screen.height);

            DataPairs.Add(new GPUDataPair(dataPoint, color));
            TRS = new Matrix4x4Wrapper();

            Shrink();
            UpdateStats(dataPoint);
            UpdateUI();
        }
コード例 #4
0
 // world space plot
 public void Plot(string key, float value, Color color, Matrix4x4Wrapper trs)
 {
     Retrieve(key, value).AddPair(value, color, trs);
 }
コード例 #5
0
 // world space
 public void Plot(string key, float value, Matrix4x4Wrapper trs)
 {
     Retrieve(key).AddPair(value, trs);
 }