NASA - Jet Propulsion Laboratory
    + View the NASA Portal
Search JPL
Jet Propulsion Laboratory Home Earth Solar System Stars & Galaxies Technology
Introduction Background Software Links


healpix.plot3d.canvas3d
Class SineColorTransform

java.lang.Object
  extended by healpix.plot3d.canvas3d.SineColorTransform
All Implemented Interfaces:
ColorTransform

public class SineColorTransform
extends Object
implements ColorTransform

A Sine color transform. WOM originally coded.

Version:
$Id: SineColorTransform.java,v 1.1.2.4 2010/02/22 14:55:50 healpix Exp $
Author:
ejoliet

Field Summary
 double scaleColor
          The scale color.
 
Constructor Summary
SineColorTransform(double min, double max)
          Creates a new SineColorTransform object from minimum and max data values.
 
Method Summary
 void computeTransform()
          Compute the color transformation.
 Color getColor(double val)
          Get the Color of a value using the defined scale color
 Color getColor(double val, double min, double max)
          Converts a value into a Color using the actual color tranformation, and minimum and maximum value.
 Color3f getColor3f(double val)
          Get Color3f from a value
 double getMax()
          Gets the maximum data value used by this color transformation.
 double getMin()
          Gets the minimum data value used by this color transformation.
 double getScaleColor()
          Gets the color scale factor
 void setScaleColor(double scaleColor)
          Sets the color scale factor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scaleColor

public double scaleColor
The scale color.

Constructor Detail

SineColorTransform

public SineColorTransform(double min,
                          double max)
Creates a new SineColorTransform object from minimum and max data values.

Parameters:
min - minimum value
max - maximum value
Method Detail

setScaleColor

public void setScaleColor(double scaleColor)
Description copied from interface: ColorTransform
Sets the color scale factor

Specified by:
setScaleColor in interface ColorTransform
Parameters:
scaleColor - color scale factor

getColor

public Color getColor(double val)
Get the Color of a value using the defined scale color

Parameters:
val - value
Returns:
the corresponding Color

getColor

public Color getColor(double val,
                      double min,
                      double max)
Description copied from interface: ColorTransform
Converts a value into a Color using the actual color tranformation, and minimum and maximum value.

Specified by:
getColor in interface ColorTransform
Parameters:
val - value to convert into Color
min - minimum value
max - maximum value
Returns:
a corresponding transformed color

computeTransform

public void computeTransform()
Description copied from interface: ColorTransform
Compute the color transformation.

Specified by:
computeTransform in interface ColorTransform

getColor3f

public Color3f getColor3f(double val)
Get Color3f from a value

Parameters:
val - value
Returns:
Color3f

getScaleColor

public double getScaleColor()
Description copied from interface: ColorTransform
Gets the color scale factor

Specified by:
getScaleColor in interface ColorTransform
Returns:
color scale factor

getMax

public double getMax()
Description copied from interface: ColorTransform
Gets the maximum data value used by this color transformation.

Specified by:
getMax in interface ColorTransform
Returns:
maximum data value used

getMin

public double getMin()
Description copied from interface: ColorTransform
Gets the minimum data value used by this color transformation.

Specified by:
getMin in interface ColorTransform
Returns:
minimum data value used

"Built from revision exported"

Privacy / Copyright
FIRST GOV Contact: NASA Home Page Site Manager:
Webmaster:

CL 03-2650