类 VolumeGraphics

  • 所有已实现的接口:
    java.util.Iterator

    public class VolumeGraphics
    extends GraphicCollection3D
    • 字段详细资料

      • buffer

        public static java.nio.Buffer buffer
      • colors

        public static byte[] colors
      • opacityLevels

        public static float[] opacityLevels
      • opacityNodes

        public static float[] opacityNodes
      • colorRange

        public static float[] colorRange
    • 构造器详细资料

      • VolumeGraphics

        public VolumeGraphics​(byte[] data,
                              int width,
                              int height,
                              int depth,
                              byte[] colors)
        Constructor
        参数:
        data - Byte data
        width - 3D texture width
        height - 3D texture height
        depth - 3D texture depth
        colors - Colors byte array
      • VolumeGraphics

        public VolumeGraphics​(org.meteoinfo.ndarray.Array value,
                              org.meteoinfo.common.colors.ColorMap colorMap,
                              double vMin,
                              double vMax)
        Constructor
        参数:
        value - Value array - 3D
        colorMap - Color map
        vMin - Minimum value
        vMax - Maximum value
      • VolumeGraphics

        public VolumeGraphics​(org.meteoinfo.ndarray.Array value,
                              org.meteoinfo.geometry.legend.LegendScheme ls)
        Constructor
        参数:
        value - Value array - 3D
        ls - LegendScheme
    • 方法详细资料

      • updateColors

        public void updateColors()
      • getWidth

        public int getWidth()
        Get width
        返回:
        Width
      • getHeight

        public int getHeight()
        Get height
        返回:
        Height
      • getDepth

        public int getDepth()
        Get depth
        返回:
        Depth
      • getData

        public byte[] getData()
        Get data array
        返回:
        Data array
      • getScale

        public float[] getScale()
        Get scale
        返回:
        Scale
      • getScale

        public float getScale​(int i)
        Get scale by index
        参数:
        i - Index
        返回:
        Scale
      • getColorNum

        public int getColorNum()
      • getAabbMin

        public float[] getAabbMin()
      • getAabbMax

        public float[] getAabbMax()
      • getVertexBufferData

        public float[] getVertexBufferData()
        Get vertex buffer data
        返回:
        Vertex buffer data
      • getVertexBufferData

        public float[] getVertexBufferData​(Transform transform)