25 lines
885 B
C#

#define Graph_And_Chart_PRO
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using UnityEngine.Events;
namespace ChartAndGraph
{
public abstract class BarGenerator : MonoBehaviour, IBarGenerator
{
/// <summary>
/// generates a bar within the specified rect. The rect is in local coordinates
/// </summary>
/// <param name="rect">A rect that specifies the bounds of the bar. the rect is in local coordinates</param>
/// <param name="normalizedSize">a value between 0 to 1 representing the size of the rect relative to the size of the chart</param>
public abstract void Generate(float normalizedSize,float scale);
/// <summary>
/// clears the bar the was generated be the Generate method.
/// </summary>
public abstract void Clear();
}
}