|
Blender V4.3
|
Namespaces | |
| namespace | convert |
| namespace | tests |
Classes | |
| class | Drawing |
| class | DrawingReference |
| class | DrawingRuntime |
| class | Layer |
| class | LayerGroup |
| class | LayerGroupRuntime |
| class | LayerMask |
| class | LayerRuntime |
| struct | LayerTransformData |
| class | TreeNode |
Typedefs | |
| using | FramesMapKeyT = int |
Variables | |
| constexpr float | LEGACY_RADIUS_CONVERSION_FACTOR = 1.0f / 2000.0f |
| static const std::string | ATTR_RADIUS = "radius" |
| static const std::string | ATTR_OPACITY = "opacity" |
| static const std::string | ATTR_VERTEX_COLOR = "vertex_color" |
| static const std::string | ATTR_FILL_COLOR = "fill_color" |
Definition at line 385 of file BKE_grease_pencil.hh.
| void blender::bke::greasepencil::assign_to_vertex_group | ( | Drawing & | drawing, |
| StringRef | name, | ||
| float | weight ) |
Assign selected vertices to the vertex group.
Definition at line 98 of file grease_pencil_vertex_groups.cc.
References BKE_defgroup_name_index(), BKE_defvert_ensure_index(), BLI_addtail(), BLI_assert, BLI_listbase_count(), blender::MutableSpan< T >::index_range(), bDeformGroup::name, blender::bke::Point, blender::bke::greasepencil::Drawing::strokes_for_write(), and MDeformWeight::weight.
Referenced by blender::ed::object::vgroup_assign_verts().
| void blender::bke::greasepencil::assign_to_vertex_group_from_mask | ( | bke::CurvesGeometry & | curves, |
| const IndexMask & | mask, | ||
| StringRef | name, | ||
| float | weight ) |
Definition at line 68 of file grease_pencil_vertex_groups.cc.
References BKE_defgroup_name_index(), BKE_defvert_ensure_index(), BLI_addtail(), BLI_assert, BLI_listbase_count(), and bDeformGroup::name.
Referenced by blender::ed::sculpt_paint::greasepencil::process_stroke_weights().
| void blender::bke::greasepencil::clear_vertex_groups | ( | GreasePencil & | grease_pencil | ) |
Remove vertices from all vertex groups.
Definition at line 167 of file grease_pencil_vertex_groups.cc.
References BKE_defvert_clear(), GP_DRAWING, blender::bke::greasepencil::Drawing::strokes_for_write(), and wrap().
Referenced by BKE_object_defgroup_remove_all_ex(), and object_defgroup_remove_common().
| void blender::bke::greasepencil::copy_drawing_array | ( | Span< const GreasePencilDrawingBase * > | src_drawings, |
| MutableSpan< GreasePencilDrawingBase * > | dst_drawings ) |
Copies the drawings from one array to another. Assumes that dst_drawings is allocated but not initialized, e.g. it will allocate new drawings and store the pointers.
Definition at line 912 of file grease_pencil.cc.
References BLI_assert, copy_drawing_array(), GP_DRAWING, GP_DRAWING_REFERENCE, blender::Span< T >::index_range(), blender::MutableSpan< T >::size(), blender::Span< T >::size(), and GreasePencilDrawingBase::type.
Referenced by BKE_grease_pencil_duplicate_drawing_array(), and copy_drawing_array().
|
static |
Definition at line 282 of file grease_pencil.cc.
References blender::bke::Point.
Referenced by get_mutable_attribute().
|
static |
Definition at line 278 of file grease_pencil.cc.
References blender::bke::Point.
Referenced by get_mutable_attribute().
| int blender::bke::greasepencil::ensure_vertex_group | ( | const StringRef | name, |
| ListBase & | vertex_group_names ) |
Find or create a vertex group in a drawing.
Definition at line 55 of file grease_pencil_vertex_groups.cc.
References BKE_defgroup_name_index(), BLI_addtail(), BLI_assert, BLI_listbase_count(), and bDeformGroup::name.
Definition at line 580 of file grease_pencil.cc.
Referenced by blender::bke::greasepencil::Drawing::set_texture_matrices().
|
static |
Definition at line 513 of file grease_pencil.cc.
References cross(), blender::MatBase< float, 4, 2 >::identity(), normalize(), and transpose().
Referenced by blender::bke::greasepencil::Drawing::set_texture_matrices().
|
static |
Definition at line 287 of file grease_pencil.cc.
References CD_SET_DEFAULT, blender::bke::cpp_type_to_custom_data_type(), CustomData_add_layer_named(), CustomData_get_layer_named_for_write(), data, domain_custom_data(), domain_num(), blender::MutableSpan< T >::fill(), blender::MutableSpan< T >::first(), and blender::CPPType::get().
|
static |
Definition at line 544 of file grease_pencil.cc.
References cos(), blender::MatBase< T, NumCol, NumRow, Alignment >::identity(), and rot.
| bool blender::bke::greasepencil::remove_from_vertex_group | ( | Drawing & | drawing, |
| StringRef | name, | ||
| bool | use_selection ) |
Remove selected vertices from the vertex group.
Definition at line 132 of file grease_pencil_vertex_groups.cc.
References BKE_defgroup_name_index(), BKE_defvert_find_index(), BKE_defvert_remove_group(), MDeformWeight::def_nr, MDeformVert::dw, blender::MutableSpan< T >::index_range(), blender::bke::Point, blender::bke::greasepencil::Drawing::strokes_for_write(), and MDeformVert::totweight.
Referenced by blender::ed::object::grease_pencil_clear_from_vgroup().
| void blender::bke::greasepencil::select_from_group | ( | Drawing & | drawing, |
| const AttrDomain | selection_domain, | ||
| StringRef | name, | ||
| bool | select ) |
Select or deselect vertices assigned to this group.
Definition at line 182 of file grease_pencil_vertex_groups.cc.
References BKE_defgroup_name_index(), blender::bke::Curve, blender::bke::AttributeAccessor::domain_size(), blender::Span< T >::is_empty(), blender::threading::parallel_for(), blender::bke::Point, and blender::bke::greasepencil::Drawing::strokes_for_write().
Referenced by blender::ed::object::vgroup_select_verts().
| blender::bke::greasepencil::TREENODE_COMMON_METHODS_FORWARD_IMPL | ( | Layer | ) |
| blender::bke::greasepencil::TREENODE_COMMON_METHODS_FORWARD_IMPL | ( | LayerGroup | ) |
|
static |
Definition at line 458 of file grease_pencil.cc.
References add_newell_cross_v3_v3v3(), blender::index_mask::IndexMask::foreach_index(), blender::math::is_zero(), length(), blender::math::length_squared(), blender::math::normalize(), and blender::math::normalize_and_get_length().
Referenced by blender::bke::greasepencil::Drawing::curve_plane_normals(), blender::bke::greasepencil::Drawing::tag_positions_changed(), and blender::bke::greasepencil::Drawing::tag_topology_changed().
|
static |
Definition at line 394 of file grease_pencil.cc.
References axis_dominant_v3_to_m3(), BLI_memarena_alloc(), BLI_memarena_clear(), BLI_memarena_free(), BLI_memarena_new(), BLI_MEMARENA_STD_BUFSIZE, BLI_polyfill_calc_arena(), blender::MutableSpan< T >::data(), float, blender::index_mask::IndexMask::foreach_segment(), blender::threading::EnumerableThreadSpecific< T >::local(), mul_v2_m3v3(), blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), and blender::MutableSpan< T >::slice().
Referenced by blender::bke::greasepencil::Drawing::tag_positions_changed(), blender::bke::greasepencil::Drawing::tag_topology_changed(), and blender::bke::greasepencil::Drawing::triangles().
| void blender::bke::greasepencil::validate_drawing_vertex_groups | ( | GreasePencil & | grease_pencil | ) |
Make sure drawings only contain vertex groups of the GreasePencil.
Definition at line 26 of file grease_pencil_vertex_groups.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), BLI_remlink(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), GP_DRAWING, LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, MEM_SAFE_FREE, blender::bke::remove_defgroup_index(), blender::bke::greasepencil::Drawing::strokes_for_write(), GreasePencil::vertex_group_names, and wrap().
Referenced by BKE_object_defgroup_new(), and BKE_object_defgroup_remove().
|
static |
Definition at line 275 of file grease_pencil.cc.
Referenced by blender::bke::greasepencil::Drawing::fill_colors(), and blender::bke::greasepencil::Drawing::fill_colors_for_write().
|
static |
Definition at line 273 of file grease_pencil.cc.
Referenced by blender::bke::greasepencil::Drawing::opacities(), and blender::bke::greasepencil::Drawing::opacities_for_write().
|
static |
Definition at line 272 of file grease_pencil.cc.
|
static |
Definition at line 274 of file grease_pencil.cc.
Referenced by blender::bke::greasepencil::Drawing::vertex_colors(), and blender::bke::greasepencil::Drawing::vertex_colors_for_write().
|
constexpr |
Definition at line 50 of file BKE_grease_pencil.hh.
Referenced by blender::ed::greasepencil::image_render::draw_dots(), blender::draw::overlay::GreasePencil::draw_grease_pencil(), blender::ed::greasepencil::image_render::draw_grease_pencil_stroke(), blender::bke::greasepencil::convert::fcurve_convert_thickness_cb(), blender::ed::sculpt_paint::GreasePencilFillOpData::from_context(), blender::ed::sculpt_paint::grease_pencil_apply_fill(), blender::draw::grease_pencil_geom_batch_ensure(), grease_pencil_layer_cache_add(), blender::bke::greasepencil::convert::legacy_gpencil_frame_to_grease_pencil_drawing(), blender::bke::greasepencil::convert::legacy_object_modifier_thickness(), and blender::modify_drawing().