|
Blender V5.0
|
Classes | |
| struct | Pixel |
| struct | RowView |
Public Types | |
| enum class | PixelType { Undecided , Brush , SelectedForCloserExamination , CopyFromClosestEdge } |
Public Member Functions | |
| Rows (int2 resolution, int margin) | |
| void | init_pixels () |
| void | mark_pixels_effected_by_brush (const PixelNodesTileData &nodes_tile_pixels) |
| int2 | find_second_source (int2 destination, int2 first_source) |
| float | determine_mix_factor (const int2 destination, const int2 source_1, const int2 source_2, const Edge< CoordSpace::Tile > &edge) |
| void | find_copy_source (Pixel &pixel, const NonManifoldTileEdges &tile_edges) |
| void | find_copy_source (Vector< std::reference_wrapper< Pixel > > &selected_pixels, const NonManifoldTileEdges &tile_edges) |
| Vector< std::reference_wrapper< Pixel > > | filter_pixels_for_closer_examination (const NonManifoldTileEdges &tile_edges) |
| void | pack_into (const Span< std::reference_wrapper< Pixel > > selected_pixels, CopyPixelTile ©_tile) const |
Public Attributes | |
| int2 | resolution |
| int | margin |
| Array< Pixel > | pixels |
Row contains intermediate data per pixel for a single image row. It is used during updating to encode pixels.
Definition at line 226 of file pbvh_pixels_copy.cc.
|
strong |
Definition at line 227 of file pbvh_pixels_copy.cc.
|
inline |
Definition at line 279 of file pbvh_pixels_copy.cc.
References margin, pixels, resolution, x, and y.
Referenced by blender::bke::pbvh::pixels::Rows::RowView::RowView().
|
inline |
Definition at line 360 of file pbvh_pixels_copy.cc.
References clamp_f(), closest_to_line_v2(), blender::bke::pbvh::pixels::Edge< Space >::vertex_1, and blender::bke::pbvh::pixels::Edge< Space >::vertex_2.
Referenced by find_copy_source().
|
inline |
Definition at line 439 of file pbvh_pixels_copy.cc.
References blender::bke::pbvh::pixels::add_margin(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BLI_assert_msg, BLI_rcti_size_x(), BLI_rcti_size_y(), Brush, clamp(), closest_to_line_segment_v2(), CopyFromClosestEdge, blender::bke::pbvh::pixels::Rows::Pixel::distance, blender::math::distance(), blender::bke::pbvh::pixels::Rows::Pixel::edge_index, blender::bke::pbvh::pixels::get_bounds(), Vector< T, InlineBufferCapacity, Allocator >::index_range(), margin, pixels, blender::Vector< T, InlineBufferCapacity, Allocator >::reserve(), resolution, SelectedForCloserExamination, blender::bke::pbvh::pixels::Rows::Pixel::type, blender::bke::pbvh::pixels::Edge< Space >::vertex_1, blender::bke::pbvh::pixels::Edge< Space >::vertex_2, rcti::xmin, and rcti::ymin.
Referenced by blender::bke::pbvh::pixels::copy_update().
|
inline |
Definition at line 382 of file pbvh_pixels_copy.cc.
References blender::bke::pbvh::pixels::add_margin(), BLI_assert, BLI_rcti_init(), BLI_rcti_size_x(), BLI_rcti_size_y(), Brush, blender::bke::pbvh::pixels::clamp(), blender::bke::pbvh::pixels::Rows::Pixel::copy_command, CopyFromClosestEdge, blender::bke::pbvh::pixels::CopyPixelCommand::destination, determine_mix_factor(), blender::bke::pbvh::pixels::Rows::Pixel::distance, blender::math::distance(), blender::bke::pbvh::pixels::Rows::Pixel::edge_index, find_second_source(), margin, blender::bke::pbvh::pixels::CopyPixelCommand::mix_factor, pixels, resolution, SelectedForCloserExamination, blender::bke::pbvh::pixels::CopyPixelCommand::source_1, blender::bke::pbvh::pixels::CopyPixelCommand::source_2, and blender::bke::pbvh::pixels::Rows::Pixel::type.
Referenced by blender::bke::pbvh::pixels::copy_update().
|
inline |
Definition at line 427 of file pbvh_pixels_copy.cc.
References blender::threading::parallel_for(), and blender::bke::pbvh::pixels::THREADING_GRAIN_SIZE.
|
inline |
Look for a second source pixel that will be blended with the first source pixel to improve the quality of the fix.
Definition at line 326 of file pbvh_pixels_copy.cc.
References BLI_rcti_init(), BLI_rcti_size_x(), BLI_rcti_size_y(), Brush, blender::math::distance(), max_ii(), min_ii(), pixels, resolution, rcti::xmin, and rcti::ymin.
Referenced by find_copy_source().
|
inline |
Definition at line 284 of file pbvh_pixels_copy.cc.
References pixels, resolution, x, and y.
Referenced by blender::bke::pbvh::pixels::copy_update().
|
inline |
Mark pixels that are painted on by the brush. Those pixels don't need to be updated, but will act as a source for other pixels.
Definition at line 299 of file pbvh_pixels_copy.cc.
References blender::threading::parallel_for_each().
Referenced by blender::bke::pbvh::pixels::copy_update().
|
inline |
Definition at line 483 of file pbvh_pixels_copy.cc.
References blender::bke::pbvh::pixels::CopyPixelTile::command_deltas, CopyFromClosestEdge, and blender::bke::pbvh::pixels::CopyPixelTile::groups.
Referenced by blender::bke::pbvh::pixels::copy_update().
| int blender::bke::pbvh::pixels::Rows::margin |
Definition at line 263 of file pbvh_pixels_copy.cc.
Referenced by filter_pixels_for_closer_examination(), find_copy_source(), and Rows().
Definition at line 264 of file pbvh_pixels_copy.cc.
Referenced by filter_pixels_for_closer_examination(), find_copy_source(), find_second_source(), init_pixels(), and Rows().
| int2 blender::bke::pbvh::pixels::Rows::resolution |
Definition at line 262 of file pbvh_pixels_copy.cc.
Referenced by filter_pixels_for_closer_examination(), find_copy_source(), find_second_source(), init_pixels(), Rows(), and blender::bke::pbvh::pixels::Rows::RowView::RowView().