143 INLINE PN_stdfloat get_width_a()
const;
144 INLINE PN_stdfloat get_width_b()
const;
146 INLINE
void set_width_a(
const PN_stdfloat w);
147 INLINE
void set_width_b(
const PN_stdfloat w);
154 LColor interpolate(
const PN_stdfloat t = 0)
const;
165 static void init_type() {
166 ColorInterpolationFunctionLinear::init_type();
167 register_type(_type_handle,
"ColorInterpolationFunctionStepwave",
168 ColorInterpolationFunctionLinear::get_class_type());
172 return get_class_type();
174 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
276 int add_constant(
const PN_stdfloat time_begin = 0.0f,
const PN_stdfloat time_end = 1.0f,
const LColor &color = LColor(1.0f,1.0f,1.0f,1.0f),
const bool is_modulated =
true);
277 int add_linear(
const PN_stdfloat time_begin = 0.0f,
const PN_stdfloat time_end = 1.0f,
const LColor &color_a = LColor(1.0f,0.0f,0.0f,1.0f),
const LColor &color_b = LColor(0.0f,1.0f,0.0f,1.0f),
const bool is_modulated =
true);
278 int add_stepwave(
const PN_stdfloat time_begin = 0.0f,
const PN_stdfloat time_end = 1.0f,
const LColor &color_a = LColor(1.0f,0.0f,0.0f,1.0f),
const LColor &color_b = LColor(0.0f,1.0f,0.0f,1.0f),
const PN_stdfloat width_a = 0.5f,
const PN_stdfloat width_b = 0.5f,
const bool is_modulated =
true);
279 int add_sinusoid(
const PN_stdfloat time_begin = 0.0f,
const PN_stdfloat time_end = 1.0f,
const LColor &color_a = LColor(1.0f,0.0f,0.0f,1.0f),
const LColor &color_b = LColor(0.0f,1.0f,0.0f,1.0f),
const PN_stdfloat period = 1.0f,
const bool is_modulated =
true);
281 INLINE
void set_default_color(
const LColor &c);
283 INLINE std::string get_segment_id_list();
284 void clear_segment(
const int seg_id);
285 void clear_to_initial();
288 LColor generateColor(
const PN_stdfloat interpolated_time);
291 LColor _default_color;
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...