Panda3D
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
ColorInterpolationFunctionConstant Class Reference

Defines a constant color over the lifetime of the segment. More...

#include "colorInterpolationManager.h"

Inheritance diagram for ColorInterpolationFunctionConstant:
ColorInterpolationFunction TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase ColorInterpolationFunctionLinear ColorInterpolationFunctionSinusoid ColorInterpolationFunctionStepwave

List of all members.

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

Detailed Description

Defines a constant color over the lifetime of the segment.

Definition at line 65 of file colorInterpolationManager.h.


Constructor & Destructor Documentation

default constructor

Definition at line 50 of file colorInterpolationManager.cxx.

constructor

Definition at line 61 of file colorInterpolationManager.cxx.


Member Function Documentation

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.

Sets the primary color of the function.

Definition at line 35 of file colorInterpolationManager.I.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations