📄 maingridviewtest.html
字号:
<TITLE>COG 2.1: Looking at a grid</TITLE> <P>See also<UL><LI> <A HREF="mainviewgeomtest.html">viewing a geometry</A><LI> <A HREF="wzwindow.html">general help for the viewer</A><LI> <A HREF="wzgridview.html">grid-specific help for the viewer</A></UL><H1>COG 2.1: Viewing a grid</H1> <P>Let's consider now how to use the COG grid viewer.Let's assume you have Open GL on your machine and no<A HREF="install.html">installation problems</A>. <P>Now, let's at first read a grid from a file:<PRE>#include "<A HREF="coglib.hxx">cog/coglib.hxx</A>"int main(int argc, char** argv){ wzgrid grid; if(argc>1) grid = new wzGrid(argv[1]); else grid = new wzGrid("test.sg");</PRE> <P>To view this grid, make<PRE> wzView(grid);}</PRE> <P>I recommend to rename the resulting file: <P><B>> cog main view</B> <BR><B>> mv test view</B> <P>Then you can use it to look at a grid in simplex grid format with <P><B>> view xyz.sg</B><H3>Known Bugs</H3> <P>If you close the window, an X error is received. This does notseem to do anything wrong.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -