healpix.plot3d.canvas3d
Interface ColorTransform

All Known Implementing Classes:
SineColorTransform

public interface ColorTransform

Interface that deals with color transformations

Version:
$Id: ColorTransform.java 30580 2007-09-05 15:02:18Z nbach $
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"