namespace nmc.micaps3
命名空间下的GlobalRes类中的commandParameter字符串中,下面大致看一下GlobalRes类的定义,从字面上猜,这个类是
是管理全局设置的类,以后还要用到.
public static class GlobalRes
{
// Fields
private static int a;
public static ArrayList AllMutualButtons;
public static int animateDataInterval;
public static int animateInterval;
public static int animateMethod;
public static bool AssociationMove;
public static bool autoClearDataBeforeOpenZht;
public static bool autoSaveImg;
public static Font baseFont1;
public static Color baseFont1Color;
public static Font baseFont2;
public static Color baseFont2Color;
public static bool bGraphicHaveModify;
public static bool bIsAutoCountTitleXY;
public static bool bIsDrawLegend;
public static bool bIsFistLineView;
public static bool bIsShowBorderLine;
public static bool bIsShowLegGridLine;
public static bool bIsShowLegUnit;
public static bool bListExist1;
public static bool bListExist2;
public static bool bSelConOk;
public static float[] centerLat1;
public static float[] centerLon1;
public static bool changeBaseFont;
public static string combineBaseDir;
public static string combineFilePath;
public static string[] commandParameter;
public static DateTime[] curDisplayTime;
public static DateTime[] curMaxTime;
public static DateTime[] curMinTime;
public static int currentActiveWindow;
public static MicapsDevice CurrentDevice;
public static string currentDutyName;
public static int currentDutyNumber;
public static string currentFcster;
public static C_Graphics currentGraphics;
public static float currentHeight;
public static int currentKeyDown;
public static float currentLat;
public static string currentLayerRegisterName;
public static float currentLon;
public static string currentToolBarRegisterModualName;
public static string currentToolButtonRegisterModualName;
public static string currentToolButtonSubID;
public static MicapsVersion CurrentVersion;
public static string currentWfoname;
public static DateTime[] curSysTime;
public static Dictionary<string, string> DeployModual;
public static Dictionary<int, string> DeploySymbols;
public static Font desFont;
public static bool displayLonLat;
public static bool EnableBlend;
public static bool fastPrint;
public static bool fullScreen;
public static StaInfo[] globalStaInfo;
public static bool[] haveAWX;
public static bool haveReadRegionData;
public static string homeRadar;
public static string homeStationID;
public static string homeStationName;
public static float[] homeZoomBl;
public static string hostName;
public static Font hostNameFont;
public static string hypoName;
public static string hypoName2;
public static Font hypoNameFont;
public static Font hypoNameFont2;
public static bool IndividualViewCard;
public static string iniObjFilename;
public static int[] initMapVFlag;
public static bool isFourPanel;
public static int[] isize1;
public static int[] jsize1;
public const int KEY_ALT = 2;
public const int KEY_CTRL = 4;
public const int KEY_F = 5;
public const int KEY_NONE = 0;
public const int KEY_SHIFT = 1;
public const int KEY_V = 6;
public static ArrayList LegendList;
public static float legendSubTitle2PostionX;
public static float legendSubTitle2PostionY;
public static float legendSubTitlePostionX;
public static float legendSubTitlePostionY;
public static int legendSX;
public static int legendSY;
public static float legendTitlePostionX;
public static float legendTitlePostionY;
public static string legendUnit;
public static bool[] lockMapBorder;
public static int logLevel;
public static float[] ltlat1;
public static float[] ltlon1;
public static ArrayList maplayersOrigin;
public static int mapScope;
public static int mapSum;
public static StreamWriter micapsLog;
public static string monitorFilelist;
public static bool monitorMode;
public const int MOUSE_DBLCLICK = 4;
public const int MOUSE_HOLDMOVE = 3;
public const int MOUSE_HOLDMOVERELEASE = 2;
public const int MOUSE_LEFT = 0;
public const int MOUSE_MIDDLE = 1;
public const int MOUSE_MOVE = 5;
public const int MOUSE_NONE = 3;
public const int MOUSE_PRESS = 0;
public const int MOUSE_RELEASE = 1;
public const int MOUSE_RIGHT = 2;
public static bool mouseInPanelView;
public static string[] neighborRdar;
public const int NO_DATA = 0x270f;
public const int NO_DATA2 = 0xf423f;
public static bool noMessageBox;
public static Color OceanColor;
public static ArrayList openFileName;
public static ArrayList pathList;
public static PrintDocument pd;
public static int PickConOk;
public const int PickDefaultXsize = 5;
public const int PickDefaultYsize = 5;
public static int[] pingfenStaID;
public static float[] pingfenStaLat;
public static int[] pingfenStaLev;
public static float[] pingfenStaLon;
public static int pingfenStaNum;
public static bool popFormDisplayAlone;
public static bool popFormDisplayScn2;
public static bool printCurrentPage;
public static bool printFileDescription;
public static bool printFrame;
public static Color printFrameColor;
public static string printSubTitle;
public static string printTitle;
public static string[] proj1;
public static bool[] projChanged;
public static ArrayList ps;
public static float[] rblat1;
public static float[] rblon1;
public static string[] result;
public static int returndays;
public static int returnfiles;
public static bool rotateMap;
public static string saveEmfFilename;
public static string saveImagePath;
public static bool savepic_fileDiscreption;
public static bool savePicByMouseSelectArea;
public static bool saveWMF;
public static int screenNum;
public static Screen[] screens;
public static string selfhostName;
public static string selfhypoName;
public static string selfhypoName2;
public static bool selfIsFistLineView;
public static ArrayList selfLegendList;
public static string selfLegendUnit;
public static string smoothLevel;
public static drawSouthChinaSea southChinaSea;
public static bool stopTimerPaintsMap;
public static Font subTitleFont;
public static Font titleFont;
public const int TOOLBOX_CUT = 0x35;
public const int TOOLBOX_PAN = 0x31;
public const int UNDO = 0x3e9;
public static string userMessage4StatusBar;
public static string VidioCardDsc;
public static int viewAreaHeight;
public static int viewAreaWidth;
// Methods
static GlobalRes();
private static void a(PointF A_0, out PointF A_1, PointF A_2, double A_3, float A_4);
private static void a(GLGraphics A_0, PointF[] A_1, int A_2, Color A_3, int A_4, ArrayList A_5);
private static void a(PointF A_0, PointF A_1, PointF[] A_2, double A_3, float A_4, int A_5);
private static bool a(float A_0, float A_1, float A_2, float A_3, float A_4, float A_5, float A_6, float A_7);
public static float bbq_xfzs(float[] iz, int isiz, int jsiz);
public static void CalAreaC(int numpt, PointF[] pts, out float areaval);
[DllImport("micapsBaseA.dll", CallingConvention=CallingConvention.StdCall)]
public static extern int Clip(float[] r, float minx, float miny, float maxx, float maxy, int inLength);
public static void coConveDist(float s, float t, int isGrid, int jsGrid, float[] gridlon, float[] gridlat, out float x, out float y);
public static float Distance(PointF p1, PointF p2);
public static void DrawArrowMp(C_Map map, GLGraphics canvas, float baseX, float baseY, float u, float v, float len, float arrowLen);
public static void DrawArrowMp(C_Map map, float baseX, float baseY, float u, float v, float len, float arrowLen, ArrayList list);
public static void DrawArrowMp(C_Map map, GLGraphics canvas, float baseX, float baseY, float u, float v, float len, float arrowLen, ArrayList list);
public static void DrawLegend(GLGraphics g, C_Map map, ArrayList list, int srcx, int srcy, int width, int height);
public static void drawLineOnMap(Graphics g, C_Map map, PointF[] pfa, Pen redPen);
public static void drawLinesWithClip(Pen pen0, PointF[] KyPoints, Graphics canvas, C_Map map);
public static void DrawWind(GLGraphics canvas, PointF baseXY, float fSpeed, float ang, float factor, Color color, int lineWidth, int type, ArrayList array);
public static void DrawWindMP(C_Map map, GLGraphics canvas, PointF baseXY, float fSpeed, float ang, float factor, int color, int type, ArrayList array);
public static void DrawWindMP(C_Map map, GLGraphics canvas, PointF baseXY, float fSpeed, float ang, float factor, int type, Color color, int lineWidth, ArrayList array);
public static Point DrawWindOnMap(GLGraphics canvas, PointF baseXY0, PointF baseXY1, float fSpeed, float ang, float factor, Color color, int lineWidth, int type, ArrayList array);
public static void DrawWindXY(GLGraphics canvas, PointF baseXY, float fSpeed, float ang, float factor, Pen pen, int type, int lWidth, ArrayList array);
public static int dzf(float[] zh, int isiz, int jsiz, float iIntervalX, float iIntervalY, float StartLon, float EndLon, float StartLat, float EndLat, out float[] u, out float[] v);
public static string filenameChange(DateTime dt, string oldfilename);
public static void fillPolygonWithClip(Brush brush0, PointF[] KyPoints, Graphics canvas, C_Map map);
public static void filter(int ictrl, float[,] data, int ii, int jj, ref float[,] large, ref float[,] meso);
public static float FJJS1(float AMD0, float B0, float AMDC, float BC, out float A0, out float BT, out float S);
public static void FJJS2(float AMD0, float F0, float AMDC, float FC, out float A0, out float BT, out float S);
public static int getIsolineInterval(float[] grid, int isiz, int jsiz, float hund, int LineNum, out float startV, out float interval, out float endV);
public static string getNextLine(StreamReader fileReader);
public static string GetNodeValue(XmlDocument doc0, string nodename);
public static string getPrevNextFile(string path, string filePattern, string curFilename, int moveType, int prevOrNext, int minuteMove);
public static string getPrevNextFileByName(string path, string filePattern, string curFilename, int prevOrNext);
public static void lineClipLYA(PointF[] inPnt, int inPntNum, Graphics canvas, Pen pen0, C_Map map);
public static int longbp(float[] zz, int isiz, int jsiz, float iIntervalX, float iIntervalY, float StartLon, float EndLon, float StartLat, float EndLat, out float[,] Y);
public static void micapsRunCmd(string filename, string para);
public static float nbq_xfzs(float[] iz, int isiz, int jsiz);
public static bool pntInArea(PointF pt);
public static bool ptInRegion(float x0, float y0, int pntNum, PointF[] pjw);
public static bool ptInRegion2(float xx, float yy, int nPntNum, PointF[] pjw);
public static PointF RotateBaseXY(int a, int b, PointF BaseXY, float ang, float Bl);
public static void SetLegendList(int num, Color[] lgCol, string[] lgStr);
public static void SetSelfLegendList(int num, Color[] lgCol, string[] lgStr);
public static void Sort(int[] list);
public static PointF[] Spline3(int npos, PointF[] source, int nfirst, int nlast, int ismooth, out int ns);
public static bool strPureNumber(string str);
public static int tidu(short[] zz, short isiz, short jsiz, out short[] tdx, out short[] tdy);
public static int tidu(float[] zz, int isiz, int jsiz, out float[] tdx, out float[] tdy);
public static byte[] ToCString(string str);
public static string[] ToStringArray(string line);
public static string[] ToStringArrayLYA(string line);
public static string[] ToStringArrayLYA(string line, string ch);
public static string[] ToStringArrayNew(string line);
public static void uv2dir(float u, float v, out float s, out float dir);
// Properties
public static int ChartSerialNo { get; }
// Nested Types
public enum MicapsDevice
{
Screen,
Printer
}
public enum MicapsVersion
{
client,
script,
factory
}
[StructLayout(LayoutKind.Sequential)]
public struct pathstruct
{
public string path;
public ArrayList myfiles;
public int currentPosition;
}
}
|
|