Panda3D
|
Defines a constant color over the lifetime of the segment. More...
#include "colorInterpolationManager.h"
Public Member Functions | |
ColorInterpolationFunctionConstant () | |
default constructor | |
ColorInterpolationFunctionConstant (const LColor &color_a) | |
constructor | |
virtual TypeHandle | force_init_type () |
LColor | get_color_a () const |
Returns the primary color of the function. | |
virtual TypeHandle | get_type () const |
void | set_color_a (const LColor &c) |
Sets the primary color of the function. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
Protected Member Functions | |
virtual LColor | interpolate (const PN_stdfloat t=0) const |
Returns the color associated with this instance. | |
Protected Attributes | |
LColor | _c_a |
Defines a constant color over the lifetime of the segment.
Definition at line 65 of file colorInterpolationManager.h.
default constructor
Definition at line 50 of file colorInterpolationManager.cxx.
ColorInterpolationFunctionConstant::ColorInterpolationFunctionConstant | ( | const LColor & | color_a | ) |
constructor
Definition at line 61 of file colorInterpolationManager.cxx.
LColor ColorInterpolationFunctionConstant::get_color_a | ( | ) | const [inline] |
Returns the primary color of the function.
Definition at line 24 of file colorInterpolationManager.I.
static void ColorInterpolationFunctionConstant::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from ColorInterpolationFunction.
Reimplemented in ColorInterpolationFunctionSinusoid, ColorInterpolationFunctionStepwave, and ColorInterpolationFunctionLinear.
Definition at line 86 of file colorInterpolationManager.h.
LColor ColorInterpolationFunctionConstant::interpolate | ( | const PN_stdfloat | t = 0 | ) | const [protected, virtual] |
Returns the color associated with this instance.
Implements ColorInterpolationFunction.
Reimplemented in ColorInterpolationFunctionSinusoid, ColorInterpolationFunctionStepwave, and ColorInterpolationFunctionLinear.
Definition at line 72 of file colorInterpolationManager.cxx.
void ColorInterpolationFunctionConstant::set_color_a | ( | const LColor & | c | ) | [inline] |
Sets the primary color of the function.
Definition at line 35 of file colorInterpolationManager.I.