类 JOGLUtil


  • public class JOGLUtil
    extends java.lang.Object
    作者:
    yaqiang
    • 构造器详细资料

      • JOGLUtil

        public JOGLUtil()
    • 方法详细资料

      • getRGBA

        public static float[] getRGBA​(ColorBreak cb)
        Get RGBA components from a legend break
        参数:
        cb - Legend break
        返回:
        RGBA float array
      • createTexture

        public static GraphicCollection createTexture​(com.jogamp.opengl.GL2 gl,
                                                      ImageLayer layer,
                                                      double offset,
                                                      double xshift,
                                                      java.lang.String interpolation)
                                               throws java.io.IOException
        Create Texture
        参数:
        gl - GL2
        layer - Image layer
        offset - Offset of z axis
        xshift - X shift - to shift the grahpics in x direction, normally for map in 180 - 360 degree east
        interpolation - Interpolation
        返回:
        Graphics
        抛出:
        java.io.IOException
      • surface

        public static SurfaceGraphics surface​(Array xa,
                                              Array ya,
                                              Array za,
                                              LegendScheme ls)
        Create surface graphics
        参数:
        xa - X coordinate array
        ya - Y coordinate array
        za - Z coordinate array
        ls - Legend scheme
        返回:
        Surface graphics
      • isosurface

        public static GraphicCollection isosurface​(Array data,
                                                   Array x,
                                                   Array y,
                                                   Array z,
                                                   float isoLevel,
                                                   PolygonBreak pb)
        Create isosurface graphics
        参数:
        data - 3d data array
        x - X coordinates
        y - Y coordinates
        z - Z coordinates
        isoLevel - iso level
        pb - Polygon break
        返回:
        Graphics
      • isosurface

        public static GraphicCollection isosurface​(Array data,
                                                   Array x,
                                                   Array y,
                                                   Array z,
                                                   float isoLevel,
                                                   PolygonBreak pb,
                                                   int nThreads)
        Create isosurface graphics
        参数:
        data - 3d data array
        x - X coordinates
        y - Y coordinates
        z - Z coordinates
        isoLevel - iso level
        pb - Polygon break
        nThreads - Thread number
        返回:
        Graphics