Panda3D
|
Defines a discrete cyclical transition between two colors. More...
#include "colorInterpolationManager.h"
Public Member Functions | |
ColorInterpolationFunctionStepwave () | |
default constructor More... | |
ColorInterpolationFunctionStepwave (const LColor &color_a, const LColor &color_b, const PN_stdfloat width_a, const PN_stdfloat width_b) | |
constructor More... | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
PN_stdfloat | get_width_a () const |
Returns the primary width of the function. More... | |
PN_stdfloat | get_width_b () const |
Returns the secondary width of the function. More... | |
void | set_width_a (const PN_stdfloat w) |
Sets the primary width of the function. More... | |
void | set_width_b (const PN_stdfloat w) |
Sets the secondary width of the function. More... | |
![]() | |
ColorInterpolationFunctionLinear () | |
default constructor More... | |
ColorInterpolationFunctionLinear (const LColor &color_a, const LColor &color_b) | |
constructor More... | |
LColor | get_color_b () const |
Returns the secondary color of the function. More... | |
void | set_color_b (const LColor &c) |
Sets the secondary color of the function. More... | |
![]() | |
ColorInterpolationFunctionConstant () | |
default constructor More... | |
ColorInterpolationFunctionConstant (const LColor &color_a) | |
constructor More... | |
LColor | get_color_a () const |
Returns the primary color of the function. More... | |
void | set_color_a (const LColor &c) |
Sets the primary color of the function. More... | |
![]() | |
ColorInterpolationFunction () | |
constructor More... | |
virtual | ~ColorInterpolationFunction () |
destructor More... | |
![]() | |
TypedReferenceCount (const TypedReferenceCount ©) | |
void | operator= (const TypedReferenceCount ©) |
![]() | |
TypedObject (const TypedObject ©) | |
TypedObject * | as_typed_object () |
Returns the object, upcast (if necessary) to a TypedObject pointer. More... | |
const TypedObject * | as_typed_object () const |
Returns the object, upcast (if necessary) to a TypedObject pointer. More... | |
int | get_best_parent_from_Set (const std::set< int > &) const |
int | get_type_index () const |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. More... | |
bool | is_exact_type (TypeHandle handle) const |
Returns true if the current object is the indicated type exactly. More... | |
bool | is_of_type (TypeHandle handle) const |
Returns true if the current object is or derives from the indicated type. More... | |
void | operator= (const TypedObject ©) |
![]() | |
int | get_ref_count () const |
Returns the current reference count. More... | |
WeakReferenceList * | get_weak_list () const |
Returns the WeakReferenceList associated with this ReferenceCount object. More... | |
bool | has_weak_list () const |
Returns true if this particular ReferenceCount object has a WeakReferenceList created, false otherwise. More... | |
void | local_object () |
This function should be called, once, immediately after creating a new instance of some ReferenceCount-derived object on the stack. More... | |
void | ref () const |
Explicitly increments the reference count. More... | |
bool | test_ref_count_integrity () const |
Does some easy checks to make sure that the reference count isn't completely bogus. More... | |
bool | test_ref_count_nonzero () const |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More... | |
virtual bool | unref () const |
Explicitly decrements the reference count. More... | |
void | weak_ref (WeakPointerToVoid *ptv) |
Adds the indicated PointerToVoid as a weak reference to this object. More... | |
void | weak_unref (WeakPointerToVoid *ptv) |
Removes the indicated PointerToVoid as a weak reference to this object. More... | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
![]() | |
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. More... | |
![]() | |
static TypeHandle | get_class_type () |
static void | init_type () |
Defines a discrete cyclical transition between two colors.
The widths describe a portion of the segment's lifetime for which the corresponding color should be selected. If their sum is less than 1, the function repeats until the end of the segment.
Definition at line 150 of file colorInterpolationManager.h.
ColorInterpolationFunctionStepwave::ColorInterpolationFunctionStepwave | ( | ) |
default constructor
Definition at line 118 of file colorInterpolationManager.cxx.
Referenced by ColorInterpolationFunctionLinear::ColorInterpolationFunctionLinear().
ColorInterpolationFunctionStepwave::ColorInterpolationFunctionStepwave | ( | const LColor & | color_a, |
const LColor & | color_b, | ||
const PN_stdfloat | width_a, | ||
const PN_stdfloat | width_b | ||
) |
constructor
Definition at line 130 of file colorInterpolationManager.cxx.
References ColorInterpolationFunctionSinusoid::ColorInterpolationFunctionSinusoid().
|
inline |
Returns the primary width of the function.
Definition at line 68 of file colorInterpolationManager.I.
References get_width_b().
Referenced by ColorInterpolationFunctionLinear::set_color_b().
|
inline |
Returns the secondary width of the function.
Definition at line 79 of file colorInterpolationManager.I.
References set_width_a().
Referenced by get_width_a().
|
inline |
Sets the primary width of the function.
Definition at line 90 of file colorInterpolationManager.I.
References set_width_b().
Referenced by get_width_b().
|
inline |
Sets the secondary width of the function.
Definition at line 101 of file colorInterpolationManager.I.
References ColorInterpolationFunctionSinusoid::get_period().
Referenced by set_width_a().