Gradient Class Reference

color gradient More...

#include <gradient.hh>


Public Member Functions

 Gradient ()
Color GetColorAt (float t) const
void SetColorAt (float t, const Color &color)
void GradientToInfo (info::InfoGroup &group) const
StopList GetStops () const

Static Public Member Functions

static gfx::Gradient GradientFromInfo (const info::InfoGroup &group)


Detailed Description

color gradient

Gradients map a scalar value in the range of 0 to 1 to a color. The gradient consists of zero or more color stops. These stop points define the output of GetColorAt(). New stops can be added with SetColorAt().

See also:
Gradient Example

Definition at line 70 of file gradient.hh.


Constructor & Destructor Documentation

Gradient (  ) 


Member Function Documentation

Color GetColorAt ( float  t  )  const

get color

StopList GetStops (  )  const

get list of color stops

static gfx::Gradient GradientFromInfo ( const info::InfoGroup group  )  [static]

create gradient from info

void GradientToInfo ( info::InfoGroup group  )  const

convert gradient to info

void SetColorAt ( float  t,
const Color color 
)

set color

Parameters:
t is the position where the new stop should be inserted
color is the color of the stop


The documentation for this class was generated from the following file:

Generated on Fri Jul 2 14:23:06 2010 for OpenStructure by  doxygen 1.5.8