|
Blender V4.3
|
Go to the source code of this file.
Macros | |
| #define | MAXCOLORBAND 32 |
Functions | |
| void | BKE_colorband_init (ColorBand *coba, bool rangetype) |
| void | BKE_colorband_init_from_table_rgba (ColorBand *coba, const float(*array)[4], int array_len, bool filter_samples) |
| ColorBand * | BKE_colorband_add (bool rangetype) |
| bool | BKE_colorband_evaluate (const ColorBand *coba, float in, float out[4]) |
| void | BKE_colorband_evaluate_table_rgba (const ColorBand *coba, float **array, int *size) |
| CBData * | BKE_colorband_element_add (ColorBand *coba, float position) |
| bool | BKE_colorband_element_remove (ColorBand *coba, int index) |
| void | BKE_colorband_update_sort (ColorBand *coba) |
| #define MAXCOLORBAND 32 |
ColorBand.data length.
Definition at line 14 of file BKE_colorband.hh.
Referenced by BKE_colorband_element_add(), BKE_colorband_init(), colorband_flip(), colorband_init_from_table_rgba_resample(), colorband_init_from_table_rgba_simple(), and blender::ui::eyedropper_colorband_point_modal().
| ColorBand * BKE_colorband_add | ( | bool | rangetype | ) |
Definition at line 298 of file colorband.cc.
References BKE_colorband_init(), and MEM_callocN.
Referenced by BKE_linestyle_color_modifier_add(), BKE_texture_pointdensity_init_data(), dynamicPaint_createType(), blender::init_data(), blender::nodes::node_composite_color_ramp_cc::node_composit_init_valtorgb(), blender::nodes::node_shader_color_ramp_cc::node_shader_init_valtorgb(), and valtorgb_init().
Definition at line 606 of file colorband.cc.
References BKE_colorband_evaluate(), BKE_colorband_update_sort(), ColorBand::cur, ColorBand::data, MAXCOLORBAND, CBData::pos, CBData::r, ColorBand::tot, and zero_v4().
Referenced by colorband_add(), and ui_do_but_COLORBAND().
Definition at line 632 of file colorband.cc.
References ColorBand::cur, ColorBand::data, and ColorBand::tot.
Referenced by colorband_buttons_layout().
Definition at line 396 of file colorband.cc.
References CBData::a, CBData::b, CLAMP, clamp_v4(), COLBAND_BLEND_HSL, COLBAND_BLEND_HSV, COLBAND_BLEND_RGB, COLBAND_INTERP_B_SPLINE, COLBAND_INTERP_CARDINAL, COLBAND_INTERP_CONSTANT, COLBAND_INTERP_EASE, COLBAND_INTERP_LINEAR, ColorBand::color_mode, colorband_hue_interp(), ColorBand::data, ELEM, CBData::g, hsl_to_rgb_v(), hsv_to_rgb_v(), int, ColorBand::ipotype, ColorBand::ipotype_hue, KEY_BSPLINE, KEY_CARDINAL, key_curve_position_weights(), left, CBData::pos, pos, CBData::r, rgb_to_hsl_v(), rgb_to_hsv_v(), ColorBand::tot, and UNLIKELY.
Referenced by blender::apply_gradient_tint(), BKE_colorband_element_add(), BKE_colorband_evaluate_table_rgba(), blender::nodes::node_shader_color_ramp_cc::ColorBandFunction::call(), blender::ed::sculpt_paint::color::do_paint_brush_task(), do_projectpaint_thread(), DRW_evaluate_weight_to_color(), dynamic_paint_paint_mesh_cell_point_cb_ex(), dynamic_paint_paint_single_point_cb_ex(), dynamicPaint_updatePointData(), Freestyle_evaluateColorRamp(), multitex(), paint_2d_gradient_fill(), paint_brush_color_get(), pointdensity_color(), ui_draw_but_COLORBAND(), blender::compositor::ColorRampOperation::update_memory_buffer_partial(), and valtorgb_colorfn().
Definition at line 559 of file colorband.cc.
References BKE_colorband_evaluate(), CM_TABLE, MEM_callocN, and size().
Referenced by blender::nodes::node_composite_color_ramp_cc::ColorRampShaderNode::compile(), DRW_globals_update(), and blender::nodes::node_shader_color_ramp_cc::gpu_shader_valtorgb().
| void BKE_colorband_init | ( | ColorBand * | coba, |
| bool | rangetype ) |
Definition at line 22 of file colorband.cc.
References CBData::a, CBData::b, COLBAND_BLEND_RGB, COLBAND_INTERP_LINEAR, ColorBand::color_mode, ColorBand::cur, ColorBand::data, CBData::g, ColorBand::ipotype, MAXCOLORBAND, CBData::pos, CBData::r, and ColorBand::tot.
Referenced by BKE_blendfile_userdef_from_defaults(), BKE_colorband_add(), BKE_texture_colormapping_default(), blo_do_versions_userdef(), colorband_tools_fn(), and blender::init_data().
| void BKE_colorband_init_from_table_rgba | ( | ColorBand * | coba, |
| const float(*) | array[4], | ||
| int | array_len, | ||
| bool | filter_samples ) |
Definition at line 279 of file colorband.cc.
References colorband_init_from_table_rgba_resample(), and colorband_init_from_table_rgba_simple().
Referenced by blender::ui::eyedropper_colorband_apply().
| void BKE_colorband_update_sort | ( | ColorBand * | coba | ) |
Definition at line 584 of file colorband.cc.
References CBData::cur, ColorBand::cur, ColorBand::data, ColorBand::tot, and vergcband().
Referenced by BKE_colorband_element_add(), colorband_update_cb(), ui_do_but_COLORBAND(), and ui_numedit_but_COLORBAND().