|
|
XGraphics Class |
public abstract class XGraphics : IDisposable
The XGraphics type exposes the following members.
| Name | Description | |
|---|---|---|
| GetBoundaryOfTriangleLump | Triangulation을 입력하여 Vertex점 순서를 출력한다. | |
| GetEdgesFromTriangles | Triangulation을 입력하여 Edge 순서를 출력한다. | |
| glAlphaFunc | The glAlphaFunc function enables your application to set the alpha test function. | |
| glBegin | The glBegin and glend functions delimit the vertices of a primitive or a group of like primitives. | |
| glBindTexture | The glBindTexture function enables the creation of a named texture that is bound to a texture target. | |
| glBlendFunc | The glBlendFunc function specifies pixel arithmetic. | |
| glCallList | execute a display list | |
| glColor | Sets the current color. | |
| glColor3d | Sets the current color. | |
| glColor3f | Sets the current color. | |
| glColor4d | Sets the current color. | |
| glColor4f | Sets the current color. | |
| glDisable | The glEnable and glDisable functions enable or disable OpenGL capabilities. | |
| glEnable | The glEnable and glDisable functions enable or disable OpenGL capabilities. | |
| glEnd | The glBegin and glend functions delimit the vertices of a primitive or a group of like primitives. | |
| glEndList | ||
| glFrontFace | The glFrontFace function defines front-facing and back-facing polygons. | |
| glGenLists | ||
| glGetDoublev | ||
| glGetError | ||
| glGetFloatv | ||
| glGetIntegerv | ||
| glGetString | The glGetString function returns a string of GL states. | |
| glLineStipple | The glFrontFace function defines specify the line stipple pattern. | |
| glLineWidth | The glLineWidth function specifies the width of rasterized lines. | |
| glLoadMatrixd | ||
| glLoadMatrixf | ||
| glMatrixMode | The glMatrixMode function specifies which matrix is the current matrix. | |
| glNewList | ||
| glNormal3d(XVertex3d) | Sets the current normal vector. | |
| glNormal3d(Double, Double, Double) | Sets the current normal vector. | |
| glPointSize | The glPointSize function specifies the diameter of rasterized points. | |
| glPopMatrix | The glPushMatrix and glPopMatrix functions push and pop the current matrix stack. | |
| glPushMatrix | The glPushMatrix and glPopMatrix functions push and pop the current matrix stack. | |
| glReadBuffer | ||
| glReadPixels | ||
| glRotated(XAngle, XVertex3d) | The glRotated function multiplies the current matrix by a rotation matrix. | |
| glRotated(Double, Double, Double, Double) | The glRotated function multiplies the current matrix by a rotation matrix. | |
| glScaled(XVertex3d) | The glScaled and glScalef functions multiply the current matrix by a general scaling matrix. | |
| glScaled(Double, Double, Double) | The glScaled and glScalef functions multiply the current matrix by a general scaling matrix. | |
| glTexCoord2d(XVertex2d) | Sets the current texture coordinates. | |
| glTexCoord2d(Double, Double) | Sets the current texture coordinates. | |
| glTexCoord2f | Sets the current texture coordinates. | |
| glTexCoord3d | ||
| glTranslated(XVertex2d) | The glTranslated function multiplies the current matrix by a translation matrix. | |
| glTranslated(XVertex3d) | The glTranslated function multiplies the current matrix by a translation matrix. | |
| glTranslated(Double, Double) | The glTranslated function multiplies the current matrix by a translation matrix. | |
| glTranslated(Double, Double, Double) | The glTranslated function multiplies the current matrix by a translation matrix. | |
| gluUnProject | ||
| glVertex2d(XVertex2d) | Specifies a 2d vertex. | |
| glVertex2d(Double, Double) | Specifies a 2d vertex. | |
| glVertex3d(XVertex3d) | Specifies a 3d vertex. | |
| glVertex3d(Double, Double, Double) | Specifies a 3d vertex. | |
| Triangulate | OpenGL Tesselator를 이용하여 정점들을 잇는 삼각망을 구한다. | |
| TriangulateDelaunay(XVertex3d, XVertex3d, String) | 정점들을 잇는 들로네 삼각망을 구한다. | |
| TriangulateDelaunay(XVertex3d, XVertex2i, XVertex3d, String) | 정점들을 잇는 들로네 삼각망을 구한다. | |
| xglVertex3d(XVertex3d) | Specifies a 3d vertex. | |
| xglVertex3d(Double, Double, Double) | Specifies a 3d vertex. |
private bool nxImageLayerGPU1_OnRender(NXImageLayerGPU sender, NXImageViewDrawArgs DrawArgs) { // Draw cross mark at specific position. XGraphics g = DrawArgs.Graphics; XVertex3d vPos = new XVertex3d(127.0, 37.0, 0); // Lon : 127.0, Lat : 36.0 double nOff = DrawArgs.PixelSize * 10; g.glColor3d(1, 0, 0); g.glBegin(XGraphics.GL_LINES); g.glVertex3d(vPos.x - nOff, vPos.y, vPos.z); g.glVertex3d(vPos.x + nOff, vPos.y, vPos.z); g.glVertex3d(vPos.x, vPos.y - nOff, vPos.z); g.glVertex3d(vPos.x, vPos.y + nOff, vPos.z); g.glEnd(); DrawArgs.Invalidate(); return default(bool); }