示例#1
0
        public void RenderScene(Graphics gdi, World world, int w, int h)
        {
            //RenderTimings(gdi, world, w, h);
            //return;
            int i, j;
            int x, y;

            selectedCell = null;
            if (world.pointx != -1)
            {
                //selectedCell = PointToCell(world.pointx, world.pointy);
            }

            DrawAxes(gdi, Pens.Black, w, h);

            double tmax = 0;

            y = 0;
            for (x = 0; x < world.xnum; x++)
            {
                RenderParent(gdi, x, tmax);
            }

            RenderTimings(gdi, world, w, h);


            //DrawCellInfo(gdi, world);
        }
示例#2
0
        public void RenderScene(Graphics gdi, World world, int w, int h)
        {
            //RenderTimings(gdi, world, w, h);
            //return;
            int i, j;
            int x, y;

            selectedCell = null;
            if (world.pointx != -1)
            {
                //selectedCell = PointToCell(world.pointx, world.pointy);
            }

            DrawAxes(gdi, Pens.Black, w, h);

            double tmax = 0;

            y = 0;
            for (x = 0; x < world.xnum; x++)
            {
                for (y = 0; y < world.xnum; y++)
                {
                    RenderParent(gdi, x, y, tmax);
                }
            }

/*
 *      for (x = 0; x < world.xnum; x++)
 *      {
 *          Element elem = fluid.elements[x];
 *          if (drawinfo)
 *              PrintElementInfo(gdi, elem);
 *      }
 */

            RenderTimings(gdi, world, w, h);


            //DrawCellInfo(gdi, world);
        }
示例#3
0
    public void RenderScene(Graphics gdi, World world, int w, int h)
    {
        //RenderTimings(gdi, world, w, h);
        //return;
        int i, j;
        int x, y;
        selectedCell = null;
        if (world.pointx != -1)
        {
            //selectedCell = PointToCell(world.pointx, world.pointy);
        }

        DrawAxes(gdi, Pens.Black, w, h);

        double tmax = 0;
        y = 0;
//        for (y = 0; y < world.ynum; y++)
            for (x = 0; x < world.xnum; x++)
            {
                RenderParent(gdi, x, y, 1, tmax);
            }

        RenderTimings(gdi, world, w, h);


        //DrawCellInfo(gdi, world);

    }
示例#4
0
    public void RenderScene(Graphics gdi, World world, int w, int h)
    {
        //RenderTimings(gdi, world, w, h);
        //return;
        int i, j;
        int x, y;
        selectedCell = null;
        if (world.pointx != -1)
        {
            //selectedCell = PointToCell(world.pointx, world.pointy);
        }

//        DrawAxes(gdi, Pens.Black, w, h);

        double tmax = 0;
        y = 0;
        for (x = 0; x < world.xnum; x++)
        {
            RenderParent(gdi, x, tmax);
        }

        for (x = 0; x < world.xnum; x++)
        {
            Element elem = fluid.elements[x];
            if (drawinfo)
                PrintElementInfo(gdi, elem);
        }


        RenderTimings(gdi, world, w, h);


        //DrawCellInfo(gdi, world);

    }