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
Interface ColorTransform

All Known Implementing Classes:
SineColorTransform

public interface ColorTransform

Interface that deals with color transformations

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

Method Summary
 void computeTransform()
          Compute the color transformation.
 Color getColor(double val, double min, double max)
          Converts a value into a Color using the actual color tranformation, and minimum and maximum 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 f)
          Sets the color scale factor
 

Method Detail

getColor

Color getColor(double val,
               double min,
               double max)
Converts a value into a Color using the actual color tranformation, and minimum and maximum value.

Parameters:
val - value to convert into Color
min - minimum value
max - maximum value
Returns:
a corresponding transformed color

computeTransform

void computeTransform()
Compute the color transformation.


setScaleColor

void setScaleColor(double f)
Sets the color scale factor

Parameters:
f - color scale factor

getScaleColor

double getScaleColor()
Gets the color scale factor

Returns:
color scale factor

getMin

double getMin()
Gets the minimum data value used by this color transformation.

Returns:
minimum data value used

getMax

double getMax()
Gets the maximum data value used by this color transformation.

Returns:
maximum data value used

"Built from revision exported"

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

CL 03-2650