Panda3D
Public Member Functions | List of all members
ColorInterpolationManager Class Reference
Inheritance diagram for ColorInterpolationManager:
ReferenceCount MemoryBase

Public Member Functions

 __init__ ()
 
 __init__ (const ColorInterpolationManager copy)
 
 __init__ (const LColor c)
 
int addConstant (float time_begin, float time_end, const LColor color, bool is_modulated)
 
int addLinear (float time_begin, float time_end, const LColor color_a, const LColor color_b, bool is_modulated)
 
int addSinusoid (float time_begin, float time_end, const LColor color_a, const LColor color_b, float period, bool is_modulated)
 
int addStepwave (float time_begin, float time_end, const LColor color_a, const LColor color_b, float width_a, float width_b, bool is_modulated)
 
 clearSegment (int seg_id)
 
 clearToInitial ()
 
ColorInterpolationSegment getSegment (int seg_id)
 
str getSegmentIdList ()
 
 setDefaultColor (const LColor c)
 
- Public Member Functions inherited from ReferenceCount
int getRefCount ()
 Returns the current reference count. More...
 
 ref ()
 Explicitly increments the reference count. User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically. More...
 
bool testRefCountIntegrity ()
 Does some easy checks to make sure that the reference count isn't completely bogus. Returns true if ok, false otherwise. More...
 
bool testRefCountNonzero ()
 Does some easy checks to make sure that the reference count isn't zero, or completely bogus. Returns true if ok, false otherwise. More...
 
bool unref ()
 Explicitly decrements the reference count. Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic.) However, see the helper function unref_delete(). More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ReferenceCount
static TypeHandle getClassType ()
 

Member Function Documentation

◆ __init__() [1/3]

__init__ ( )

◆ __init__() [2/3]

__init__ ( const ColorInterpolationManager  copy)

◆ __init__() [3/3]

__init__ ( const LColor  c)

◆ addConstant()

int addConstant ( float  time_begin,
float  time_end,
const LColor  color,
bool  is_modulated 
)

◆ addLinear()

int addLinear ( float  time_begin,
float  time_end,
const LColor  color_a,
const LColor  color_b,
bool  is_modulated 
)

◆ addSinusoid()

int addSinusoid ( float  time_begin,
float  time_end,
const LColor  color_a,
const LColor  color_b,
float  period,
bool  is_modulated 
)

◆ addStepwave()

int addStepwave ( float  time_begin,
float  time_end,
const LColor  color_a,
const LColor  color_b,
float  width_a,
float  width_b,
bool  is_modulated 
)

◆ clearSegment()

clearSegment ( int  seg_id)

◆ clearToInitial()

clearToInitial ( )

◆ getSegment()

ColorInterpolationSegment getSegment ( int  seg_id)

◆ getSegmentIdList()

str getSegmentIdList ( )

◆ setDefaultColor()

setDefaultColor ( const LColor  c)