예제 #1
0
    public static MegaFlowFrame LoadFrameNetCDF(string filename)
    {
        MegaFlowFrame flow = null;

        if (File.Exists(filename))
        {
            flow = ScriptableObject.CreateInstance <MegaFlowFrame>();
            flow.Init();
            LoadNetCDF(flow, filename);
        }

        return(flow);
    }
예제 #2
0
    public static MegaFlowFrame LoadFrame(string filename)
    {
        MegaFlowFrame flow = null;

        //Debug.Log("FGA file " + filename);
        if (File.Exists(filename))
        {
            flow = ScriptableObject.CreateInstance <MegaFlowFrame>();
            flow.Init();
            LoadFGA(flow, filename);
        }

        return(flow);
    }
예제 #3
0
    static public void Load(MegaFlowFrame flow, string filename)
    {
        FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read, System.IO.FileShare.Read);

        BinaryReader br = new BinaryReader(fs);

        if (br != null)
        {
            flow.Init();
            Parse(flow, br);
            br.Close();
        }

        fs.Close();
    }
예제 #4
0
	static public void Load(MegaFlowFrame flow, string filename)
	{
		FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read, System.IO.FileShare.Read);

		BinaryReader br = new BinaryReader(fs);

		if ( br != null )
		{
			flow.Init();
			Parse(flow, br);
			br.Close();
		}

		fs.Close();
	}