类 TransferFunction
- java.lang.Object
-
- org.meteoinfo.geometry.colors.TransferFunction
-
public class TransferFunction extends Object
-
-
构造器概要
构造器 构造器 说明 TransferFunction()ConstructorTransferFunction(ColorMap colorMap)ConstructorTransferFunction(ColorMap colorMap, Normalize normalize)ConstructorTransferFunction(OpacityTransferFunction opacityTransferFunction, ColorMap colorMap)ConstructorTransferFunction(OpacityTransferFunction opacityTransferFunction, ColorMap colorMap, Normalize normalize)Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ColorgetColor(double v)Get color with a data valueColorMapgetColorMap()Get color mapNormalizegetNormalize()Get normalizeOpacityTransferFunctiongetOpacityTransferFunction()Get opacity transfer functionvoidsetColorMap(ColorMap value)Set color mapvoidsetNormalize(Normalize value)Set normalizevoidsetOpacityTransferFunction(OpacityTransferFunction value)Set opacity transfer functionLegendSchemetoLegendScheme(double min, double max)To legend schemeLegendSchemetoLegendScheme(double min, double max, int n)To legend scheme
-
-
-
构造器详细资料
-
TransferFunction
public TransferFunction()
Constructor
-
TransferFunction
public TransferFunction(OpacityTransferFunction opacityTransferFunction, ColorMap colorMap, Normalize normalize)
Constructor- 参数:
opacityTransferFunction- Transfer functioncolorMap- Color mapnormalize- Normalize
-
TransferFunction
public TransferFunction(OpacityTransferFunction opacityTransferFunction, ColorMap colorMap)
Constructor- 参数:
opacityTransferFunction- Transfer functioncolorMap- Color map
-
TransferFunction
public TransferFunction(ColorMap colorMap, Normalize normalize)
Constructor- 参数:
colorMap- Color mapnormalize- 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 valuemax- The maximum valuen- Legend break number- 返回:
- Legend scheme
-
toLegendScheme
public LegendScheme toLegendScheme(double min, double max, int n)
To legend scheme- 参数:
min- The minimum valuemax- The maximum valuen- Legend break number- 返回:
- Legend scheme
-
-