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