类 TransferFunction


  • public class TransferFunction
    extends Object
    • 构造器详细资料

      • TransferFunction

        public TransferFunction()
        Constructor
      • TransferFunction

        public TransferFunction​(OpacityTransferFunction opacityTransferFunction,
                                ColorMap colorMap,
                                Normalize normalize)
        Constructor
        参数:
        opacityTransferFunction - Transfer function
        colorMap - Color map
        normalize - Normalize
      • TransferFunction

        public TransferFunction​(OpacityTransferFunction opacityTransferFunction,
                                ColorMap colorMap)
        Constructor
        参数:
        opacityTransferFunction - Transfer function
        colorMap - Color map
      • TransferFunction

        public TransferFunction​(ColorMap colorMap,
                                Normalize normalize)
        Constructor
        参数:
        colorMap - Color map
        normalize - Normalize
      • TransferFunction

        public TransferFunction​(ColorMap colorMap)
        Constructor
        参数:
        colorMap - Color map
    • 方法详细资料

      • getOpacityTransferFunction

        public OpacityTransferFunction getOpacityTransferFunction()
        Get opacity transfer function
        返回:
        Opacity transfer function
      • setOpacityTransferFunction

        public void setOpacityTransferFunction​(OpacityTransferFunction value)
        Set opacity transfer function
        参数:
        value - Opacity transfer function
      • getColorMap

        public ColorMap getColorMap()
        Get color map
        返回:
        Color map
      • setColorMap

        public void setColorMap​(ColorMap value)
        Set color map
        参数:
        value - Color map
      • getNormalize

        public Normalize getNormalize()
        Get normalize
        返回:
        Normalize
      • setNormalize

        public void setNormalize​(Normalize value)
        Set normalize
        参数:
        value - Normalize
      • getColor

        public Color getColor​(double v)
        Get color with a data value
        参数:
        v - The data value
        返回:
        The color
      • toLegendScheme

        public LegendScheme toLegendScheme​(double min,
                                           double max)
        To legend scheme
        参数:
        min - The minimum value
        max - The maximum value
        n - Legend break number
        返回:
        Legend scheme
      • toLegendScheme

        public LegendScheme toLegendScheme​(double min,
                                           double max,
                                           int n)
        To legend scheme
        参数:
        min - The minimum value
        max - The maximum value
        n - Legend break number
        返回:
        Legend scheme