com.metsci.glimpse.support.colormap
Class ColorMapLog

java.lang.Object
  extended by com.metsci.glimpse.support.colormap.ColorMapLinear
      extended by com.metsci.glimpse.support.colormap.ColorMapLog
All Implemented Interfaces:
ColorMap

public class ColorMapLog
extends ColorMapLinear

A ColorMap which interpolates the provided ColorGradient logarithmically over the provided data bounds. If values outside of the bounds are provided, the returned color will simply saturate at one end of the ColorGradient.

Author:
hogye

Constructor Summary
ColorMapLog(float logMin, float logMax, ColorGradient gradient)
           
 
Method Summary
 void toColor(float value, float[] rgba)
          Computes the color to be used to display the given value, and stores the color in the rgba array.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorMapLog

public ColorMapLog(float logMin,
                   float logMax,
                   ColorGradient gradient)
Method Detail

toColor

public void toColor(float value,
                    float[] rgba)
Description copied from interface: ColorMap
Computes the color to be used to display the given value, and stores the color in the rgba array. The rgba array must be a pre-allocated float array of length >= 4.

Specified by:
toColor in interface ColorMap
Overrides:
toColor in class ColorMapLinear


Copyright © 2012 Metron, Inc.. All Rights Reserved.