|
Blender V4.3
|
Classes | |
| struct | FrameDrawingInfo |
| struct | LayerDrawingInfo |
| void blender::modifier::greasepencil::copy_influence_data | ( | const GreasePencilModifierInfluenceData * | influence_data_src, |
| GreasePencilModifierInfluenceData * | influence_data_dst, | ||
| const int | ) |
Definition at line 51 of file MOD_grease_pencil_util.cc.
References BKE_curvemapping_copy(), and GreasePencilModifierInfluenceData::custom_curve.
Referenced by blender::copy_data(), blender::copy_data(), and blender::copy_data().
| void blender::modifier::greasepencil::draw_custom_curve_settings | ( | const bContext * | , |
| uiLayout * | layout, | ||
| PointerRNA * | ptr ) |
Definition at line 166 of file MOD_grease_pencil_util.cc.
References IFACE_, ptr, RNA_boolean_get(), UI_ITEM_NONE, uiItemR(), uiLayoutRow(), uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), and uiTemplateCurveMapping().
Referenced by blender::panel_draw().
| void blender::modifier::greasepencil::draw_layer_filter_settings | ( | const bContext * | , |
| uiLayout * | layout, | ||
| PointerRNA * | ptr ) |
Definition at line 94 of file MOD_grease_pencil_util.cc.
References col, IFACE_, PointerRNA::owner_id, ptr, RNA_boolean_get(), RNA_pointer_create(), RNA_pointer_get(), UI_ITEM_NONE, uiItemPointerR(), uiItemR(), uiLayoutColumn(), uiLayoutRow(), uiLayoutRowWithHeading(), uiLayoutSetActive(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by blender::panel_draw().
| void blender::modifier::greasepencil::draw_material_filter_settings | ( | const bContext * | , |
| uiLayout * | layout, | ||
| PointerRNA * | ptr ) |
Definition at line 121 of file MOD_grease_pencil_util.cc.
References col, IFACE_, PointerRNA::owner_id, ptr, RNA_boolean_get(), RNA_pointer_create(), RNA_pointer_get(), UI_ITEM_NONE, uiItemPointerR(), uiItemR(), uiLayoutColumn(), uiLayoutRow(), uiLayoutRowWithHeading(), uiLayoutSetActive(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by blender::panel_draw().
| void blender::modifier::greasepencil::draw_vertex_group_settings | ( | const bContext * | , |
| uiLayout * | layout, | ||
| PointerRNA * | ptr ) |
Definition at line 148 of file MOD_grease_pencil_util.cc.
References col, PointerRNA::owner_id, ptr, RNA_pointer_create(), RNA_string_length(), UI_ITEM_NONE, uiItemPointerR(), uiItemR(), uiLayoutColumn(), uiLayoutRow(), uiLayoutSetActive(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by blender::panel_draw().
| void blender::modifier::greasepencil::ensure_no_bezier_curves | ( | Drawing & | drawing | ) |
Definition at line 388 of file MOD_grease_pencil_util.cc.
References CURVE_TYPE_BEZIER, ensure_no_bezier_curves(), blender::index_mask::IndexMask::is_empty(), blender::bke::greasepencil::Drawing::strokes(), blender::bke::greasepencil::Drawing::strokes_for_write(), and blender::bke::greasepencil::Drawing::tag_topology_changed().
Referenced by blender::build_drawing(), blender::deform_drawing(), blender::deform_drawing(), blender::deform_drawing(), ensure_no_bezier_curves(), blender::modify_curves(), blender::modify_curves(), blender::modify_drawing(), blender::modify_drawing(), blender::modify_drawing(), blender::modify_drawing(), blender::simplify_drawing(), and blender::subdivide_drawing().
| void blender::modifier::greasepencil::foreach_influence_ID_link | ( | GreasePencilModifierInfluenceData * | influence_data, |
| Object * | ob, | ||
| IDWalkFunc | walk, | ||
| void * | user_data ) |
Definition at line 67 of file MOD_grease_pencil_util.cc.
References IDWALK_CB_USER, and GreasePencilModifierInfluenceData::material.
Referenced by blender::foreach_ID_link().
| void blender::modifier::greasepencil::free_influence_data | ( | GreasePencilModifierInfluenceData * | influence_data | ) |
Definition at line 59 of file MOD_grease_pencil_util.cc.
References BKE_curvemapping_free(), and GreasePencilModifierInfluenceData::custom_curve.
Referenced by blender::copy_data(), blender::copy_data(), and blender::free_data().
| Vector< FrameDrawingInfo > blender::modifier::greasepencil::get_drawing_infos_by_frame | ( | GreasePencil & | grease_pencil, |
| const IndexMask & | layer_mask, | ||
| const int | frame ) |
Definition at line 362 of file MOD_grease_pencil_util.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::index_mask::IndexMask::foreach_index(), and get_drawing_infos_by_frame().
Referenced by get_drawing_infos_by_frame(), and blender::modify_geometry_set().
| Vector< LayerDrawingInfo > blender::modifier::greasepencil::get_drawing_infos_by_layer | ( | GreasePencil & | grease_pencil, |
| const IndexMask & | layer_mask, | ||
| const int | frame ) |
Definition at line 340 of file MOD_grease_pencil_util.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), and blender::index_mask::IndexMask::foreach_index().
Referenced by blender::modify_geometry_set(), and blender::modify_geometry_set().
| Vector< bke::greasepencil::Drawing * > blender::modifier::greasepencil::get_drawings_for_write | ( | GreasePencil & | grease_pencil, |
| const IndexMask & | layer_mask, | ||
| const int | frame ) |
Definition at line 324 of file MOD_grease_pencil_util.cc.
References blender::VectorSet< Key, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::as_span(), and blender::index_mask::IndexMask::foreach_index().
Referenced by blender::modify_geometry_set().
| IndexMask blender::modifier::greasepencil::get_filtered_layer_mask | ( | const GreasePencil & | grease_pencil, |
| const GreasePencilModifierInfluenceData & | influence_data, | ||
| IndexMaskMemory & | memory ) |
Definition at line 236 of file MOD_grease_pencil_util.cc.
References GreasePencilModifierInfluenceData::flag, get_filtered_layer_mask(), GREASE_PENCIL_INFLUENCE_INVERT_LAYER_FILTER, GREASE_PENCIL_INFLUENCE_INVERT_LAYER_PASS_FILTER, GREASE_PENCIL_INFLUENCE_USE_LAYER_PASS_FILTER, GreasePencilModifierInfluenceData::layer_name, and GreasePencilModifierInfluenceData::layer_pass.
|
static |
Definition at line 198 of file MOD_grease_pencil_util.cc.
References blender::index_mask::IndexMask::from_predicate(), blender::VArrayCommon< T >::get(), blender::bke::Layer, blender::bke::AttributeAccessor::lookup_or_default(), and result.
Referenced by get_filtered_layer_mask(), blender::modify_geometry_set(), and blender::modify_geometry_set().
| IndexMask blender::modifier::greasepencil::get_filtered_stroke_mask | ( | const Object * | ob, |
| const bke::CurvesGeometry & | curves, | ||
| const GreasePencilModifierInfluenceData & | influence_data, | ||
| IndexMaskMemory & | memory ) |
Definition at line 295 of file MOD_grease_pencil_util.cc.
References GreasePencilModifierInfluenceData::flag, get_filtered_stroke_mask(), GREASE_PENCIL_INFLUENCE_INVERT_MATERIAL_FILTER, GREASE_PENCIL_INFLUENCE_INVERT_MATERIAL_PASS_FILTER, GREASE_PENCIL_INFLUENCE_USE_MATERIAL_PASS_FILTER, GreasePencilModifierInfluenceData::material, and GreasePencilModifierInfluenceData::material_pass.
|
static |
Definition at line 253 of file MOD_grease_pencil_util.cc.
References BKE_object_material_index_get(), blender::bke::Curve, blender::index_mask::IndexMask::from_predicate(), blender::VArrayCommon< T >::get(), get_grease_pencil_material_passes(), and result.
Referenced by blender::build_drawing(), blender::deform_drawing(), blender::deform_drawing(), blender::deform_drawing(), blender::generate_curves(), get_filtered_stroke_mask(), blender::modify_curves(), blender::modify_curves(), blender::modify_curves(), blender::modify_curves(), blender::modify_drawing(), blender::modify_drawing(), blender::modify_drawing(), blender::modify_drawing(), blender::modify_drawing(), blender::modify_drawing(), blender::modify_drawing(), blender::modify_drawing(), blender::modify_drawing_by_layer(), blender::simplify_drawing(), blender::subdivide_drawing(), and blender::write_weights_for_drawing().
|
static |
Get a list of pass IDs used by grease pencil materials. This way the material pass can be looked up by index instead of having to get the material for each curve.
Definition at line 185 of file MOD_grease_pencil_util.cc.
References BKE_object_material_get(), BKE_object_material_len_p(), Material::gp_style, MaterialGPencilStyle::index, and result.
Referenced by get_filtered_stroke_mask().
| VArray< float > blender::modifier::greasepencil::get_influence_vertex_weights | ( | const bke::CurvesGeometry & | curves, |
| const GreasePencilModifierInfluenceData & | influence_data ) |
Definition at line 312 of file MOD_grease_pencil_util.cc.
References blender::VArray< T >::ForSingle(), blender::bke::Point, and GreasePencilModifierInfluenceData::vertex_group_name.
Referenced by blender::deform_drawing(), blender::deform_drawing(), blender::deform_drawing_as_envelope(), blender::modify_curves(), blender::modify_fill_color(), blender::modify_fill_color(), blender::modify_stroke_by_index(), blender::modify_stroke_by_layer(), blender::modify_stroke_by_material(), blender::modify_stroke_color(), blender::modify_stroke_color(), blender::modify_stroke_random(), and blender::write_weights_for_drawing().
| void blender::modifier::greasepencil::init_influence_data | ( | GreasePencilModifierInfluenceData * | influence_data, |
| const bool | has_custom_curve ) |
Definition at line 42 of file MOD_grease_pencil_util.cc.
References BKE_curvemapping_add(), BKE_curvemapping_init(), and GreasePencilModifierInfluenceData::custom_curve.
Referenced by blender::init_data().
| void blender::modifier::greasepencil::read_influence_data | ( | BlendDataReader * | reader, |
| GreasePencilModifierInfluenceData * | influence_data ) |
Definition at line 83 of file MOD_grease_pencil_util.cc.
References BKE_curvemapping_blend_read(), BKE_curvemapping_init(), BLO_read_struct, and GreasePencilModifierInfluenceData::custom_curve.
Referenced by blender::blend_read().
| void blender::modifier::greasepencil::write_influence_data | ( | BlendWriter * | writer, |
| const GreasePencilModifierInfluenceData * | influence_data ) |
Definition at line 75 of file MOD_grease_pencil_util.cc.
References BKE_curvemapping_blend_write(), and GreasePencilModifierInfluenceData::custom_curve.
Referenced by blender::blend_write().