The following are my code samples:
The Graphical Classes in which public variables are set by users at runtime. The two classes Geometry and FallingLines
public class Geometry
{
private int width;
private int height;
public int repetation = 6;
public bool IsOffset = true;
public GeometricalShapes shape = GeometricalShapes.Circle;
private List<Rectangle> rectangle;
private int offSetTimes = 3;
public Geometry(int width, int height)
{
this.width = width;
this.height = height;
}
public GraphicsPath[] Draw()
{
}
private int[] GetIncBoxSize(int repetation)
{
}
private GraphicsPath GetPath(int x, int y, int wt, int ht)
{
}
}
public class FallingLines
{
public int width;
public int height;
public bool IsTop = true;
public bool IsBtm = false;
public bool IsOffset = true;
public int repetation = 10;
public LineType lineType = LineType.Irregular;
public FallingLines(int width, int height)
{
this.width = width;
this.height = height;
}
public GraphicsPath[] Draw()
{
}
private Rectangle[] GetRectangle(int randomOffset)
{
}
private GraphicsPath GetPath(int x, int y, int width, int height)
{
}
private Point[] GetPoints(int count)
{
}
private Point[] DrawWave(Point top, Point btm, int cntWave)
{
}
private GraphicsPath DrawIrregularity(Point[] points, int width)
{
}
private Point[] GetRandomPointInLine(Point[] points, int curveCnt)
{
}
private Point[] DrawIrregularWave(Point top, Point btm, int width)
{
}
}
I will be making controls for the user so that they can manipulate.
So, i want something that can interact back and forth.
I want my MyForm to send info to these classes and vice versa. later after a Button Press i want the Draw() to return the graphicsPath[] to my mainForm.
How do i do these...