|
Blender V4.5
|
Classes | |
| class | Drawing |
| struct | FrameDrawingInfo |
| class | Layer |
| struct | LayerDrawingInfo |
| class | LayerGroup |
Typedefs | |
| using | FramesMapKeyT |
Definition at line 384 of file BKE_grease_pencil.hh.
| void blender::modifier::greasepencil::copy_influence_data | ( | const GreasePencilModifierInfluenceData * | influence_data_src, |
| GreasePencilModifierInfluenceData * | influence_data_dst, | ||
| const int | ) |
Definition at line 52 of file MOD_grease_pencil_util.cc.
References BKE_curvemapping_copy(), copy_influence_data(), and GreasePencilModifierInfluenceData::custom_curve.
Referenced by blender::copy_data(), blender::copy_data(), blender::copy_data(), and copy_influence_data().
| void blender::modifier::greasepencil::draw_custom_curve_settings | ( | const bContext * | , |
| uiLayout * | layout, | ||
| PointerRNA * | ptr ) |
Definition at line 185 of file MOD_grease_pencil_util.cc.
References draw_custom_curve_settings(), IFACE_, uiLayout::prop(), RNA_boolean_get(), uiLayout::row(), UI_ITEM_NONE, uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), and uiTemplateCurveMapping().
Referenced by draw_custom_curve_settings(), and blender::panel_draw().
| void blender::modifier::greasepencil::draw_layer_filter_settings | ( | const bContext * | , |
| uiLayout * | layout, | ||
| PointerRNA * | ptr ) |
Definition at line 95 of file MOD_grease_pencil_util.cc.
References uiLayout::column(), draw_layer_filter_settings(), IFACE_, PointerRNA::owner_id, uiLayout::prop(), RNA_boolean_get(), RNA_pointer_create_discrete(), RNA_pointer_get(), uiLayout::row(), UI_ITEM_NONE, uiItemPointerR(), uiLayoutSetActive(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by draw_layer_filter_settings(), and blender::panel_draw().
| void blender::modifier::greasepencil::draw_material_filter_settings | ( | const bContext * | , |
| uiLayout * | layout, | ||
| PointerRNA * | ptr ) |
Definition at line 140 of file MOD_grease_pencil_util.cc.
References uiLayout::column(), draw_material_filter_settings(), IFACE_, PointerRNA::owner_id, uiLayout::prop(), RNA_boolean_get(), RNA_pointer_create_discrete(), RNA_pointer_get(), uiLayout::row(), UI_ITEM_NONE, uiItemPointerR(), uiLayoutSetActive(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by draw_material_filter_settings(), and blender::panel_draw().
| void blender::modifier::greasepencil::draw_vertex_group_settings | ( | const bContext * | , |
| uiLayout * | layout, | ||
| PointerRNA * | ptr ) |
Definition at line 167 of file MOD_grease_pencil_util.cc.
References uiLayout::column(), draw_vertex_group_settings(), PointerRNA::owner_id, uiLayout::prop(), RNA_pointer_create_discrete(), RNA_string_length(), uiLayout::row(), UI_ITEM_NONE, uiItemPointerR(), uiLayoutSetActive(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by draw_vertex_group_settings(), and blender::panel_draw().
| void blender::modifier::greasepencil::ensure_no_bezier_curves | ( | Drawing & | drawing | ) |
Definition at line 439 of file MOD_grease_pencil_util.cc.
References CURVE_TYPE_BEZIER, ensure_no_bezier_curves(), blender::index_mask::IndexMask::is_empty(), blender::geometry::resample_to_evaluated(), 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::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 68 of file MOD_grease_pencil_util.cc.
References foreach_influence_ID_link(), IDWALK_CB_USER, and GreasePencilModifierInfluenceData::material.
Referenced by blender::foreach_ID_link(), and foreach_influence_ID_link().
| void blender::modifier::greasepencil::free_influence_data | ( | GreasePencilModifierInfluenceData * | influence_data | ) |
Definition at line 60 of file MOD_grease_pencil_util.cc.
References BKE_curvemapping_free(), GreasePencilModifierInfluenceData::custom_curve, and free_influence_data().
Referenced by blender::copy_data(), blender::copy_data(), blender::free_data(), and free_influence_data().
| Vector< FrameDrawingInfo > blender::modifier::greasepencil::get_drawing_infos_by_frame | ( | GreasePencil & | grease_pencil, |
| const IndexMask & | layer_mask, | ||
| const int | frame ) |
Definition at line 413 of file MOD_grease_pencil_util.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::index_mask::IndexMask::foreach_index(), get_drawing_infos_by_frame(), and blender::bke::greasepencil::Layer::start_frame_at().
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 391 of file MOD_grease_pencil_util.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::index_mask::IndexMask::foreach_index(), and get_drawing_infos_by_layer().
Referenced by get_drawing_infos_by_layer(), 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 375 of file MOD_grease_pencil_util.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::as_span(), blender::index_mask::IndexMask::foreach_index(), and get_drawings_for_write().
Referenced by get_drawings_for_write(), blender::modify_geometry_set(), and 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 274 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.
Referenced by blender::modify_geometry_set(), and blender::modify_geometry_set().
|
static |
Definition at line 218 of file MOD_grease_pencil_util.cc.
References blender::IndexMask::from_predicate(), blender::VArrayCommon< T >::get(), get_filtered_layer_mask(), blender::GrainSize::GrainSize(), blender::bke::Layer, blender::bke::AttributeAccessor::lookup_or_default(), and result.
Referenced by get_filtered_layer_mask(), and get_filtered_layer_mask().
| IndexMask blender::modifier::greasepencil::get_filtered_stroke_mask | ( | const Object * | ob, |
| const bke::CurvesGeometry & | curves, | ||
| const GreasePencilModifierInfluenceData & | influence_data, | ||
| IndexMaskMemory & | memory ) |
Definition at line 333 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.
Referenced by blender::build_drawing(), blender::deform_drawing(), blender::deform_drawing(), blender::deform_drawing(), blender::generate_curves(), blender::modify_curves(), 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 |
Definition at line 291 of file MOD_grease_pencil_util.cc.
References blender::bke::CurvesGeometry::attributes(), BKE_object_material_index_get(), blender::bke::Curve, blender::bke::CurvesGeometry::curves_range(), blender::IndexMask::from_predicate(), blender::VArrayCommon< T >::get(), get_filtered_stroke_mask(), get_grease_pencil_material_passes(), blender::GrainSize::GrainSize(), blender::bke::AttributeAccessor::lookup_or_default(), and result.
Referenced by get_filtered_stroke_mask(), and get_filtered_stroke_mask().
|
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 204 of file MOD_grease_pencil_util.cc.
References BKE_object_material_get(), BKE_object_material_len_p(), get_grease_pencil_material_passes(), Material::gp_style, i, MaterialGPencilStyle::index, and result.
Referenced by get_filtered_stroke_mask(), and get_grease_pencil_material_passes().
| VArray< float > blender::modifier::greasepencil::get_influence_vertex_weights | ( | const bke::CurvesGeometry & | curves, |
| const GreasePencilModifierInfluenceData & | influence_data ) |
Definition at line 350 of file MOD_grease_pencil_util.cc.
References blender::bke::CurvesGeometry::attributes(), GreasePencilModifierInfluenceData::flag, blender::VArray< T >::ForContainer(), blender::VArray< T >::ForSingle(), get_influence_vertex_weights(), GREASE_PENCIL_INFLUENCE_INVERT_VERTEX_GROUP, blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::bke::AttributeAccessor::lookup_or_default(), blender::threading::parallel_for(), blender::bke::Point, CurvesGeometry::point_num, blender::VArrayCommon< T >::size(), and GreasePencilModifierInfluenceData::vertex_group_name.
Referenced by blender::deform_drawing(), blender::deform_drawing(), blender::deform_drawing_as_envelope(), get_influence_vertex_weights(), 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 43 of file MOD_grease_pencil_util.cc.
References BKE_curvemapping_add(), BKE_curvemapping_init(), GreasePencilModifierInfluenceData::custom_curve, and init_influence_data().
Referenced by blender::init_data(), and init_influence_data().
| void blender::modifier::greasepencil::read_influence_data | ( | BlendDataReader * | reader, |
| GreasePencilModifierInfluenceData * | influence_data ) |
Definition at line 84 of file MOD_grease_pencil_util.cc.
References BKE_curvemapping_blend_read(), BKE_curvemapping_init(), BLO_read_struct, GreasePencilModifierInfluenceData::custom_curve, and read_influence_data().
Referenced by blender::blend_read(), and read_influence_data().
| void blender::modifier::greasepencil::write_influence_data | ( | BlendWriter * | writer, |
| const GreasePencilModifierInfluenceData * | influence_data ) |
Definition at line 76 of file MOD_grease_pencil_util.cc.
References BKE_curvemapping_blend_write(), GreasePencilModifierInfluenceData::custom_curve, and write_influence_data().
Referenced by blender::blend_write(), and write_influence_data().