NPlot::LinearGradient Class Reference

Class for creating a linear gradient. More...

Inheritance diagram for NPlot::LinearGradient:

NPlot::IGradient List of all members.

Public Member Functions

 LinearGradient (Color minColor, Color maxColor)
 Constructor.
Color GetColor (double prop)
 Gets a color corresponding to a number between 0.0 and 1.0 inclusive.

Properties

Color MaxColor
 The color corresponding to 0.0.
Color maxColor_
Color MinColor
 The color corresponding to 1.0.
Color minColor_

Detailed Description

Class for creating a linear gradient.

Definition at line 61 of file LinearGradient.cs.


Constructor & Destructor Documentation

NPlot::LinearGradient::LinearGradient Color  minColor,
Color  maxColor
[inline]
 

Constructor.

Parameters:
minColor The color corresponding to 0.0
maxColor The color corresponding to 1.0

Definition at line 69 of file LinearGradient.cs.


Member Function Documentation

Color NPlot::LinearGradient::GetColor double  prop  )  [inline]
 

Gets a color corresponding to a number between 0.0 and 1.0 inclusive.

The color will be a linear interpolation of the min and max colors.

Parameters:
prop the number to get corresponding color for (between 0.0 and 1.0)
Returns:
The color corresponding to the supplied number.

Implements NPlot::IGradient.

Definition at line 116 of file LinearGradient.cs.

References MinColor.


Property Documentation

Color NPlot::LinearGradient::MaxColor [get, set]
 

The color corresponding to 0.0.

Definition at line 80 of file LinearGradient.cs.

Color NPlot::LinearGradient::maxColor_ [private]
 

Definition at line 90 of file LinearGradient.cs.

Color NPlot::LinearGradient::MinColor [get, set]
 

The color corresponding to 1.0.

Definition at line 97 of file LinearGradient.cs.

Referenced by GetColor().

Color NPlot::LinearGradient::minColor_ [private]
 

Definition at line 107 of file LinearGradient.cs.


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 01:04:08 2005 for NPlot by  doxygen 1.4.5