类 JOGLUtil
- java.lang.Object
-
- org.meteoinfo.chart.jogl.JOGLUtil
-
public class JOGLUtil extends java.lang.Object- 作者:
- yaqiang
-
-
构造器概要
构造器 构造器 说明 JOGLUtil()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static GraphicCollectioncreateTexture(com.jogamp.opengl.GL2 gl, ImageLayer layer, double offset, double xshift, java.lang.String interpolation)Create Texturestatic float[]getRGBA(ColorBreak cb)Get RGBA components from a legend breakstatic GraphicCollectionisosurface(Array data, Array x, Array y, Array z, float isoLevel, PolygonBreak pb)Create isosurface graphicsstatic GraphicCollectionisosurface(Array data, Array x, Array y, Array z, float isoLevel, PolygonBreak pb, int nThreads)Create isosurface graphicsstatic SurfaceGraphicssurface(Array xa, Array ya, Array za, LegendScheme ls)Create surface graphics
-
-
-
方法详细资料
-
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- GL2layer- Image layeroffset- Offset of z axisxshift- X shift - to shift the grahpics in x direction, normally for map in 180 - 360 degree eastinterpolation- Interpolation- 返回:
- Graphics
- 抛出:
java.io.IOException
-
surface
public static SurfaceGraphics surface(Array xa, Array ya, Array za, LegendScheme ls)
Create surface graphics- 参数:
xa- X coordinate arrayya- Y coordinate arrayza- Z coordinate arrayls- 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 arrayx- X coordinatesy- Y coordinatesz- Z coordinatesisoLevel- iso levelpb- 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 arrayx- X coordinatesy- Y coordinatesz- Z coordinatesisoLevel- iso levelpb- Polygon breaknThreads- Thread number- 返回:
- Graphics
-
-